Skip to content

Drop Python 3.11 support - #1258

Merged
MImmesberger merged 3 commits into
mainfrom
drop-py311
Nov 18, 2026
Merged

MImmesberger merged 3 commits into
mainfrom
drop-py311

Conversation

@hmgaudecker

Copy link
Copy Markdown
Collaborator

Why

numpy requires Python >=3.12 from 2.5 on; 2.4 was the last line to allow 3.11. networkx 3.7 and jax 0.12 require >=3.12 as well, so the py311 environment could only resolve an ageing dependency set. dags drops 3.11 in OpenSourceEconomics/dags#91.

What

  • requires-python = ">=3.12"; the py311 pixi feature, environment and classifier are gone.
  • CI: the py311 job is gone, and the exclude list is replaced by a shorter include list. Job names are unchanged.
  • test_python_version is removed; requires-python enforces the floor.
  • GEP 9 names 3.12–3.13 as the versions that still need from __future__ import annotations.
  • pixi.lock is regenerated. Besides losing the py311 environments, the changed requires-python re-resolved the PyPI packages, so several move forward (for example networkx 3.7).

Checks

Hooks pass. Tests pass on py312 and py314 (1341 passed, 568 skipped each).

https://claude.ai/code/session_01K77bhqW4p5VmpnXm4hkZ77

Follows numpy, which requires Python >=3.12 from 2.5 on (2.4 was the last
line to allow 3.11); networkx 3.7 and jax 0.12 require >=3.12 as well.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01K77bhqW4p5VmpnXm4hkZ77
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01K77bhqW4p5VmpnXm4hkZ77
@read-the-docs-community

read-the-docs-community Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

@codecov

codecov Bot commented Nov 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Resolve CHANGES.md by keeping both entries; regenerate pixi.lock with pixi lock.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XenPawbes8s7x33MjVK2Wm
@MImmesberger
MImmesberger merged commit d1e57ae into main Nov 18, 2026
13 checks passed
@MImmesberger
MImmesberger deleted the drop-py311 branch November 18, 2026 10:47
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.

3 participants