Skip to content

Add ability to run bin/update-python-support in CI. - #308

Merged
icemac merged 36 commits into
masterfrom
auto-update
Oct 15, 2026
Merged

icemac merged 36 commits into
masterfrom
auto-update

Conversation

@icemac

@icemac icemac commented Feb 14, 2025 •

Copy link
Copy Markdown
Member

Adds --auto-update to update-python-support and a weekly auto-update workflow running it for all packages from here. It uses the GitHub App zope-meta-auto-update, whose key is only stored in the auto-update environment of this repository.

Per package it updates the supported Python versions, opens a PR and updates the required checks in the branch protection. Packages with a pending update branch or PR are skipped.

Example PRs, one per template:

This should ease the update of all packages to support Python 3.15 and drop 3.10 and further new versions in the future. It only runs the update-python-support script, to not every change here in zope.meta ends in > 200 PRs, only when we support new Python versions or drop support of older ones.

@icemac icemac self-assigned this Feb 14, 2025
@coveralls

coveralls commented May 6, 2026 •

Copy link
Copy Markdown

Coverage Report for CI Build 38572154901

Coverage decreased (-0.5%) to 18.919%

Details

  • Coverage decreased (-0.5%) from the base build.
  • Patch coverage: 81 uncovered changes across 5 files (13 of 94 lines covered, 13.83%).
  • 9 coverage regressions across 4 files.

Uncovered Changes

File Changed Covered %
src/zope/meta/update_python_support.py 60 7 11.67%
src/zope/meta/shared/git.py 15 3 20.0%
src/zope/meta/config_package.py 11 1 9.09%
src/zope/meta/shared/call.py 5 1 20.0%
src/zope/meta/set_branch_protection_rules.py 3 1 33.33%

Coverage Regressions

9 previously-covered lines in 4 files lost coverage.

File Lines Losing Coverage Coverage
src/zope/meta/update_python_support.py 5 15.6%
src/zope/meta/shared/git.py 2 19.51%
src/zope/meta/config_package.py 1 23.49%
src/zope/meta/shared/call.py 1 20.0%

Coverage Stats

Coverage Status
Relevant Lines: 1443
Covered Lines: 356
Line Coverage: 24.67%
Relevant Branches: 518
Covered Branches: 15
Branch Coverage: 2.9%
Branches in Coverage %: Yes
Coverage Strength: 0.25 hits per line

💛 - Coveralls

icemac and others added 8 commits May 6, 2026 09:00
# Conflicts:
#	CHANGES.rst
#	src/zope/meta/config_package.py
#	src/zope/meta/update_python_support.py
This allows running `update-python-support` via `uvx` in CI.
Failures surface in the created PR instead of aborting the run.
`gh pr create --fill` needs the history of the base branch which a shallow
checkout does not have. Also do not ask whether to proceed after an error if
there is nobody to answer, e.g. in CI.
Conflicts resolved:
- .github/workflows/auto-update.yml: kept this branch's version (with schedule), master only had the dispatch-only copy from #454.
Comment thread src/zope/meta/config_package.py Resolved
Comment thread src/zope/meta/config_package.py Resolved
Comment thread src/zope/meta/update_python_support.py Resolved
Comment thread .github/workflows/auto-update.yml Resolved
@icemac
icemac requested a review from dataflake October 14, 2026 13:28
@icemac
icemac marked this pull request as ready for review October 14, 2026 13:28
@dataflake

Copy link
Copy Markdown
Member

So what happens with these auto-generated PRs? They obviously don't ask anyone to review. Who merges them?

@icemac

icemac commented Oct 15, 2026

Copy link
Copy Markdown
Member Author

So what happens with these auto-generated PRs? They obviously don't ask anyone to review. Who merges them?

I will merge them and if needed look into the problems they show for newer Python version and if needed ask for help.

@icemac

icemac commented Oct 15, 2026

Copy link
Copy Markdown
Member Author

Thank you for reviewing this PR. 😃

@icemac
icemac merged commit f63da99 into master Oct 15, 2026
19 checks passed

This branch was previously deployed

1 inactive deployment
auto-update — 9af35dc5 Deployed Oct 14, 2026 by icemac via zope.applicationcontrol #10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants