Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion airflow-core/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
]
Expand Down
29 changes: 29 additions & 0 deletions airflow-core/tests/unit/always/test_project_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion airflow-ctl-tests/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
]
Expand Down
2 changes: 1 addition & 1 deletion airflow-ctl/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion airflow-e2e-tests/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
]
Expand Down
2 changes: 1 addition & 1 deletion chart/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
]
Expand Down
2 changes: 1 addition & 1 deletion clients/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
]
Expand Down
2 changes: 1 addition & 1 deletion dev/breeze/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
8 changes: 1 addition & 7 deletions dev/breeze/tests/test_selective_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
)
Expand Down
2 changes: 1 addition & 1 deletion dev/mypy/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down
2 changes: 1 addition & 1 deletion dev/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
]
Expand Down
2 changes: 1 addition & 1 deletion docker-stack-docs/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
]
Expand Down
2 changes: 1 addition & 1 deletion docker-tests/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
]
Expand Down
2 changes: 1 addition & 1 deletion kubernetes-tests/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
]
Expand Down
2 changes: 1 addition & 1 deletion performance/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion providers-summary-docs/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
]
Expand Down
4 changes: 2 additions & 2 deletions providers/apache/tinkerpop/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
------------
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion providers/apache/tinkerpop/docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions providers/apache/tinkerpop/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
5 changes: 3 additions & 2 deletions providers/apache/tinkerpop/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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]
Expand Down
14 changes: 11 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
]
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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]`
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
]
Expand Down
2 changes: 1 addition & 1 deletion task-sdk-integration-tests/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
]
Expand Down
2 changes: 1 addition & 1 deletion task-sdk/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down
21 changes: 11 additions & 10 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.