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
This commit is contained in:
Markéta Machová 2021-01-11 15:01:56 +00:00 committed by Git OBS Bridge
parent 67c1788d75
commit 1e0062a80e
4 changed files with 13 additions and 4 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jan 11 14:09:59 UTC 2021 - Markéta Machová <mmachova@suse.com>
- Do not download python (and requests) documentation in the runtime.
-------------------------------------------------------------------
Tue Dec 29 20:31:46 UTC 2020 - Dirk Müller <dmueller@suse.com>

View File

@ -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

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:129da3f51cec25e23f024542e9a01050041a62bc02a8b730d8b47e852db00b34
size 109531
oid sha256:95665d7a35dcc74d8ad70772551c8f1a8adc330771621ec41f5991fb046c193c
size 109538

BIN
requests.inv Normal file

Binary file not shown.