Repository navigation
Exclude every Python 3.15 release in requires-python, not only 3.15.0 - #77947
Open
vatsrahul1001 wants to merge 4 commits into
Open
vatsrahul1001 wants to merge 4 commits into
vatsrahul1001 wants to merge 4 commits into
Conversation
Under PEP 440, "!=3.15" is "!=3.15.0": the release segment is zero-padded, so only Python 3.15.0 was excluded and installers accepted Airflow on 3.15.1 and later. Use "!=3.15.*", as the generated provider metadata already does. Add a test that fails for any "!=X.Y" exclusion in the workspace and provider pyproject.toml files, so the next excluded version does not repeat this. closes: #77851 Co-Authored-By: Claude <noreply@anthropic.com>
vatsrahul1001
requested review from
amoghrajesh,
ashb,
bugraoz93,
gopidesupavan and
potiuk
as code owners
December 2, 2026 11:30
vatsrahul1001
requested review from
Miretpl,
choo121600,
dheerajturaga,
ephraimbuddy,
henry3260,
hussein-awala,
jason810496,
jedcunningham and
jscheffl
as code owners
December 2, 2026 11:30
potiuk
approved these changes
Dec 2, 2026
potiuk
enabled auto-merge (squash)
December 2, 2026 11:35
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The regression test omits clients/python/pyproject.toml, so reverting the client distribution’s Python-version exclusion would go undetected.
1 open issue
What changed in this PR
Corrects Python eligibility metadata so new Airflow releases reject every Python 3.15 patch release, addressing #77851.
Changes:
- Updates 18
requires-pythondeclarations to use!=3.15.*. - Adds a regression check for minor-version exclusions missing wildcards.
| File | Description |
|---|---|
task-sdk/pyproject.toml |
Updates Task SDK exclusion. |
task-sdk-integration-tests/pyproject.toml |
Updates SDK integration-test exclusion. |
scripts/pyproject.toml |
Updates scripts exclusion. |
pyproject.toml |
Updates Airflow distribution exclusion. |
providers-summary-docs/pyproject.toml |
Updates provider documentation exclusion. |
performance/pyproject.toml |
Updates performance utilities exclusion. |
kubernetes-tests/pyproject.toml |
Updates Kubernetes test exclusion. |
docker-tests/pyproject.toml |
Updates Docker test exclusion. |
docker-stack-docs/pyproject.toml |
Updates Docker documentation exclusion. |
dev/pyproject.toml |
Updates development tools exclusion. |
dev/mypy/pyproject.toml |
Updates mypy plugins exclusion. |
dev/breeze/pyproject.toml |
Updates Breeze exclusion. |
clients/python/pyproject.toml |
Updates Python client template exclusion. |
chart/pyproject.toml |
Updates chart documentation exclusion. |
airflow-e2e-tests/pyproject.toml |
Updates end-to-end test exclusion. |
airflow-ctl/pyproject.toml |
Updates management CLI exclusion. |
airflow-ctl-tests/pyproject.toml |
Updates management CLI test exclusion. |
airflow-core/tests/unit/always/test_project_structure.py |
Adds exclusion syntax regression coverage. |
airflow-core/pyproject.toml |
Updates core distribution exclusion. |
Review effort: Balanced
clients/python/pyproject.toml is two levels deep, so the existing patterns did not match it and reverting its exclusion to "!=3.15" would have passed. Co-Authored-By: Claude <noreply@anthropic.com>
1 of 2 tasks
gremlinpython 3.8.3 supports Python 3.14 and 3.15, so the provider no longer needs to be excluded from 3.14. The exclusion also made uv reject 3.14 for the whole workspace once any member used a wildcard such as !=3.15.*. - drop excluded-python-versions from provider.yaml and the generated !=3.14.* requires-python - require gremlinpython>=3.8.3 - drop the python_version != "3.14" guard from the tinkerpop extras - pin gremlinpython's exclude-newer cutoff so uv locks 3.8.3 rather than the 4.0.0b3 beta while 3.8.3 is inside the cooldown window Co-Authored-By: Claude <noreply@anthropic.com>
Contributor
RunsOn re-runs them automatically when the run finishes; no action is needed. |
No provider is excluded from any Python version now that the Apache Tinkerpop provider supports Python 3.14. Co-Authored-By: Claude <noreply@anthropic.com>
This branch has not been deployed
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.

closes: #77851
requires-python = ">=3.11,!=3.15"only excludes Python 3.15.0. Under PEP 440!=3.15is!=3.15.0(the release segment is zero-padded), so pip and uv accept Airflow on 3.15.1 and later, although the comment next to the setting says the next Python version is excluded until it is tested:This changes the 18 hand-written
requires-pythonlines in the workspacepyproject.tomlfiles, includingapache-airflow,apache-airflow-core,apache-airflow-task-sdk,apache-airflow-ctland the Python client template, to!=3.15.*. Providers already use the wildcard form, since breeze generates!=<version>.*for them.It also adds
test_requires_python_excludes_whole_minor_versionstotest_project_structure.py. It parses the workspace and providerpyproject.tomlfiles and fails for any!=X.Yexclusion without the wildcard, so excluding the next Python version later doesn't bring this back. I checked that it fails on the old!=3.15value and passes on the new one.Releases that are already on PyPI keep their metadata, so this only affects new releases. Needs a backport to
v3-4-testfor 3.4.1.Verified locally: the new test fails with
!=3.15intask-sdk/pyproject.tomland passes with!=3.15.*,uv lock --checkstill resolves, and the pre-commit hooks pass.Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code
🤖 Generated with Claude Code