Don't reference sphinx airflow theme via `@` URL in requirements. (#12957)

PyPI rejects uploading a dist with an `@` in the requirements.
This commit is contained in:
Ash Berlin-Taylor 2020-12-09 16:29:22 +00:00 коммит произвёл GitHub
Родитель b8844535d7
Коммит bee2cb5317
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 8 добавлений и 5 удалений

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

@ -153,10 +153,13 @@ def write_version(filename: str = os.path.join(*[my_dir, "airflow", "git_version
file.write(text)
_SPHINX_AIRFLOW_THEME_URL = (
"https://github.com/apache/airflow-site/releases/download/v0.0.2/"
"sphinx_airflow_theme-0.0.2-py3-none-any.whl"
)
if os.environ.get('USE_THEME_FROM_GIT'):
_SPHINX_AIRFLOW_THEME_URL = (
"@ https://github.com/apache/airflow-site/releases/download/v0.0.2/"
"sphinx_airflow_theme-0.0.2-py3-none-any.whl"
)
else:
_SPHINX_AIRFLOW_THEME_URL = ''
# 'Start dependencies group' and 'Start dependencies group' are mark for ./scripts/ci/check_order_setup.py
# If you change this mark you should also change ./scripts/ci/check_order_setup.py
@ -220,7 +223,7 @@ doc = [
'sphinxcontrib-httpdomain>=1.7.0',
"sphinxcontrib-redoc>=1.6.0",
"sphinxcontrib-spelling==5.2.1",
f"sphinx-airflow-theme @ {_SPHINX_AIRFLOW_THEME_URL}",
f"sphinx-airflow-theme{_SPHINX_AIRFLOW_THEME_URL}",
]
docker = [
'docker~=3.0',