File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 66# to you under the Apache License, Version 2.0 (the
77# "License"); you may not use this file except in compliance
88# with the License. You may obtain a copy of the License at
9- #
9+ #
1010# http://www.apache.org/licenses/LICENSE-2.0
11- #
11+ #
1212# Unless required by applicable law or agreed to in writing,
1313# software distributed under the License is distributed on an
1414# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -22,4 +22,4 @@ python:
2222 - doc
2323 - docker
2424 - gcp_api
25- - emr
25+ - emr
Original file line number Diff line number Diff line change 3737
3838# See LEGAL-362
3939def verify_gpl_dependency ():
40+ # The Read the Docs build environment [1] does a pip install of Airflow which cannot
41+ # be overridden with custom environment variables, so we detect the READTHEDOCS env
42+ # var they provide to set the env var that avoids the GPL dependency on install when
43+ # building the docs site.
44+ # [1]: http://docs.readthedocs.io/en/latest/builds.html#build-environment
45+ if os .getenv ("READTHEDOCS" ) == "True" :
46+ os .environ ["SLUGIFY_USES_TEXT_UNIDECODE" ] = "yes"
47+
4048 if (not os .getenv ("AIRFLOW_GPL_UNIDECODE" )
4149 and not os .getenv ("SLUGIFY_USES_TEXT_UNIDECODE" ) == "yes" ):
4250 raise RuntimeError ("By default one of Airflow's dependencies installs a GPL "
@@ -161,6 +169,7 @@ def write_version(filename=os.path.join(*['airflow',
161169databricks = ['requests>=2.5.1, <3' ]
162170datadog = ['datadog>=0.14.0' ]
163171doc = [
172+ 'mock' ,
164173 'sphinx>=1.2.3' ,
165174 'sphinx-argparse>=0.1.13' ,
166175 'sphinx-rtd-theme>=0.1.6' ,
You can’t perform that action at this time.
0 commit comments