diff --git a/python-Sphinx.changes b/python-Sphinx.changes index e19d3ca..d7a63c8 100644 --- a/python-Sphinx.changes +++ b/python-Sphinx.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jan 11 14:09:59 UTC 2021 - Markéta Machová + +- Do not download python (and requests) documentation in the runtime. + ------------------------------------------------------------------- Tue Dec 29 20:31:46 UTC 2020 - Dirk Müller diff --git a/python-Sphinx.spec b/python-Sphinx.spec index da5bc29..ade0664 100644 --- a/python-Sphinx.spec +++ b/python-Sphinx.spec @@ -1,7 +1,7 @@ # # spec file for package python-Sphinx # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -38,6 +38,7 @@ Source: https://files.pythonhosted.org/packages/source/S/Sphinx/Sphinx-% Source1: https://files.pythonhosted.org/packages/source/S/Sphinx/Sphinx-%{version}.tar.gz.asc # Provide intersphinx inventory offline Source2: https://docs.python.org/3/objects.inv#/python3.inv +Source3: https://requests.readthedocs.io/en/master/objects.inv#/requests.inv Source99: python-Sphinx-rpmlintrc BuildRequires: %{python_module base} BuildRequires: %{python_module setuptools} @@ -233,10 +234,13 @@ sed -i 's/\r$//' sphinx/themes/basic/static/jquery.js # Fix wrong end-of-line en mkdir build.doc cp %{SOURCE2} doc/python3.inv +cp %{SOURCE3} doc/requests.inv %{python_expand # Use one bundled intersphinx inventory for all flavors. # The python3.6 inventory fails to build even in its own flavor. # Use a more recent default (currently 3.9) from the source tag instead. -sed -i -e "s/\(intersphinx_mapping = ..python.: (.https:..docs.python.org.3.., \)None\()\)/\1'python3.inv'\2/g" doc/conf.py +# The same for requests. +sed -i -e "s/\((.https:..docs.python.org.3.., \)None\()\)/\1'python3.inv'\2/g" doc/conf.py +sed -i -e "s/\((.https:..requests.readthedocs.io.*, \)None\()\)/\1'requests.inv'\2/g" doc/conf.py $python setup.py build_sphinx rm build/sphinx/html/.buildinfo $python setup.py build_sphinx -b man diff --git a/python3.inv b/python3.inv index 39f957c..366b108 100644 --- a/python3.inv +++ b/python3.inv @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:129da3f51cec25e23f024542e9a01050041a62bc02a8b730d8b47e852db00b34 -size 109531 +oid sha256:95665d7a35dcc74d8ad70772551c8f1a8adc330771621ec41f5991fb046c193c +size 109538 diff --git a/requests.inv b/requests.inv new file mode 100644 index 0000000..70103dc Binary files /dev/null and b/requests.inv differ