Fixes dependencies to pre-release versions of apache-airflow (#11578)

The dependencies in Alphas are currently >= 2.0.0 and should be
>=2.0.0a0 in order to work with Alphas in cases which are not PEP
440-compliant.

According to https://www.python.org/dev/peps/pep-0440/, >= 2.0.0 should
also work with alpha/beta releases (a1/a2) but in some cases it does not
(https://apache-airflow.slack.com/archives/C0146STM600/p1602774750041800)

Changing to ">=2.0.0a0" should help.

Fixes #11577
This commit is contained in:
Jarek Potiuk 2020-10-16 16:29:14 +02:00 коммит произвёл GitHub
Родитель 8865d14df4
Коммит 6f0bc0d81f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -279,7 +279,7 @@ def do_setup_package_providers(provider_package_id: str,
airflow_dependency = 'apache-airflow~=1.10' if provider_package_id != 'cncf.kubernetes' \
else 'apache-airflow>=1.10.12, <2.0.0'
else:
airflow_dependency = 'apache-airflow>=2.0.0'
airflow_dependency = 'apache-airflow>=2.0.0a0'
install_requires = [
airflow_dependency