Skip to content

Commit

Permalink
- reduce number of change log entries, fix invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
dataflake committed Oct 2, 2024
1 parent 01aa6c1 commit 87fe1a4
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions src/zope/meta/update_python_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,19 +113,19 @@ def main():
sys.exit(0)

if no_longer_supported:
for version in sorted(list(no_longer_supported)):
call(bin_dir / 'addchangelogentry',
f'Drop support for Python {version}.',
*non_interactive_params)
version_spec = ', '.join(sorted(no_longer_supported))
call(bin_dir / 'addchangelogentry',
f'Drop support for Python {version_spec}.',
*non_interactive_params)
python_versions_args.append(
'--drop=' + ','.join(no_longer_supported))

if not_yet_supported:
for version in sorted(list(not_yet_supported)):
call(
bin_dir / 'addchangelogentry',
f'Add support for Python {version}.',
*non_interactive_params)
version_spec = ', '.join(sorted(not_yet_supported))
call(
bin_dir / 'addchangelogentry',
f'Add support for Python {version_spec}.',
*non_interactive_params)
python_versions_args = [
'--add=' +
','.join(supported_python_versions(oldest_python_version))
Expand All @@ -138,8 +138,7 @@ def main():
call(os.environ['EDITOR'], '.meta.toml')

config_package_args = [
sys.executable,
'config-package.py',
bin_dir / 'config-package',
path,
f'--branch={branch_name}',
'--no-push',
Expand Down

0 comments on commit 87fe1a4

Please sign in to comment.