Registry Mirror
Skip to content

Conversation

@headtr1ck

@headtr1ck headtr1ck commented Sep 30, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Drops support for Python 3.11. Python 3.12 is now the minimum, in line with the minimum dependency policy (30 months for Python; pixi run policy now reports = for Python in all minimum version environments). v2026.09.0 was announced as the last release supporting Python 3.11.

  • requires-python = ">=3.12", the classifiers (also adding the missing 3.14), the installation docs, the binder, asv and bug report environments.
  • The py311 pixi feature and the test-py311* environments are renamed to py312 / test-py312*, so the minimum version environments (bare-minimum, bare-min-and-scipy, min-versions) and the typing environment now run on Python 3.12. The CI job names follow.
  • Removed the version checks for Python < 3.12 in NodePath.__init__ and test_namedarray.
  • With Python 3.12 as the target, ruff formats one f-string in zarr.py with PEP 701 quoting.
  • Ruff now also reports the PEP 695 rules (UP040, UP046, UP047, 80 occurrences: type statements and type parameter syntax instead of TypeAlias/TypeVar/Generic). They are ignored for now; the migration, together with the mypy changes it needs, will be a follow-up PR.

Not part of this PR: the policy check also reports numpy, pandas and scipy as behind the policy, as it does on main.

Checklist

  • User visible changes (including notable bug fixes) are documented in whats-new.rst

AI Disclosure

  • This PR contains AI-generated content.
    • I have tested any AI-generated content in my PR.
    • I take responsibility for any AI-generated content in my PR.
      Tools: Claude Code (Claude Opus 5.5)

🤖 Generated with Claude Code

headtr1ck and others added 2 commits September 30, 2026 20:51
Python 3.12 is now the minimum, in line with the minimum dependency policy.

- Bump requires-python, the classifiers (also adding 3.14), the binder, asv
  and bug report environments and the installation docs.
- Rename the py311 pixi feature and the test-py311* environments to py312 and
  run the minimum version environments on Python 3.12.
- Remove the version checks for Python < 3.12 in NodePath and
  test_namedarray.
- Reformat an f-string that ruff now formats with PEP 701 quoting.
- Ignore the PEP 695 ruff rules (UP040, UP046, UP047) that apply now; the
  migration from TypeVar and TypeAlias is left for a separate change.

Co-authored-by: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added topic-backends topic-zarr Related to zarr storage library Automation Github bots, testing workflows, release automation io labels Sep 30, 2026
@headtr1ck
headtr1ck enabled auto-merge (squash) September 30, 2026 19:05
@headtr1ck headtr1ck mentioned this pull request Sep 30, 2026
3 tasks done
@headtr1ck

Copy link
Copy Markdown
Collaborator Author

This should also fix the failing asv benchmark on the main branch once merged. Currently it somehow resolves to dask 2023.3.0 which is too old.

headtr1ck added a commit to headtr1ck/xarray that referenced this pull request Oct 1, 2026
Add a skill describing how to drop the oldest supported Python version,
based on the changes needed for dropping Python 3.11 (pydata#11649), including
updating the required status checks in the GitHub ruleset.

Move the upgrade-min-versions skill to
.claude/skills/upgrade-min-versions/SKILL.md and add frontmatter, so that
Claude Code actually discovers it, and stop ignoring .claude/skills/ so
that new skills don't have to be force-added.

Co-authored-by: Claude <noreply@anthropic.com>
@headtr1ck headtr1ck mentioned this pull request Oct 1, 2026
3 tasks done
@headtr1ck
headtr1ck disabled auto-merge October 1, 2026 07:38
@headtr1ck
headtr1ck merged commit db5632f into pydata:main Oct 1, 2026
80 of 81 checks passed
@headtr1ck
headtr1ck deleted the drop-python-3.11 branch October 1, 2026 07:54
headtr1ck added a commit that referenced this pull request Oct 1, 2026
Add a skill describing how to drop the oldest supported Python version,
based on the changes needed for dropping Python 3.11 (#11649), including
updating the required status checks in the GitHub ruleset.

Move the upgrade-min-versions skill to
.claude/skills/upgrade-min-versions/SKILL.md and add frontmatter, so that
Claude Code actually discovers it, and stop ignoring .claude/skills/ so
that new skills don't have to be force-added.

Co-authored-by: Claude <noreply@anthropic.com>
aladinor added a commit to aladinor/xradar that referenced this pull request Oct 12, 2026
CI now tests Python 3.12 to 3.14 only, and xarray main dropped 3.11
(pydata/xarray#11649). Align requires-python and the classifiers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Automation Github bots, testing workflows, release automation io topic-backends topic-zarr Related to zarr storage library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants