Repository navigation
Require Python 3.11+ - #1524
Merged
Merged
Require Python 3.11+#1524
Conversation
Raise requires-python from >=3.10 to >=3.11, drop the 3.10 classifier and the 3.10-only spm-calculator pin, and drop the 3.10 S-corp validation job. Raise the R package's Python range to >=3.11,<3.14 so setup_policyengine() no longer picks 3.10. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch was successfully deployed
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.
What changed
pyproject.toml: raiserequires-pythonfrom>=3.10to>=3.11and drop the 3.10 classifier.pyproject.toml: drop thespm-calculator<1; python_version < "3.11"dependency. Its marker can no longer match..github/workflows/ci.yml: drop the 3.10 entry from thescorp-validationmatrix. The 3.11 and dashboard-pin entries stay.r-package/policyenginetaxsim/R/setup.R: raise.PE_PYTHON_VERSIONfrom>=3.10,<3.14to>=3.11,<3.15. Otherwisesetup_policyengine()could pick Python 3.10, and pip would then reject the install:setup.Rinstalls policyengine-taxsim from GitHub's default branch, which requires Python 3.11 or later once this PR merges.changelog.d/python-311.changed.md: add a changelog fragment.Why
Python 3.10 reached end of life on 2026-10-01.
Not changed
scorp_reform.py, notes inpolicyengine_runner.py,README.md,docs/dashboard-refresh.mdand two tests) stay as they are. Removing them is a separate cleanup.Verification
CI on this PR runs the test matrix on 3.11 across Ubuntu, macOS and Windows, plus the S-corp validation jobs.
The R cap originally matched PolicyEngine-US’s
<3.14requirement. On 2026-11-16 the installer resolved PolicyEngine-US 2.137.8, which declares>=3.11,<3.15.uv pip install --python 3.14 --dry-run policyengine-us==2.137.8resolves successfully. A local Python 3.14.7 installation of this package and PolicyEngine-US 2.137.8 succeeds, andPolicyEngineRunnerimports. R also sources the updated setup file successfully.Python 3.15
This PR does not add 3.15. 3.15 waits on h5py, ndindex and numexpr, which have no 3.15 wheels yet.
🤖 Generated with Claude Code