Use niceprints.solid_hash_line.

This commit is contained in:
voussoir 2021-08-11 01:23:28 -07:00
parent 519afac349
commit 3764e1faca
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -22,6 +22,7 @@ import textwrap
import time
from voussoirkit import interactive
from voussoirkit import niceprints
from voussoirkit import passwordy
from voussoirkit import vlogging
from voussoirkit import winwhich
@ -358,15 +359,7 @@ def pypi_release(do_tag=False, versionbump='patch'):
(remote, branch) = git_current_remote_branch()
def linebreak():
cli_width = shutil.get_terminal_size()[0]
line = '#' * (cli_width - 1)
line += '\r'
line += f'# {name} {new_version} '
line = f'\n{line}\n'
slowprint(line)
linebreak()
print(niceprints.solid_hash_header(f'{name} {new_version}'))
slowprint(f'Upgrading {name} from {old_version} --> {new_version}.')
slowprint()
@ -387,7 +380,7 @@ def pypi_release(do_tag=False, versionbump='patch'):
slowprint(f'Release will be pushed to {remote} {branch}.')
linebreak()
print(niceprints.solid_hash_header(f'{name} {new_version}'))
if not interactive.getpermission(f'READY TO RELEASE {name} {new_version}.'):
return