This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch v3-2-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v3-2-test by this push:
     new 8cef87a6db0 [v3-2-test] Regenerate meta-package pyproject.toml after 
vespa provider release (#65909) (#65913)
8cef87a6db0 is described below

commit 8cef87a6db07074f03145de90460f6750f3982aa
Author: Jarek Potiuk <[email protected]>
AuthorDate: Mon Apr 27 02:50:58 2026 +0200

    [v3-2-test] Regenerate meta-package pyproject.toml after vespa provider 
release (#65909) (#65913)
    
    The update-pyproject-toml prek hook regenerates the apache-airflow
    meta-package optional dependencies from each provider's published PyPI
    metadata. The "Set from local provider pyproject.toml" fallback comment
    goes stale the moment a provider ships its first PyPI release, which
    then surfaces as a static-check failure on unrelated PRs and on the
    release branches.
    
    Drop the trailing comment at the source in
    update_airflow_pyproject_toml.py so a future first-release no longer
    triggers churn. The MIN_VERSION_OVERRIDE comment is kept — those pins
    are intentional, stable, and worth annotating.
    
    Backport conflict resolution: vespa and akeyless do not appear in
    v3-2-test's meta-package pyproject.toml. Took v3-2-test's pyproject.toml
    as-is, then re-ran the regen prek hook with the updated script — that
    naturally dropped the only remaining stale fallback comment on
    v3-2-test (apache-airflow-providers-common-ai).
    
    (cherry picked from commit 6082d6a23731dd1419aa8a9d2a2db56051ff4d2d)
---
 pyproject.toml                                   | 4 ++--
 scripts/ci/prek/update_airflow_pyproject_toml.py | 5 ++++-
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/pyproject.toml b/pyproject.toml
index 062ff4e5609..e03b0e0172b 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -177,7 +177,7 @@ apache-airflow = "airflow.__main__:main"
     "apache-airflow-providers-cohere>=1.4.0"
 ]
 "common.ai" = [
-    "apache-airflow-providers-common-ai>=0.0.1" # Set from local provider 
pyproject.toml
+    "apache-airflow-providers-common-ai>=0.0.1"
 ]
 "common.compat" = [
     "apache-airflow-providers-common-compat>=1.2.1"
@@ -421,7 +421,7 @@ apache-airflow = "airflow.__main__:main"
     "apache-airflow-providers-cloudant>=4.0.1",
     "apache-airflow-providers-cncf-kubernetes>=9.0.0",
     "apache-airflow-providers-cohere>=1.4.0",
-    "apache-airflow-providers-common-ai>=0.0.1", # Set from local provider 
pyproject.toml
+    "apache-airflow-providers-common-ai>=0.0.1",
     "apache-airflow-providers-common-compat>=1.2.1",
     "apache-airflow-providers-common-io>=1.4.2",
     "apache-airflow-providers-common-messaging>=2.0.0", # Set from 
MIN_VERSION_OVERRIDE in update_airflow_pyproject_toml.py
diff --git a/scripts/ci/prek/update_airflow_pyproject_toml.py 
b/scripts/ci/prek/update_airflow_pyproject_toml.py
index 8d8ab131985..cb8afd4a341 100755
--- a/scripts/ci/prek/update_airflow_pyproject_toml.py
+++ b/scripts/ci/prek/update_airflow_pyproject_toml.py
@@ -166,7 +166,10 @@ def _fallback_provider_version(
             f"[yellow]Provider id {provider_id} min version fallback:[/] "
             f"local provider pyproject.toml -> {local_version}"
         )
-        return local_version, " # Set from local provider pyproject.toml"
+        # No trailing comment: a local-fallback version flips to a real PyPI 
release
+        # without any other change to the pin, and a stale comment would then 
trigger
+        # the update-pyproject-toml prek hook on unrelated PRs / on main.
+        return local_version, ""
     return None, ""
 
 

Reply via email to