From 3764e1faca7a1c2f591908d921ff5a87cd5cb2fd Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Wed, 11 Aug 2021 01:23:28 -0700 Subject: [PATCH] Use niceprints.solid_hash_line. --- pypi_release.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/pypi_release.py b/pypi_release.py index 256ca63..5c8e668 100644 --- a/pypi_release.py +++ b/pypi_release.py @@ -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