From 1e0062a80eaa7b1668d913214890e8cc7459155d58b40cc9d6bbc4377d88c7ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 11 Jan 2021 15:01:56 +0000 Subject: [PATCH] Accepting request 862350 from home:mcalabkova:branches:devel:languages:python - Do not download python (and requests) documentation in the runtime. OBS-URL: https://build.opensuse.org/request/show/862350 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Sphinx?expand=0&rev=171 --- python-Sphinx.changes | 5 +++++ python-Sphinx.spec | 8 ++++++-- python3.inv | 4 ++-- requests.inv | Bin 0 -> 2059 bytes 4 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 requests.inv 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 0000000000000000000000000000000000000000000000000000000000000000..70103dc9b7e291356a2464a7868eab19b19bd4b919c338263052ce5b7dff9683 GIT binary patch literal 2059 zcmV+m2=wNERX>N99Zgg*Qc_4OWa&u{KZXhxWBOp+6Z)#;@bUGkXWpQ<7 zb98eGBOq2~a&u{KZaN?`E;2PPF$yCfRA^-&a%F8{X>Md?av*PJAarPHb0B7EY-J#6 zb0A}HZE$jBb8}^6Aa!$TZf78RY-wUH3V7PBTDz9pHW2Ok6+9CQPfE9eJK^q-cyH|zG zYXR}kF{}9eC;ODVh?7V;(Ck{4C1mD-7a(gx9C*s0GF+DNOH1p+9>iV)LjgU$ zS!!zn&2?=wuVQAM)=ErZ+UJpWajcZpW<8PW-8q4p$^a{C#2h=ZQU?gYjZ zwvUbp+N!pfC^MP!aus5I$IXP)!-Mum-yQ zmV6pD8>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