Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always install sphinx_airflow_theme from pypi #16594

Merged
merged 1 commit into from Jun 22, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 1 addition & 17 deletions setup.py
Expand Up @@ -176,22 +176,6 @@ def write_version(filename: str = os.path.join(*[my_dir, "airflow", "git_version
file.write(text)


def get_sphinx_theme_version() -> str:
"""
Return sphinx theme version. If USE_THEME_FROM_GIT env variable is set, the theme is used from
GitHub to allow dynamically update it during development. However for regular PIP release
you cannot use @ package specification, so the latest available released theme package from
PIP is used.
:return: Version of sphinx theme to use.
"""
if os.environ.get('USE_THEME_FROM_GIT'):
return (
"@ https://github.com/apache/airflow-site/releases/download/0.0.4/"
+ "sphinx_airflow_theme-0.0.4-py3-none-any.whl"
)
return ''


# '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
# Start dependencies group
Expand Down Expand Up @@ -258,7 +242,7 @@ def get_sphinx_theme_version() -> str:
doc = [
# Sphinx is limited to < 3.5.0 because of https://github.com/sphinx-doc/sphinx/issues/8880
'sphinx>=2.1.2, <3.5.0',
f'sphinx-airflow-theme{get_sphinx_theme_version()}',
'sphinx-airflow-theme',
'sphinx-argparse>=0.1.13',
'sphinx-autoapi==1.0.0',
'sphinx-copybutton',
Expand Down