Repository navigation
feat!: support Python 3.11-3.15, dropping 3.9 and 3.10 - #24
Merged
Merged
Conversation
Moves the supported range up to the current CPython releases. 3.15.0 is out and every compiled dependency (cryptography, pydantic-core, pandas, numpy) ships cp315 wheels, so the CI and publish matrices now run 3.11-3.15. With 3.9 gone, the notes that existed only to protect it are removed: the PEP 604 quirk in AGENTS.md, the black-runs-on-3.9 caveats on the dev cap, pre-commit rev and Dependabot ignore, and the single-`with` test comment. ruff, black and mypy now target 3.11. The py311 ruff target enables B905 at the one `zip()` in coerce_rows; it takes strict=False to keep today's behaviour for a row whose cell count differs from the column count. Enabling pyupgrade (UP) is left out: the code still spells Optional/List, and that is a ~250-site rewrite of its own.
25.9.0 was held only because later black needs Python 3.10+. It predates the 26.3.x security fixes, and with Dependabot security updates off for this repo nothing else would raise them. The hook rev and the [dev] cap move together; black 26 reflows one .format() call in a test.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 32 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
requires-python = ">=3.11", classifiers for 3.11-3.15, and the CI and publish test matrices run all five. 3.15.0 is released and the compiled dependencies (cryptography, pydantic-core, pandas, numpy) ship cp315 wheels.[dev]cap>=26.5,<26.6together). It was held at 25.9.0 only because later releases need 3.10+; 26.5.1 carries the CVE-2026-32274 and CVE-2026-31900 fixes. Black 26 reflows one.format()call intests/test_import_footprint.py.coerce_rowspassesstrict=Falsetozip(): B905 fires at the py311 target, andFalseiszip()'s default, so behaviour is unchanged.AGENTS.md, the black and Dependabot caveats, a single-withtest comment). pyupgrade (UP) stays off: the code still spellsOptional/List, and enabling it is a ~250-site annotation rewrite of its own.Docs: updated
Backwards compatibility
Breaking for anyone on Python 3.9 or 3.10: pip will not resolve this release there and stays on the last 3.9-compatible version. No API change. The next tag should be a minor bump, not a patch.
Review
External (Codex, GLM-5.2) on b7ccefd: 0 applied, 1 noted (GLM: no test pins
coerce_rowstruncation on a cell/column count mismatch; declined, the behaviour is preserved rather than intended), re-reviewed after fixes on 28c5f6c: clean.Analysis pass on 28c5f6c: APPROVE, 1 applied (black 26.5.1), re-run yes.
Deferred from the analysis pass:
pyproject.toml:36: extras floors are unreachable on the new range (pandas>=1.3has no 3.11 wheels, 1.5 is the first) and CI never installs the extras (mention)snowflake_sql_api/types.py:183: no test pins the mismatch behaviour;strict=Truestill passes the suite (mention)Written after review: the Backwards compatibility section.
Changes
Test plan
pre-commit run --all-filesclean (ruff, black 26.5.1, mypy)coverage run -m pyteston 3.11 and 3.14: 194 passed, 5 skipped, 94%