From 14a265c9979d33689dd83c6006ed201ce82f370c Mon Sep 17 00:00:00 2001 From: liubo Date: Mon, 27 Nov 2023 15:17:18 +0800 Subject: [PATCH] Enabled Intersphinx linking to Python documentation Signed-off-by: liubo --- ...hinx-linking-to-Python-documentation.patch | 36 +++++++++++++++++++ python-wheel.spec | 6 +++- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 0001-Enabled-Intersphinx-linking-to-Python-documentation.patch diff --git a/0001-Enabled-Intersphinx-linking-to-Python-documentation.patch b/0001-Enabled-Intersphinx-linking-to-Python-documentation.patch new file mode 100644 index 0000000..d5b58c8 --- /dev/null +++ b/0001-Enabled-Intersphinx-linking-to-Python-documentation.patch @@ -0,0 +1,36 @@ +From 178d576c1819faf47802f66460a0cd3d568916ae Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Alex=20Gr=C3=B6nholm?= +Date: Sat, 7 Oct 2017 19:53:38 +0300 +Subject: [PATCH] Enabled Intersphinx linking to Python documentation + +--- + docs/conf.py | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/docs/conf.py b/docs/conf.py +index 1db319d..e9a5b35 100644 +--- a/docs/conf.py ++++ b/docs/conf.py +@@ -25,7 +25,7 @@ import pkg_resources + + # Add any Sphinx extension module names here, as strings. They can be extensions + # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. +-extensions = [] ++extensions = ['sphinx.ext.intersphinx'] + + # Add any paths that contain templates here, relative to this directory. + templates_path = ['_templates'] +@@ -87,6 +87,10 @@ highlight_language = 'bash' + # A list of ignored prefixes for module index sorting. + #modindex_common_prefix = [] + ++intersphinx_mapping = { ++ 'python': ('https://docs.python.org/', None) ++} ++ + + # -- Options for HTML output --------------------------------------------------- + +-- +2.42.0.windows.2 + diff --git a/python-wheel.spec b/python-wheel.spec index 2c4651c..efd6ecd 100644 --- a/python-wheel.spec +++ b/python-wheel.spec @@ -1,7 +1,7 @@ %bcond_with bootstrap Name: python-wheel Version: 0.31.1 -Release: 4 +Release: 5 Epoch: 1 Summary: Built-package format for Python License: MIT @@ -10,6 +10,7 @@ Source0: %{url}/archive/%{version}/wheel-%{version}.tar.gz BuildArch: noarch Patch0000: remove-keyrings.alt-dependency.patch +Patch0001: 0001-Enabled-Intersphinx-linking-to-Python-documentation.patch %description A built-package format for Python. @@ -116,5 +117,8 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -v --ignore build %endif %changelog +* Mon Nov 27 2023 liubo - 1:0.31.1-5 +- Enabled Intersphinx linking to Python documentation + * Mon Dec 2 2019 yangjian - 1:0.31.1-4 - Package init -- Gitee