Skip to content

Require Python 3.11+ - #1524

Merged
MaxGhenis merged 2 commits into
mainfrom
max/python-311-support-20261113
Nov 16, 2026
Merged

MaxGhenis merged 2 commits into
mainfrom
max/python-311-support-20261113

Conversation

@MaxGhenis

@MaxGhenis MaxGhenis commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

What changed

  • pyproject.toml: raise requires-python from >=3.10 to >=3.11 and drop the 3.10 classifier.
  • pyproject.toml: drop the spm-calculator<1; python_version < "3.11" dependency. Its marker can no longer match.
  • .github/workflows/ci.yml: drop the 3.10 entry from the scorp-validation matrix. The 3.11 and dashboard-pin entries stay.
  • r-package/policyenginetaxsim/R/setup.R: raise .PE_PYTHON_VERSION from >=3.10,<3.14 to >=3.11,<3.15. Otherwise setup_policyengine() could pick Python 3.10, and pip would then reject the install: setup.R installs 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

  • The code, tests and docs that handle policyengine-us 1.x on Python 3.10 (the NIIT compatibility reform in scorp_reform.py, notes in policyengine_runner.py, README.md, docs/dashboard-refresh.md and 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.14 requirement. 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.8 resolves successfully. A local Python 3.14.7 installation of this package and PolicyEngine-US 2.137.8 succeeds, and PolicyEngineRunner imports. 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

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>
@vercel

vercel Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
policyengine-taxsim Ready Ready Preview Nov 16, 2026 3:37am UTC

Request Review

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MaxGhenis
MaxGhenis merged commit 948d9ac into main Nov 16, 2026
12 checks passed
@MaxGhenis
MaxGhenis deleted the max/python-311-support-20261113 branch November 16, 2026 15:44

This branch was successfully deployed

1 active deployment
Preview — 8e1f8115 Deployed Nov 16, 2026 by vercel[bot]
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.

1 participant