Fix release tag publishing and update Python support - #534
Merged
Conversation
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.
Fixes #250
Fixes #535
Compatibility notice
Breaking change: this PR intentionally ends support for Python 3.9 and 3.10. Future PolicyEngine Core releases will require Python 3.11 or newer. Existing compatible Core releases remain available from PyPI, but users on Python 3.9/3.10 must remain on an older release or upgrade Python before taking a newer Core release.
Python 3.9/3.10 support was restored temporarily in #454 for the Census compatibility effort. PolicyEngine US and PolicyEngine UK have since raised their minimum supported version to Python 3.11, so preserving older-version compatibility in new Core releases no longer provides a consistently supported country-model stack. Issue #535 tracks this removal explicitly.
What's changed
pyproject.tomlinstead of the removedsetup.py.uv.lockfor the supported range.bash.exeis the unavailable WSL launcher; the workflow-structure test still runs on Windows.Validation
uv lock --checkuv run --locked --extra dev ruff format .uv run --locked --extra dev ruff check .uv run --python 3.11 --locked --extra dev pytest tests/core/test_release_tagging.py tests/core/tools/test_google_cloud.py tests/core/tools/test_hugging_face.py -v— 29 passeduv run --python 3.11 --locked --extra dev make test— 695 passed, 4 skipped, 1 expected failureuv build— wheel metadata containsRequires-Python: >=3.11and only Python 3.11–3.14 classifiersuv run --python 3.11 --locked --extra dev make documentation— succeeded with 32 existing warningsbash -n .github/publish-git-tag.shgit diff --checkmake formatwas replaced with its equivalent Ruff commands because Ruff is installed in the project environment rather than directly on the shell path.Documentation review
The README support range now matches package metadata and CI. No API-reference changes are required. Impact is medium because Python 3.9/3.10 installations will remain on older Core releases; confidence is high based on minimum-version tests and built-wheel metadata.
policyengine.pystill has separate stale Python-version metadata that should be handled in that repository.