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

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


The following commit(s) were added to refs/heads/v2-7-test by this push:
     new 45d228239a Limit hive provider check for Python 3.11 temporarily 
(#33774)
45d228239a is described below

commit 45d228239a7c7f0c4ac43a33102979b414158563
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sat Aug 26 10:17:18 2023 +0200

    Limit hive provider check for Python 3.11 temporarily (#33774)
    
    In order to generate constraints, we need to temporarily limit
    also hive provider. There is a gap between wnen we added it
    in airflow setup and when we can generate constraints for
    the released providers from PyPI - we need to release the provider
    similarly like we have to do it for yandex.
    
    Therefore - until the upcoming hive provider is released (in 3 days)
    we need to limit hive from being considered in Python 3.11 consstraint
    generation for providers from PyPI
    
    (cherry picked from commit 984ba22e6e2a8c70b780d11c0bbaeb1dc0d6f14d)
---
 scripts/in_container/_in_container_utils.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/scripts/in_container/_in_container_utils.sh 
b/scripts/in_container/_in_container_utils.sh
index 288248b4ec..2ed267dd54 100644
--- a/scripts/in_container/_in_container_utils.sh
+++ b/scripts/in_container/_in_container_utils.sh
@@ -303,6 +303,12 @@ function 
install_all_providers_from_pypi_with_eager_upgrade() {
         if [[ ${provider_package} == "apache-airflow-providers-yandex" ]]; then
             continue
         fi
+        # Until we release latest `hive` provider with pure-sasl support, we 
need to remove it from the
+        # list of providers to install for Python 3.11 because we cannot build 
sasl it for Python 3.11
+        if [[ ${provider_package} == "apache-airflow-providers-apache-hive" \
+            && ${PYTHON_MAJOR_MINOR_VERSION} == "3.11" ]]; then
+            continue
+        fi
         echo -n "Checking if ${provider_package} is available in PyPI: "
         res=$(curl --head -s -o /dev/null -w "%{http_code}" 
"https://pypi.org/project/${provider_package}/";)
         if [[ ${res} == "200" ]]; then

Reply via email to