diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 96ec45831..0a3b593d8 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -84,7 +84,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.13', '3.14'] + python-version: ['3.13', '3.14', '3.15'] steps: - uses: actions/checkout@v6 - uses: actions/setup-python@v6 diff --git a/CLAUDE.md b/CLAUDE.md index e66bf17bb..6c7cbd79c 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -117,7 +117,7 @@ paper/ # the Quarto paper (front door) ## Code Style -- Python 3.10-3.14 +- Python 3.11-3.15 - Black formatter, 79-char line length - Ruff linting - pytest for testing diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 451041f5e..f355f2148 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -54,7 +54,7 @@ Once implementation begins (Phase 1), we will welcome contributions to: ### Requirements -- Python 3.10-3.14 +- Python 3.11-3.15 - Quarto CLI 1.9+ ### Installation diff --git a/docs/population-graph.md b/docs/population-graph.md index c53658180..815b1ec73 100644 --- a/docs/population-graph.md +++ b/docs/population-graph.md @@ -10,18 +10,18 @@ registries, scientific gates, or committed evidence. ## Dependencies and execution -The graph example requires Python **3.13 or 3.14**, NumPy 2+, pandas 2.3+, +The graph example requires Python **3.13, 3.14, or 3.15**, NumPy 2+, pandas 2.3+, and the Microcosm graph/frame revisions containing typed artifact edges and `microcosm.graph.randomness.keyed_uniform`. The default Dynamics installation -continues to support Python 3.10–3.14 without importing Microcosm. The entry +continues to support Python 3.11–3.15 without importing Microcosm. The entry point checks capabilities and gives installation guidance when they are absent. The `graph` extra pins both graph and Frame to core main commit `c28b45376209f31676286e07f5dcb4593bcd248d`. An older package merely sharing -the version number `0.1.0` is insufficient. In an isolated Python 3.13 or 3.14 +the version number `0.1.0` is insufficient. In an isolated Python 3.13, 3.14, or 3.15 environment, install with `uv pip install '.[graph]'`. Replace the Git pins with a compatible published release when one exists. CI installs this exact -extra, refuses missing capabilities, and runs the integration on both supported +extra, refuses missing capabilities, and runs the integration on all three supported Python versions. Do not modify the existing scientific gate environment. No rules engine, restricted microdata, or optional forest fitter is needed here. @@ -220,7 +220,7 @@ check direct-step parity, fit reuse and changed application identity. They skip the optional runtime cases when the required core capabilities are unavailable; the JSON and dependency boundary tests still run. Importing `populace_dynamics.graph` remains safe -under Python 3.10–3.12. +under Python 3.11–3.12. The annual tests independently repeat the existing fit, mortality, ageing, and keyed-draw operations; compare every retained person-period and weighted diff --git a/pyproject.toml b/pyproject.toml index 865a1b156..b86487d9d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ name = "policyengine-social-security-model" version = "0.1.0" description = "Open-source dynamic microsimulation model for Social Security policy analysis" readme = "README.md" -requires-python = ">=3.10,<3.15" +requires-python = ">=3.11" license = {text = "MIT"} authors = [ {name = "Max Ghenis", email = "max@policyengine.org"}, @@ -29,11 +29,11 @@ classifiers = [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3.14", + "Programming Language :: Python :: 3.15", "Topic :: Scientific/Engineering :: Economics", ] @@ -91,12 +91,12 @@ where = ["src"] [tool.black] line-length = 79 -target-version = ['py310', 'py311', 'py312', 'py313'] +target-version = ['py311', 'py312', 'py313'] include = '\.pyi?$' [tool.ruff] line-length = 79 -target-version = "py310" +target-version = "py311" [tool.ruff.lint] select = [ @@ -109,6 +109,10 @@ select = [ ] ignore = [ "E501", # line too long (handled by black) + # The py311 target newly flags these. Applying them is a separate + # style change, and UP042 alters str() on enums. + "UP017", # datetime-timezone-utc + "UP042", # replace-str-enum ] [tool.ruff.lint.per-file-ignores]