From e17c6bc7513f549dc479f5da97f147d7f62b3236 Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Mon, 7 Jul 2025 18:53:31 +0200 Subject: [PATCH] Remove remnants of ~= used in requires-python. Follow up after #52980 - there are still few more places where the ~= was used in requires-python. --- airflow-core/pyproject.toml | 2 +- chart/pyproject.toml | 2 +- clients/python/pyproject.toml | 2 +- dev/pyproject.toml | 2 +- docker-stack-docs/pyproject.toml | 2 +- docker-tests/pyproject.toml | 2 +- helm-tests/pyproject.toml | 2 +- kubernetes-tests/pyproject.toml | 2 +- providers-summary-docs/pyproject.toml | 2 +- pyproject.toml | 2 +- scripts/ci/airflow_version_check.py | 4 ++-- 11 files changed, 12 insertions(+), 12 deletions(-) diff --git a/airflow-core/pyproject.toml b/airflow-core/pyproject.toml index a4bc1463c00f9..39ec62fc4ec3a 100644 --- a/airflow-core/pyproject.toml +++ b/airflow-core/pyproject.toml @@ -35,7 +35,7 @@ name = "apache-airflow-core" description = "Core packages for Apache Airflow, schedule and API server" readme = { file = "README.md", content-type = "text/markdown" } license-files.globs = ["LICENSE", "3rd-party-licenses/*.txt", "NOTICE"] -requires-python = "~=3.10,!=3.13" +requires-python = ">=3.10,!=3.13" authors = [ { name = "Apache Software Foundation", email = "dev@airflow.apache.org" }, ] diff --git a/chart/pyproject.toml b/chart/pyproject.toml index c33fe5ef3cfb9..a03b08a74694e 100644 --- a/chart/pyproject.toml +++ b/chart/pyproject.toml @@ -24,7 +24,7 @@ build-backend = "hatchling.build" [project] name = "apache-airflow-helm-chart" description = "Programmatically author, schedule and monitor data pipelines" -requires-python = "~=3.10,!=3.13" +requires-python = ">=3.10,!=3.13" authors = [ { name = "Apache Software Foundation", email = "dev@airflow.apache.org" }, ] diff --git a/clients/python/pyproject.toml b/clients/python/pyproject.toml index b7f01bb004de6..1692d6f715f4b 100644 --- a/clients/python/pyproject.toml +++ b/clients/python/pyproject.toml @@ -25,7 +25,7 @@ dynamic = ["version"] description = "Apache Airflow API (Stable)" readme = "README.md" license-files.globs = ["LICENSE", "NOTICE"] -requires-python = "~=3.10" +requires-python = ">=3.10" authors = [ { name = "Apache Software Foundation", email = "dev@airflow.apache.org" }, ] diff --git a/dev/pyproject.toml b/dev/pyproject.toml index bc3654c12e016..37e518b5b0efa 100644 --- a/dev/pyproject.toml +++ b/dev/pyproject.toml @@ -26,7 +26,7 @@ description = "Development tools for Apache Airflow" classifiers = [ "Private :: Do Not Upload", ] -requires-python = "~=3.10,!=3.13" +requires-python = ">=3.10,!=3.13" 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 3786f806c87e8..c01502e715e6f 100644 --- a/docker-stack-docs/pyproject.toml +++ b/docker-stack-docs/pyproject.toml @@ -24,7 +24,7 @@ build-backend = "hatchling.build" [project] name = "apache-airflow-docker-stack" description = "Programmatically author, schedule and monitor data pipelines" -requires-python = "~=3.10,!=3.13" +requires-python = ">=3.10,!=3.13" authors = [ { name = "Apache Software Foundation", email = "dev@airflow.apache.org" }, ] diff --git a/docker-tests/pyproject.toml b/docker-tests/pyproject.toml index 384ba7a94ced1..7c82242aaaadf 100644 --- a/docker-tests/pyproject.toml +++ b/docker-tests/pyproject.toml @@ -26,7 +26,7 @@ description = "Docker tests for Apache Airflow" classifiers = [ "Private :: Do Not Upload", ] -requires-python = "~=3.10,!=3.13" +requires-python = ">=3.10,!=3.13" authors = [ { name = "Apache Software Foundation", email = "dev@airflow.apache.org" }, ] diff --git a/helm-tests/pyproject.toml b/helm-tests/pyproject.toml index 0058ba598af9e..315ce97f437b1 100644 --- a/helm-tests/pyproject.toml +++ b/helm-tests/pyproject.toml @@ -26,7 +26,7 @@ description = "Helm tests for Apache Airflow" classifiers = [ "Private :: Do Not Upload", ] -requires-python = "~=3.10,!=3.13" +requires-python = ">=3.10,!=3.13" authors = [ { name = "Apache Software Foundation", email = "dev@airflow.apache.org" }, ] diff --git a/kubernetes-tests/pyproject.toml b/kubernetes-tests/pyproject.toml index dab5bf66e145e..653ec5a5c50d6 100644 --- a/kubernetes-tests/pyproject.toml +++ b/kubernetes-tests/pyproject.toml @@ -24,7 +24,7 @@ description = "Kubernetes tests for Apache Airflow" classifiers = [ "Private :: Do Not Upload", ] -requires-python = "~=3.10,!=3.13" +requires-python = ">=3.10,!=3.13" authors = [ { name = "Apache Software Foundation", email = "dev@airflow.apache.org" }, ] diff --git a/providers-summary-docs/pyproject.toml b/providers-summary-docs/pyproject.toml index cfe99c86bf082..540cd93e00338 100644 --- a/providers-summary-docs/pyproject.toml +++ b/providers-summary-docs/pyproject.toml @@ -24,7 +24,7 @@ build-backend = "hatchling.build" [project] name = "apache-airflow-providers" description = "Programmatically author, schedule and monitor data pipelines" -requires-python = "~=3.10,!=3.13" +requires-python = ">=3.10,!=3.13" authors = [ { name = "Apache Software Foundation", email = "dev@airflow.apache.org" }, ] diff --git a/pyproject.toml b/pyproject.toml index 5011c6e7b893e..34ae0f3576302 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,7 +34,7 @@ name = "apache-airflow" description = "Programmatically author, schedule and monitor data pipelines" readme = { file = "generated/PYPI_README.md", content-type = "text/markdown" } license-files.globs = ["LICENSE"] -requires-python = "~=3.10,!=3.13" +requires-python = ">=3.10,!=3.13" authors = [ { name = "Apache Software Foundation", email = "dev@airflow.apache.org" }, ] diff --git a/scripts/ci/airflow_version_check.py b/scripts/ci/airflow_version_check.py index 467f71442ce09..9a838916894be 100755 --- a/scripts/ci/airflow_version_check.py +++ b/scripts/ci/airflow_version_check.py @@ -63,9 +63,9 @@ def check_airflow_version(airflow_version: Version) -> tuple[str, bool]: sys.exit(1) if airflow_version == latest_version: latest = True - # find requires-python = "~=VERSION" in pyproject.toml file of airflow + # find requires-python = ">=VERSION" in pyproject.toml file of airflow pyproject_toml_conntent = (Path(__file__).parents[2] / "pyproject.toml").read_text() - matched_version = re.search('requires-python = "~=([0-9]+.[0-9]+)', pyproject_toml_conntent) + matched_version = re.search('requires-python = ">=([0-9]+.[0-9]+)', pyproject_toml_conntent) if matched_version: min_version = matched_version.group(1) else: