Skip to content

Drop Python 3.11 support#675

Closed
ecomodeller wants to merge 1 commit into
mainfrom
drop-python-311
Closed

Drop Python 3.11 support#675
ecomodeller wants to merge 1 commit into
mainfrom
drop-python-311

Conversation

@ecomodeller

Copy link
Copy Markdown
Member

Bumps the minimum Python to 3.12 across requires-python, the trove classifiers, mypy's target, and the CI matrices.

mikeio's main branch now requires Python >=3.12 (SPEC 0), which made the test-mikeio-main canary job fail at dependency resolution: uv resolves for every supported Python version, and 3.11 is no longer satisfiable. Since mikeio is a core dependency, modelskill follows the same policy.

This also fixes the typecheck CI, where numpy's current type stubs use the 3.12+ type statement that mypy rejects when targeting 3.11.

numpy's current type stubs use the 3.12+ `type` statement, which mypy
rejects when targeting 3.11, breaking the typecheck on every matrix job.
Bump requires-python and mypy's target to 3.12 and drop 3.11 from the CI
matrices.
@ecomodeller

Copy link
Copy Markdown
Member Author

Superseded by #674, which contains the same fixes (version drop + the two mypy fixes) plus the 3.14 trove classifier. Closing this in favour of the original branch.

@ecomodeller ecomodeller deleted the drop-python-311 branch June 29, 2026 14:59
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