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

ash pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 892b2f18f1 Update cloudant versions to be py-version aware so `uv 
lock` can work. (#43217)
892b2f18f1 is described below

commit 892b2f18f1674a031dc5ed6995cba8daf152847a
Author: Ash Berlin-Taylor <[email protected]>
AuthorDate: Mon Oct 21 14:42:49 2024 +0100

    Update cloudant versions to be py-version aware so `uv lock` can work. 
(#43217)
    
    When we are building th provider dists we exclude 3.9 support, but when uv 
is
    looking at requrements it doesn't/can't respect this field, so we have to 
make
    the depenedency aware of python version too.
    
    This makes `uv lock` and `uv sync` both worth, which should be the required
    step for switching uv to the local venv workflow
---
 generated/provider_dependencies.json                   | 2 +-
 providers/src/airflow/providers/cloudant/provider.yaml | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/generated/provider_dependencies.json 
b/generated/provider_dependencies.json
index 06e673d43d..4457556be0 100644
--- a/generated/provider_dependencies.json
+++ b/generated/provider_dependencies.json
@@ -353,7 +353,7 @@
   "cloudant": {
     "deps": [
       "apache-airflow>=2.8.0",
-      "ibmcloudant>=0.9.1"
+      "ibmcloudant==0.9.1 ; python_version >= \"3.10\""
     ],
     "devel-deps": [],
     "plugins": [],
diff --git a/providers/src/airflow/providers/cloudant/provider.yaml 
b/providers/src/airflow/providers/cloudant/provider.yaml
index 57afe10520..01a0c0a15d 100644
--- a/providers/src/airflow/providers/cloudant/provider.yaml
+++ b/providers/src/airflow/providers/cloudant/provider.yaml
@@ -48,7 +48,9 @@ versions:
 
 dependencies:
   - apache-airflow>=2.8.0
-  - ibmcloudant>=0.9.1
+  # Even though 3.9 is excluded below, we need to make this python_version 
aware so that `uv` can generate a
+  # full lock file when building lock file from provider sources
+  - 'ibmcloudant==0.9.1 ; python_version >= "3.10"'
 
 excluded-python-versions:
   # ibmcloudant transitively brings in urllib3 2.x, but the snowflake provider 
has a dependency that pins

Reply via email to