From db1f495d5c2be250d229315d12e735d88c9b43e5 Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Mon, 7 Jul 2025 19:33:44 +0200 Subject: [PATCH] [v3-0-test] Remove remnants of ~= used in requires-python. (#52985) Follow up after #52980 - there are still few more places where the ~= was used in requires-python. (cherry picked from commit 3f6f1db510ca9f6641c0c1bca396a20c3f930d00) Co-authored-by: Jarek Potiuk --- airflow-core/pyproject.toml | 2 +- scripts/ci/airflow_version_check.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/airflow-core/pyproject.toml b/airflow-core/pyproject.toml index 8af8cd3b6fd09..8e00ed531a1dd 100644 --- a/airflow-core/pyproject.toml +++ b/airflow-core/pyproject.toml @@ -25,7 +25,7 @@ requires = [ "pluggy==1.5.0", "smmap==5.0.2", "tomli==2.2.1; python_version < '3.11'", - "trove-classifiers==2025.4.11.15", + "trove-classifiers==2025.5.9.12", ] build-backend = "hatchling.build" diff --git a/scripts/ci/airflow_version_check.py b/scripts/ci/airflow_version_check.py index 45354d298847f..cdeb807b7e636 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: