From 06b17a9bde323f9091a4f7a4ba4862426092409a Mon Sep 17 00:00:00 2001 From: Kaxil Naik Date: Wed, 24 Mar 2021 16:52:24 +0000 Subject: [PATCH] Fix failing doc build - 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. --- 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 da66d0217dab6..592e8184abf41 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 27b461f7881e8..307fd391f26b3 100644 --- a/docs/exts/docs_build/third_party_inventories.py +++ b/docs/exts/docs_build/third_party_inventories.py @@ -20,7 +20,7 @@ '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',