diff --git a/airflow-core/pyproject.toml b/airflow-core/pyproject.toml index b2a7b4663cd7..9d9642b3e2e5 100644 --- a/airflow-core/pyproject.toml +++ b/airflow-core/pyproject.toml @@ -40,7 +40,7 @@ license-files = ["LICENSE", "NOTICE"] # 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" +requires-python = ">=3.11,!=3.15.*" authors = [ { name = "Apache Software Foundation", email = "dev@airflow.apache.org" }, ] diff --git a/airflow-core/tests/unit/always/test_project_structure.py b/airflow-core/tests/unit/always/test_project_structure.py index a546752c37b5..74cb2fbe22a2 100644 --- a/airflow-core/tests/unit/always/test_project_structure.py +++ b/airflow-core/tests/unit/always/test_project_structure.py @@ -21,8 +21,11 @@ import itertools import mmap import pathlib +import tomllib import pytest +from packaging.specifiers import SpecifierSet +from packaging.version import Version from tests_common.test_utils.file_loading import get_imports_from_file from tests_common.test_utils.paths import ( @@ -44,6 +47,32 @@ def test_deprecated_packages(self): else: self.assert_file_contains(filename, "This module is deprecated.") + def test_requires_python_excludes_whole_minor_versions(self): + """``!=3.15`` only excludes 3.15.0, so excluding a minor version needs the ``!=3.15.*`` form.""" + pyprojects = [ + AIRFLOW_ROOT_PATH / "pyproject.toml", + *AIRFLOW_ROOT_PATH.glob("*/pyproject.toml"), + *AIRFLOW_ROOT_PATH.glob("clients/*/pyproject.toml"), + *AIRFLOW_ROOT_PATH.glob("dev/*/pyproject.toml"), + *AIRFLOW_ROOT_PATH.glob("shared/*/pyproject.toml"), + *AIRFLOW_ROOT_PATH.glob("providers/*/pyproject.toml"), + *AIRFLOW_ROOT_PATH.glob("providers/*/*/pyproject.toml"), + ] + invalid = [] + for pyproject in pyprojects: + requires_python = tomllib.loads(pyproject.read_text()).get("project", {}).get("requires-python") + if not requires_python: + continue + for specifier in SpecifierSet(requires_python): + if ( + specifier.operator == "!=" + and not specifier.version.endswith(".*") + and len(Version(specifier.version).release) < 3 + ): + invalid.append(f"{pyproject.relative_to(AIRFLOW_ROOT_PATH)}: {specifier}") + + assert invalid == [] + def assert_file_not_contains(self, filename: pathlib.Path, pattern: str): with open(filename, "rb", 0) as file, mmap.mmap(file.fileno(), 0, access=mmap.ACCESS_READ) as content: if content.find(bytes(pattern, "utf-8")) != -1: diff --git a/airflow-ctl-tests/pyproject.toml b/airflow-ctl-tests/pyproject.toml index 908587085fa3..7bbf81646504 100644 --- a/airflow-ctl-tests/pyproject.toml +++ b/airflow-ctl-tests/pyproject.toml @@ -33,7 +33,7 @@ description = "Airflow CTL tests for Apache Airflow" classifiers = [ "Private :: Do Not Upload", ] -requires-python = ">=3.11,!=3.15" +requires-python = ">=3.11,!=3.15.*" authors = [ { name = "Apache Software Foundation", email = "dev@airflow.apache.org" }, ] diff --git a/airflow-ctl/pyproject.toml b/airflow-ctl/pyproject.toml index d7dc85f559ec..2a2252c46b9d 100644 --- a/airflow-ctl/pyproject.toml +++ b/airflow-ctl/pyproject.toml @@ -25,7 +25,7 @@ license-files = ["LICENSE", "NOTICE"] # We do not want to upper-bind Python version unnecessarily. Airflow-ctl is a small tool with # minimal dependencies and does not use sophisticated Python features, so it should work with # new Python versions once all dependencies are updated to support them. -requires-python = ">=3.11,!=3.15" +requires-python = ">=3.11,!=3.15.*" dependencies = [ # TODO there could be still missing deps such as airflow-core "argcomplete>=1.10", diff --git a/airflow-e2e-tests/pyproject.toml b/airflow-e2e-tests/pyproject.toml index 9975fb5ef2b6..a25061401704 100644 --- a/airflow-e2e-tests/pyproject.toml +++ b/airflow-e2e-tests/pyproject.toml @@ -32,7 +32,7 @@ description = "E2E tests for Apache Airflow" classifiers = [ "Private :: Do Not Upload", ] -requires-python = ">=3.11,!=3.15" +requires-python = ">=3.11,!=3.15.*" authors = [ { name = "Apache Software Foundation", email = "dev@airflow.apache.org" }, ] diff --git a/chart/pyproject.toml b/chart/pyproject.toml index 9c79d086164e..51a339d6e990 100644 --- a/chart/pyproject.toml +++ b/chart/pyproject.toml @@ -29,7 +29,7 @@ build-backend = "hatchling.build" [project] name = "apache-airflow-helm-chart" description = "Programmatically author, schedule and monitor data pipelines" -requires-python = ">=3.11,!=3.15" +requires-python = ">=3.11,!=3.15.*" authors = [ { name = "Apache Software Foundation", email = "dev@airflow.apache.org" }, ] diff --git a/clients/python/pyproject.toml b/clients/python/pyproject.toml index d14f487b9921..0af694eb9361 100644 --- a/clients/python/pyproject.toml +++ b/clients/python/pyproject.toml @@ -33,7 +33,7 @@ description = "Apache Airflow API (Stable)" readme = "README.md" license = "Apache-2.0" license-files = ["LICENSE", "NOTICE"] -requires-python = ">=3.11,!=3.15" +requires-python = ">=3.11,!=3.15.*" authors = [ { name = "Apache Software Foundation", email = "dev@airflow.apache.org" }, ] diff --git a/dev/breeze/pyproject.toml b/dev/breeze/pyproject.toml index 50a402c3f544..46132664e238 100644 --- a/dev/breeze/pyproject.toml +++ b/dev/breeze/pyproject.toml @@ -40,7 +40,7 @@ classifiers = [ "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3.14", ] -requires-python = ">=3.11,!=3.15" +requires-python = ">=3.11,!=3.15.*" dependencies = [ "black>=26.1.0", diff --git a/dev/breeze/tests/test_selective_checks.py b/dev/breeze/tests/test_selective_checks.py index bf609fad4799..f608c59f9932 100644 --- a/dev/breeze/tests/test_selective_checks.py +++ b/dev/breeze/tests/test_selective_checks.py @@ -2674,13 +2674,7 @@ def test_excluded_providers(): ) assert_outputs_are_printed( { - "excluded-providers-as-string": json.dumps( - { - "3.14": [ - "apache.tinkerpop", - ], - } - ), + "excluded-providers-as-string": json.dumps({}), }, str(stderr), ) diff --git a/dev/mypy/pyproject.toml b/dev/mypy/pyproject.toml index d98c3038bc33..27fc170d10bf 100644 --- a/dev/mypy/pyproject.toml +++ b/dev/mypy/pyproject.toml @@ -21,7 +21,7 @@ description = "Apache Airflow Mypy plugins" readme = { file = "README.md", content-type = "text/markdown" } license = "Apache-2.0" license-files = ["LICENSE", "NOTICE"] -requires-python = ">=3.11,!=3.15" +requires-python = ">=3.11,!=3.15.*" authors = [ {name="Apache Software Foundation", email="dev@airflow.apache.org"}, diff --git a/dev/pyproject.toml b/dev/pyproject.toml index f1470de8cadb..6b34a5f97546 100644 --- a/dev/pyproject.toml +++ b/dev/pyproject.toml @@ -33,7 +33,7 @@ description = "Development tools for Apache Airflow" classifiers = [ "Private :: Do Not Upload", ] -requires-python = ">=3.11,!=3.15" +requires-python = ">=3.11,!=3.15.*" authors = [ { name = "Apache Software Foundation", email = "dev@airflow.apache.org" }, ] diff --git a/docker-stack-docs/pyproject.toml b/docker-stack-docs/pyproject.toml index bfda3d432d7b..5734d8d8f233 100644 --- a/docker-stack-docs/pyproject.toml +++ b/docker-stack-docs/pyproject.toml @@ -29,7 +29,7 @@ build-backend = "hatchling.build" [project] name = "apache-airflow-docker-stack" description = "Programmatically author, schedule and monitor data pipelines" -requires-python = ">=3.11,!=3.15" +requires-python = ">=3.11,!=3.15.*" authors = [ { name = "Apache Software Foundation", email = "dev@airflow.apache.org" }, ] diff --git a/docker-tests/pyproject.toml b/docker-tests/pyproject.toml index 69769920fae8..0c1ad27b97e5 100644 --- a/docker-tests/pyproject.toml +++ b/docker-tests/pyproject.toml @@ -33,7 +33,7 @@ description = "Docker tests for Apache Airflow" classifiers = [ "Private :: Do Not Upload", ] -requires-python = ">=3.11,!=3.15" +requires-python = ">=3.11,!=3.15.*" authors = [ { name = "Apache Software Foundation", email = "dev@airflow.apache.org" }, ] diff --git a/kubernetes-tests/pyproject.toml b/kubernetes-tests/pyproject.toml index dc40b78a27a7..45e2335cc42c 100644 --- a/kubernetes-tests/pyproject.toml +++ b/kubernetes-tests/pyproject.toml @@ -31,7 +31,7 @@ description = "Kubernetes tests for Apache Airflow" classifiers = [ "Private :: Do Not Upload", ] -requires-python = ">=3.11,!=3.15" +requires-python = ">=3.11,!=3.15.*" authors = [ { name = "Apache Software Foundation", email = "dev@airflow.apache.org" }, ] diff --git a/performance/pyproject.toml b/performance/pyproject.toml index b122ad22ebc3..fc1a5f7b07d2 100644 --- a/performance/pyproject.toml +++ b/performance/pyproject.toml @@ -21,7 +21,7 @@ build-backend = "flit_core.buildapi" [project] name = "apache-airflow-performance" version = "0.1.0" -requires-python = ">=3.11,!=3.15" +requires-python = ">=3.11,!=3.15.*" description = "Performance testing utilities and DAGs for Apache Airflow" readme = { file = "README.md", content-type = "text/markdown" } license = "Apache-2.0" diff --git a/providers-summary-docs/pyproject.toml b/providers-summary-docs/pyproject.toml index 960888448613..f33bffa38ffe 100644 --- a/providers-summary-docs/pyproject.toml +++ b/providers-summary-docs/pyproject.toml @@ -29,7 +29,7 @@ build-backend = "hatchling.build" [project] name = "apache-airflow-providers" description = "Programmatically author, schedule and monitor data pipelines" -requires-python = ">=3.11,!=3.15" +requires-python = ">=3.11,!=3.15.*" authors = [ { name = "Apache Software Foundation", email = "dev@airflow.apache.org" }, ] diff --git a/providers/apache/tinkerpop/README.rst b/providers/apache/tinkerpop/README.rst index 2426cb84fbc4..325adf28c93b 100644 --- a/providers/apache/tinkerpop/README.rst +++ b/providers/apache/tinkerpop/README.rst @@ -47,7 +47,7 @@ You can install this package on top of an existing Airflow installation (see ``R for the minimum Airflow version supported) via ``pip install apache-airflow-providers-apache-tinkerpop`` -The package supports the following python versions: 3.11,3.12,3.13 +The package supports the following python versions: 3.11,3.12,3.13,3.14 Requirements ------------ @@ -57,7 +57,7 @@ PIP package Version required ========================================== ================== ``apache-airflow`` ``>=2.11.0`` ``apache-airflow-providers-common-compat`` ``>=1.8.0`` -``gremlinpython`` ``>=3.8.0`` +``gremlinpython`` ``>=3.8.3`` ========================================== ================== The changelog for the provider package can be found in the diff --git a/providers/apache/tinkerpop/docs/index.rst b/providers/apache/tinkerpop/docs/index.rst index f4d772b8bb8d..e29454371a29 100644 --- a/providers/apache/tinkerpop/docs/index.rst +++ b/providers/apache/tinkerpop/docs/index.rst @@ -102,7 +102,7 @@ PIP package Version required ========================================== ================== ``apache-airflow`` ``>=2.11.0`` ``apache-airflow-providers-common-compat`` ``>=1.8.0`` -``gremlinpython`` ``>=3.8.0`` +``gremlinpython`` ``>=3.8.3`` ========================================== ================== Downloading official packages diff --git a/providers/apache/tinkerpop/provider.yaml b/providers/apache/tinkerpop/provider.yaml index 3ee7e59ba67f..8347f233a65a 100644 --- a/providers/apache/tinkerpop/provider.yaml +++ b/providers/apache/tinkerpop/provider.yaml @@ -40,9 +40,6 @@ versions: - 1.0.1 - 1.0.0 -excluded-python-versions: - - "3.14" - integrations: - integration-name: Apache TinkerPop external-doc-url: https://tinkerpop.apache.org/ diff --git a/providers/apache/tinkerpop/pyproject.toml b/providers/apache/tinkerpop/pyproject.toml index e3210909f267..3fb11ae15032 100644 --- a/providers/apache/tinkerpop/pyproject.toml +++ b/providers/apache/tinkerpop/pyproject.toml @@ -48,9 +48,10 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", "Topic :: System :: Monitoring", ] -requires-python = ">=3.11,!=3.14.*" +requires-python = ">=3.11" # The dependencies should be modified in place in the generated file. # Any change in the dependencies is preserved when the file is regenerated @@ -59,7 +60,7 @@ requires-python = ">=3.11,!=3.14.*" dependencies = [ "apache-airflow>=2.11.0", "apache-airflow-providers-common-compat>=1.8.0", - "gremlinpython>=3.8.0", + "gremlinpython>=3.8.3", ] [dependency-groups] diff --git a/pyproject.toml b/pyproject.toml index c32e46f6612d..17f866515284 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,7 @@ description = "Programmatically author, schedule and monitor data pipelines" readme = { file = "generated/PYPI_README.md", content-type = "text/markdown" } license = "Apache-2.0" license-files = ["LICENSE", "NOTICE"] -requires-python = ">=3.11,!=3.15" +requires-python = ">=3.11,!=3.15.*" authors = [ { name = "Apache Software Foundation", email = "dev@airflow.apache.org" }, ] @@ -164,7 +164,7 @@ apache-airflow = "airflow.__main__:main" "apache-airflow-providers-apache-spark>=4.11.1" ] "apache.tinkerpop" = [ - "apache-airflow-providers-apache-tinkerpop>=1.0.0; python_version !=\"3.14\"" + "apache-airflow-providers-apache-tinkerpop>=1.0.0" ] "apprise" = [ "apache-airflow-providers-apprise>=1.4.1" @@ -452,7 +452,7 @@ apache-airflow = "airflow.__main__:main" "apache-airflow-providers-apache-pinot>=4.5.1", "apache-airflow-providers-apache-polaris>=0.1.0", "apache-airflow-providers-apache-spark>=4.11.1", - "apache-airflow-providers-apache-tinkerpop>=1.0.0; python_version !=\"3.14\"", + "apache-airflow-providers-apache-tinkerpop>=1.0.0", "apache-airflow-providers-apprise>=1.4.1", "apache-airflow-providers-arangodb>=2.7.0", "apache-airflow-providers-asana>=2.7.0", @@ -1656,6 +1656,10 @@ apache-airflow-task-sdk-integration-tests = false # past that release so 1.164.0 resolves while any later release stays quarantined. # Remove once the rolling window advances past 2026-08-12. google-cloud-aiplatform = "2026-08-13T00:00:00Z" +# Temporary: gremlinpython 3.8.3 (2026-11-30) is the first 3.x release that supports Python 3.14, +# and it is inside the "4 days" exclude-newer window. Without this, uv locks the 4.0.0b3 beta. +# Remove once the rolling window advances past 2026-11-30. +gremlinpython = "2026-12-01T00:00:00Z" # Package managers bypass the cooldown so a fix (e.g. a security or trust-store fix) can be # picked up as soon as it is released; keep in sync with `[tool.uv.pip.exclude-newer-package]` @@ -1852,6 +1856,10 @@ apache-airflow-task-sdk-integration-tests = false # `[tool.uv.exclude-newer-package]` above for rationale. # Temporary: see the google-cloud-aiplatform note in `[tool.uv.exclude-newer-package]`. google-cloud-aiplatform = "2026-08-13T00:00:00Z" +# Temporary: gremlinpython 3.8.3 (2026-11-30) is the first 3.x release that supports Python 3.14, +# and it is inside the "4 days" exclude-newer window. Without this, uv locks the 4.0.0b3 beta. +# Remove once the rolling window advances past 2026-11-30. +gremlinpython = "2026-12-01T00:00:00Z" # Package managers bypass the cooldown — see `[tool.uv.exclude-newer-package]`. pip = false uv = false diff --git a/scripts/pyproject.toml b/scripts/pyproject.toml index 1cf77470a437..0f9cc91b89ae 100644 --- a/scripts/pyproject.toml +++ b/scripts/pyproject.toml @@ -33,7 +33,7 @@ description = "Scripts and utilities for Apache Airflow CI, Docker, and developm classifiers = [ "Private :: Do Not Upload", ] -requires-python = ">=3.11,!=3.15" +requires-python = ">=3.11,!=3.15.*" authors = [ { name = "Apache Software Foundation", email = "dev@airflow.apache.org" }, ] diff --git a/task-sdk-integration-tests/pyproject.toml b/task-sdk-integration-tests/pyproject.toml index 968cee0412b5..6d4b78660d67 100644 --- a/task-sdk-integration-tests/pyproject.toml +++ b/task-sdk-integration-tests/pyproject.toml @@ -33,7 +33,7 @@ description = "Task SDK integration tests for Apache Airflow" classifiers = [ "Private :: Do Not Upload", ] -requires-python = ">=3.11,!=3.15" +requires-python = ">=3.11,!=3.15.*" authors = [ { name = "Apache Software Foundation", email = "dev@airflow.apache.org" }, ] diff --git a/task-sdk/pyproject.toml b/task-sdk/pyproject.toml index 98b9b55a9ef6..ae031cc77a5e 100644 --- a/task-sdk/pyproject.toml +++ b/task-sdk/pyproject.toml @@ -24,7 +24,7 @@ license = "Apache-2.0" license-files = ["LICENSE", "NOTICE"] # 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" +requires-python = ">=3.11,!=3.15.*" authors = [ {name="Apache Software Foundation", email="dev@airflow.apache.org"}, diff --git a/uv.lock b/uv.lock index 6306e4406308..97166349147a 100644 --- a/uv.lock +++ b/uv.lock @@ -1,6 +1,6 @@ version = 1 revision = 5 -requires-python = ">=3.11" +requires-python = ">=3.11, !=3.15.*" resolution-markers = [ "python_full_version >= '3.15' and sys_platform == 'win32'", "python_full_version >= '3.15' and sys_platform == 'emscripten'", @@ -182,6 +182,7 @@ apache-airflow-shared-timezones = false apache-airflow-task-sdk = false apache-airflow-task-sdk-integration-tests = false google-cloud-aiplatform = "2026-08-13T00:00:00Z" +gremlinpython = "2026-12-01T00:00:00Z" pip = false pypdf = "2026-10-29T00:00:00Z" uv = false @@ -1270,7 +1271,7 @@ all = [ { name = "apache-airflow-providers-apache-pinot" }, { name = "apache-airflow-providers-apache-polaris" }, { name = "apache-airflow-providers-apache-spark" }, - { name = "apache-airflow-providers-apache-tinkerpop", marker = "python_full_version != '3.14.*'" }, + { name = "apache-airflow-providers-apache-tinkerpop" }, { name = "apache-airflow-providers-apprise" }, { name = "apache-airflow-providers-arangodb" }, { name = "apache-airflow-providers-asana" }, @@ -1434,7 +1435,7 @@ apache-spark = [ { name = "apache-airflow-providers-apache-spark" }, ] apache-tinkerpop = [ - { name = "apache-airflow-providers-apache-tinkerpop", marker = "python_full_version != '3.14.*'" }, + { name = "apache-airflow-providers-apache-tinkerpop" }, ] apache-webhdfs = [ { name = "apache-airflow-providers-apache-hdfs" }, @@ -1885,8 +1886,8 @@ requires-dist = [ { name = "apache-airflow-providers-apache-polaris", marker = "extra == 'apache-polaris'", editable = "providers/apache/polaris" }, { name = "apache-airflow-providers-apache-spark", marker = "extra == 'all'", editable = "providers/apache/spark" }, { name = "apache-airflow-providers-apache-spark", marker = "extra == 'apache-spark'", editable = "providers/apache/spark" }, - { name = "apache-airflow-providers-apache-tinkerpop", marker = "python_full_version != '3.14.*' and extra == 'all'", editable = "providers/apache/tinkerpop" }, - { name = "apache-airflow-providers-apache-tinkerpop", marker = "python_full_version != '3.14.*' and extra == 'apache-tinkerpop'", editable = "providers/apache/tinkerpop" }, + { name = "apache-airflow-providers-apache-tinkerpop", marker = "extra == 'all'", editable = "providers/apache/tinkerpop" }, + { name = "apache-airflow-providers-apache-tinkerpop", marker = "extra == 'apache-tinkerpop'", editable = "providers/apache/tinkerpop" }, { name = "apache-airflow-providers-apprise", marker = "extra == 'all'", editable = "providers/apprise" }, { name = "apache-airflow-providers-apprise", marker = "extra == 'apprise'", editable = "providers/apprise" }, { name = "apache-airflow-providers-arangodb", marker = "extra == 'all'", editable = "providers/arangodb" }, @@ -4525,7 +4526,7 @@ docs = [ requires-dist = [ { name = "apache-airflow", editable = "." }, { name = "apache-airflow-providers-common-compat", editable = "providers/common/compat" }, - { name = "gremlinpython", specifier = ">=3.8.0" }, + { name = "gremlinpython", specifier = ">=3.8.3" }, ] [package.metadata.requires-dev] @@ -15165,18 +15166,18 @@ wheels = [ [[package]] name = "gremlinpython" -version = "3.8.2" +version = "3.8.3" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "aenum" }, { name = "aiohttp" }, { name = "async-timeout" }, { name = "isodate" }, - { name = "nest-asyncio" }, + { name = "nest-asyncio2" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/ba/33/229c8783eeeb8c0321b2c9981f06b034c09deb97df7bd5eed9ba80ea74c9/gremlinpython-3.8.2.tar.gz", hash = "sha256:b7ae3820ac1e54edfc04efc1b1deebd58b5726accbe2d0425b80086d7e4ed5fa", size = 54675, upload-time = "2026-09-08T21:49:32.015Z" } +sdist = { url = "https://files.pythonhosted.org/packages/2f/bf/8d792a5a1612eb2e1c41c30fa1780391448d16888f66d1e1eaf4bb0aa6d6/gremlinpython-3.8.3.tar.gz", hash = "sha256:6bbba3805eaf3f69f9cef4bb4b20cb9866fcb5df4f583375fff51363efff150f", size = 67132, upload-time = "2026-11-30T18:02:10.047Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/8e/e8/ad44c5db4d121c1d1d71acea3b0e5dd6d43e6cb3e11341edcb1414bcd302/gremlinpython-3.8.2-py3-none-any.whl", hash = "sha256:bff95fa950e4efaf0793a2ffab96bf362f2e24af519e67833cf957762b1de473", size = 76076, upload-time = "2026-09-08T21:49:30.759Z" }, + { url = "https://files.pythonhosted.org/packages/cc/90/d776564f7b1fd707b3504164da9de5e402e414ce2ecd08af39b97dd2c964/gremlinpython-3.8.3-py3-none-any.whl", hash = "sha256:25d296ce1addc5a68b581a58dfe436b52224a5436d38c737c4c9916cb7faac80", size = 97153, upload-time = "2026-11-30T18:02:07.247Z" }, ] [[package]]