Packaging modernisation#4
Merged
Merged
Conversation
Pushing a version tag (git tag v0.x.y && git push origin v0.x.y) now triggers release.yml, which builds the sdist + wheel, publishes to PyPI via OIDC Trusted Publishers (no stored API token), and creates a GitHub Release with auto-generated notes. - Switch to hatch-vcs for version management: version is derived from git tags automatically, eliminating manual pyproject.toml bumps - Add release.yml workflow gated on a "pypi" GitHub environment - Add v[0-9]+.* tag trigger to python-package.yml so the full test matrix and wheel-verify job also run on release tag pushes - Add fetch-depth: 0 to all checkout steps (needed by hatch-vcs) - Document release process and one-time PyPI Trusted Publisher setup in README Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Python 3.9 reached end-of-life in October 2025. The scientific Python
ecosystem (plotnine, matplotlib, scipy) has dropped 3.9 support, which
caused uv to resolve older, vulnerable versions of transitive deps when
building the lockfile for 3.9:
- filelock 3.19.1: TOCTOU symlink CVEs (fix requires Python >=3.10)
- pillow 11.3.0: 7 OOB-write / integer-overflow CVEs (via plotnine
0.13.6, the last plotnine release supporting Python 3.9)
- pytest 8.4.2: tmpdir handling CVE (fixed in 9.0.3)
Bumping requires-python to >=3.10 resolves all three to safe versions.
uv audit now reports zero known vulnerabilities across 49 packages (down
from 71 with the Python 3.9 resolution tree included).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.