Repository navigation
Description
Under which category would you file this issue?
Airflow Core
Apache Airflow version
3.4.0
What happened and how to reproduce it?
apache-airflow 3.4.0, apache-airflow-core 3.4.0 and apache-airflow-task-sdk 1.4.0 all declare:
Requires-Python: !=3.15,>=3.11
The comments next to requires-python say the next Python version is excluded on purpose until it has been tested:
airflow/airflow-core/pyproject.toml
Lines 39 to 43 in e24990d
# Supporting new Python releases typically takes 4-7 months due to all our dependencies. # We proactively exclude the next major version to avoid dependency conflicts, then test it and # bump the upper binding once ready. Providers that don't support it yet are marked with # != constraint - until they support it - which also excludes resolving uv workspace dependencies. requires-python = ">=3.11,!=3.15" airflow/task-sdk/pyproject.toml
Lines 25 to 27 in e24990d
# Supporting new Python releases typically takes 4-7 months due to all our provider dependencies. # We proactively limit the version to allow time for all dependencies to update. requires-python = ">=3.11,!=3.15" Line 35 in e24990d
requires-python = ">=3.11,!=3.15"
Under PEP 440, !=3.15 excludes only Python 3.15.0: the release segment is zero-padded, so !=3.15 means !=3.15.0 (https://packaging.python.org/en/latest/specifications/version-specifiers/#version-exclusion). Python 3.15.1 and 3.15.2 pass the check:
$ python -c "from packaging.specifiers import SpecifierSet as S; s=S('>=3.11,!=3.15'); print({v: s.contains(v) for v in ['3.14.10','3.15.0','3.15.2']})"
{'3.14.10': True, '3.15.0': False, '3.15.2': True}
So installers accept Airflow 3.4.0 on Python 3.15.2 when no constraints file is given. With uv 0.13.10 on macOS:
$ uv venv --quiet --python 3.15 .venv
$ .venv/bin/python --version
Python 3.15.2
$ uv pip install --dry-run --python .venv/bin/python "apache-airflow==3.4.0"
Resolved 133 packages in 3.08s
Would download 23 packages
Would install 133 packages
With the documented constraints file, the install stops instead, but only because constraints-3.15.txt doesn't exist:
error: Error while accessing remote requirements file: https://raw.githubusercontent.com/apache/airflow/constraints-3.4.0/constraints-3.15.txt
Providers already use the wildcard form. For example, apache-airflow-providers-apache-tinkerpop 1.2.2 declares Requires-Python: !=3.14.*,>=3.11.
What you think should happen instead?
requires-python = ">=3.11,!=3.15.*", as the providers do, so pip and uv refuse every Python 3.15 release until Airflow supports it.
Operating System
macOS 26.7.4 (arm64)
Deployment
Virtualenv installation
Apache Airflow Provider(s)
No response
Versions of Apache Airflow Providers
Not relevant (core packaging metadata).
Official Helm Chart version
Not Applicable
Kubernetes Version
Not Applicable
Helm Chart configuration
Not Applicable
Docker Image customizations
Not Applicable
Anything else?
Related: #74555 (Python 3.15 support tracking). This issue is only about the specifier: until 3.15 is supported, the metadata lets installers pick Airflow for 3.15.1 and later.
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct
Activity
verdhanyash commentedon Dec 1, 2026
I'm working on this. I’ll correct the Python-version exclusion metadata, add focused coverage, and open a PR once it is verified.
Dev-iL commentedon Dec 1, 2026
Why exclude 3.15 if we can support it?
eladkal commentedon Dec 2, 2026
Unlikely to be released in 3.4.x adding a new Python version is likely to be released with Airflow 3.5.0 so we do need a fix for 3.4 branch as raised by @vatsrahul1001 in #77947