From: Carsten Schoenert Date: Sat, 15 Jan 2022 23:15:22 +0100 Subject: docs/conf.py: Don't use --intersphinx within 'pydoctor_args' This option requires access to the internet which isn't allowed while package build. Further more the requests library doesn't allow access to local available files so using the wanted objects.inv files will need more effort to make this usable. Also currently only a few of this files are included in packages. --- docs/conf.py | 5 +++-- setup.cfg | 26 +++++++++++++------------- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 99ed246..d51d6f5 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -206,8 +206,9 @@ pydoctor_url_path = "/en/{rtd_version}/api/" # The inventory file may be None to use the default location at the given URI. intersphinx_mapping = { 'py3': ('/usr/share/doc/python3-doc/html', None), - "zopeinterface": ("https://zopeinterface.readthedocs.io/en/latest", None), - "pyOpenSSL": ("https://pyopenssl.readthedocs.io/en/latest", None), + 'python': ('http://docs.python.org/3', '/usr/share/doc/python3/html/objects.inv'), +# "zopeinterface": ("https://zopeinterface.readthedocs.io/en/latest", None), +# "pyOpenSSL": ("https://pyopenssl.readthedocs.io/en/latest", None), } # How long to cache remote inventories. Positive is a number of days, # negative means infinite. The default is 5 days, which should be fine diff --git a/setup.cfg b/setup.cfg index ed16969..cf53bd7 100644 --- a/setup.cfg +++ b/setup.cfg @@ -91,19 +91,19 @@ privacy= HIDDEN:twisted.internet.test HIDDEN:twisted.test.* PUBLIC:twisted.test.proto_helpers -intersphinx= - https://docs.python.org/3/objects.inv - https://cryptography.io/en/latest/objects.inv - https://pyopenssl.readthedocs.io/en/stable/objects.inv - https://hyperlink.readthedocs.io/en/stable/objects.inv - https://twisted.org/constantly/docs/objects.inv - https://twisted.org/incremental/docs/objects.inv - https://python-hyper.org/projects/hyper-h2/en/stable/objects.inv - https://priority.readthedocs.io/en/stable/objects.inv - https://zopeinterface.readthedocs.io/en/latest/objects.inv - https://automat.readthedocs.io/en/latest/objects.inv - https://service-identity.readthedocs.io/en/latest/objects.inv - https://python-hyper.org/projects/h2/en/stable/objects.inv +#intersphinx= +# https://docs.python.org/3/objects.inv +# https://cryptography.io/en/latest/objects.inv +# https://pyopenssl.readthedocs.io/en/stable/objects.inv +# https://hyperlink.readthedocs.io/en/stable/objects.inv +# https://twisted.org/constantly/docs/objects.inv +# https://twisted.org/incremental/docs/objects.inv +# https://python-hyper.org/projects/hyper-h2/en/stable/objects.inv +# https://priority.readthedocs.io/en/stable/objects.inv +# https://zopeinterface.readthedocs.io/en/latest/objects.inv +# https://automat.readthedocs.io/en/latest/objects.inv +# https://service-identity.readthedocs.io/en/latest/objects.inv +# https://python-hyper.org/projects/h2/en/stable/objects.inv ; ; These options are used as default for the tox and direct command line usage.