diff --git a/release.py b/release.py index 4057ab785..1fb82fed7 100755 --- a/release.py +++ b/release.py @@ -8,9 +8,11 @@ def system(command): - print(command) + """Execute a system command and exit if it fails.""" + print(f"Executing: {command}") exit_code = os.system(command) if exit_code != 0: + print(f"Command failed with exit code {exit_code}. Exiting.") sys.exit(exit_code) diff --git a/setup.py b/setup.py index b825adb44..33870daaf 100755 --- a/setup.py +++ b/setup.py @@ -47,9 +47,10 @@ def read_description(): "//readthedocs.org/projects/python-chess/badge/?version=latest", "//readthedocs.org/projects/python-chess/badge/?version=v{}".format(chess.__version__)) - # Remove doctest comments. + # Remove doctest-specific comments from the README for cleaner output. description = re.sub(r"\s*# doctest:.*", "", description) + return description