Skip to content

Commit

Permalink
Limit hive provider check for Python 3.11 temporarily (#33774)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
potiuk authored Aug 26, 2023
1 parent b115257 commit 984ba22
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/in_container/_in_container_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 984ba22

Please sign in to comment.