This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch v2-0-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v2-0-test by this push:
new fb22d4a Fix failing doc build (#14986)
fb22d4a is described below
commit fb22d4a1c87a4ca796ef85c8f2313fdc4a5c5cc0
Author: Kaxil Naik <[email protected]>
AuthorDate: Wed Mar 24 16:57:42 2021 +0000
Fix failing doc build (#14986)
- For some reason pymongo's stable inventory fetch is redirecting, I can
reproduce it locally too if I try to access
https://pymongo.readthedocs.io/en/stable/objects.inv from by browser.
(cherry picked from commit f6a1774555341f6a82c7cae1ce65903676bde61a)
---
docs/exts/docs_build/fetch_inventories.py | 4 ++--
docs/exts/docs_build/third_party_inventories.py | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/docs/exts/docs_build/fetch_inventories.py
b/docs/exts/docs_build/fetch_inventories.py
index da66d02..592e818 100644
--- a/docs/exts/docs_build/fetch_inventories.py
+++ b/docs/exts/docs_build/fetch_inventories.py
@@ -123,8 +123,8 @@ def fetch_inventories():
(path for _, _, path in to_download),
)
failed, success = partition(lambda d: d[1], download_results)
- failed, success = list(failed), list(failed)
- print(f"Result: {len(success)}, success {len(failed)} failed")
+ failed, success = list(failed), list(success)
+ print(f"Result: {len(success)} success, {len(failed)} failed")
if failed:
print("Failed packages:")
for pkg_no, (pkg_name, _) in enumerate(failed, start=1):
diff --git a/docs/exts/docs_build/third_party_inventories.py
b/docs/exts/docs_build/third_party_inventories.py
index 27b461f..307fd39 100644
--- a/docs/exts/docs_build/third_party_inventories.py
+++ b/docs/exts/docs_build/third_party_inventories.py
@@ -20,7 +20,7 @@ THIRD_PARTY_INDEXES = {
'celery': 'https://docs.celeryproject.org/en/stable',
'hdfs': 'https://hdfscli.readthedocs.io/en/latest',
'jinja2': 'https://jinja.palletsprojects.com/en/master',
- 'mongodb': 'https://pymongo.readthedocs.io/en/stable/',
+ 'mongodb': 'https://pymongo.readthedocs.io/en/3.11.3',
'pandas': 'https://pandas.pydata.org/pandas-docs/stable',
'python': 'https://docs.python.org/3',
'requests': 'https://requests.readthedocs.io/en/master',