Accepting request 853313 from devel:languages:python:Factory
- Add patch sphinx-update-removed-function.patch to no longer call a now removed function and to make documentation build independent of the Sphinx version (bsc#1179630, gh#python/cpython#13236). OBS-URL: https://build.opensuse.org/request/show/853313 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python39?expand=0&rev=8
This commit is contained in:
commit
29b655d5a3
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Dec 5 16:55:12 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Add patch sphinx-update-removed-function.patch to no longer call
|
||||||
|
a now removed function and to make documentation build independent of
|
||||||
|
the Sphinx version (bsc#1179630, gh#python/cpython#13236).
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Nov 13 17:20:08 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
Fri Nov 13 17:20:08 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
@ -140,6 +140,8 @@ Patch29: bpo-31046_ensurepip_honours_prefix.patch
|
|||||||
# PATCH-FIX-UPSTREAM bsc1167501-invalid-alignment.patch gh#python/cpython#19133 mcepl@suse.com
|
# PATCH-FIX-UPSTREAM bsc1167501-invalid-alignment.patch gh#python/cpython#19133 mcepl@suse.com
|
||||||
# Fix wrong misalignment of pointer to vectorcallfunc
|
# Fix wrong misalignment of pointer to vectorcallfunc
|
||||||
Patch31: bsc1167501-invalid-alignment.patch
|
Patch31: bsc1167501-invalid-alignment.patch
|
||||||
|
# PATCH-FIX-UPSTREAM stop calling removed Sphinx function gh#python/cpython#13236
|
||||||
|
Patch32: sphinx-update-removed-function.patch
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: gmp-devel
|
BuildRequires: gmp-devel
|
||||||
@ -265,7 +267,7 @@ Python, and Macintosh Module Reference in HTML format.
|
|||||||
%package -n %{python_pkg_name}-doc-devhelp
|
%package -n %{python_pkg_name}-doc-devhelp
|
||||||
Summary: Additional Package Documentation for Python 3 in devhelp format
|
Summary: Additional Package Documentation for Python 3 in devhelp format
|
||||||
%if %{primary_interpreter}
|
%if %{primary_interpreter}
|
||||||
Provides: python3-doc-devhelp = %{version}
|
Provides: python3-doc-devhelp = %{version}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description -n %{python_pkg_name}-doc-devhelp
|
%description -n %{python_pkg_name}-doc-devhelp
|
||||||
@ -395,6 +397,7 @@ other applications.
|
|||||||
%patch27 -p1
|
%patch27 -p1
|
||||||
%patch29 -p1
|
%patch29 -p1
|
||||||
%patch31 -p1
|
%patch31 -p1
|
||||||
|
%patch32 -p1
|
||||||
|
|
||||||
# drop Autoconf version requirement
|
# drop Autoconf version requirement
|
||||||
sed -i 's/^AC_PREREQ/dnl AC_PREREQ/' configure.ac
|
sed -i 's/^AC_PREREQ/dnl AC_PREREQ/' configure.ac
|
||||||
|
26
sphinx-update-removed-function.patch
Normal file
26
sphinx-update-removed-function.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
From 960bb883769e5c64a63b014590d75654db87ffb0 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Pablo Galindo <Pablogsal@gmail.com>
|
||||||
|
Date: Fri, 10 May 2019 22:58:17 +0100
|
||||||
|
Subject: [PATCH] Fix sphinx deprecation warning about env.note_versionchange()
|
||||||
|
(GH-13236)
|
||||||
|
|
||||||
|
---
|
||||||
|
Doc/tools/extensions/pyspecific.py | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
--- a/Doc/tools/extensions/pyspecific.py
|
||||||
|
+++ b/Doc/tools/extensions/pyspecific.py
|
||||||
|
@@ -355,7 +355,12 @@ class DeprecatedRemoved(Directive):
|
||||||
|
translatable=False)
|
||||||
|
node.append(para)
|
||||||
|
env = self.state.document.settings.env
|
||||||
|
- env.get_domain('changeset').note_changeset(node)
|
||||||
|
+ # new method
|
||||||
|
+ if hasattr(env, 'get_domain'):
|
||||||
|
+ env.get_domain('changeset').note_changeset(node)
|
||||||
|
+ # deprecated pre-Sphinx-2 method
|
||||||
|
+ else:
|
||||||
|
+ env.note_versionchange('deprecated', version[0], node, self.lineno)
|
||||||
|
return [node] + messages
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user