Skip to content

Preserve Python-only classifiers on version updates - #54

Open
mayankdhingra02 wants to merge 1 commit into
mgedmin:masterfrom
mayankdhingra02:codex/preserve-python-only-classifier
Open

mayankdhingra02 wants to merge 1 commit into
mgedmin:masterfrom
mayankdhingra02:codex/preserve-python-only-classifier

Conversation

@mayankdhingra02

Copy link
Copy Markdown

Adding Python 3.11 with check-python-versions --add 3.11 --diff dropped an existing Programming Language :: Python :: 3 :: Only classifier from both setup.py and pyproject.toml. The diff now retains that marker and adds only the requested minor version.

An existing :: Only classifier is kept when the updated versions all belong to that major. Updates that add another major or switch majors remove the stale marker.

The full tox matrix passed on macOS with CPython 3.10–3.15 and PyPy 3.11, including the 100% coverage gate, lint, type, and packaging checks.

Fixes #32.

Keep an existing exclusive major-version classifier when the updated versions all share its major. Drop the marker when the new set changes or spans majors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

check-python-versions --add ... drops the Python :: 3 :: Only classifier

2 participants