forked from pool/python-Sphinx
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:
@@ -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>
|
Tue Dec 29 20:31:46 UTC 2020 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-Sphinx
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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
|
Source1: https://files.pythonhosted.org/packages/source/S/Sphinx/Sphinx-%{version}.tar.gz.asc
|
||||||
# Provide intersphinx inventory offline
|
# Provide intersphinx inventory offline
|
||||||
Source2: https://docs.python.org/3/objects.inv#/python3.inv
|
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
|
Source99: python-Sphinx-rpmlintrc
|
||||||
BuildRequires: %{python_module base}
|
BuildRequires: %{python_module base}
|
||||||
BuildRequires: %{python_module setuptools}
|
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
|
mkdir build.doc
|
||||||
|
|
||||||
cp %{SOURCE2} doc/python3.inv
|
cp %{SOURCE2} doc/python3.inv
|
||||||
|
cp %{SOURCE3} doc/requests.inv
|
||||||
%{python_expand # Use one bundled intersphinx inventory for all flavors.
|
%{python_expand # Use one bundled intersphinx inventory for all flavors.
|
||||||
# The python3.6 inventory fails to build even in its own flavor.
|
# 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.
|
# 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
|
$python setup.py build_sphinx
|
||||||
rm build/sphinx/html/.buildinfo
|
rm build/sphinx/html/.buildinfo
|
||||||
$python setup.py build_sphinx -b man
|
$python setup.py build_sphinx -b man
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:129da3f51cec25e23f024542e9a01050041a62bc02a8b730d8b47e852db00b34
|
oid sha256:95665d7a35dcc74d8ad70772551c8f1a8adc330771621ec41f5991fb046c193c
|
||||||
size 109531
|
size 109538
|
||||||
|
BIN
requests.inv
Normal file
BIN
requests.inv
Normal file
Binary file not shown.
Reference in New Issue
Block a user