Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-ncclient for openSUSE:Factory
checked in at 2024-10-27 11:25:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-ncclient (Old)
and /work/SRC/openSUSE:Factory/.python-ncclient.new.2020 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-ncclient"
Sun Oct 27 11:25:53 2024 rev:22 rq:1218489 version:0.6.15
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-ncclient/python-ncclient.changes
2024-02-28 19:47:20.746303045 +0100
+++
/work/SRC/openSUSE:Factory/.python-ncclient.new.2020/python-ncclient.changes
2024-10-27 11:26:19.465014436 +0100
@@ -1,0 +2,6 @@
+Fri Oct 25 22:17:02 UTC 2024 - Matej Cepl <[email protected]>
+
+- Add intersphinx-mapping.patch to allow working with Sphinx >=
+ 8.* (gh#ncclient/ncclient#604).
+
+-------------------------------------------------------------------
New:
----
intersphinx-mapping.patch
BETA DEBUG BEGIN:
New:
- Add intersphinx-mapping.patch to allow working with Sphinx >=
8.* (gh#ncclient/ncclient#604).
BETA DEBUG END:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-ncclient.spec ++++++
--- /var/tmp/diff_new_pack.8G9T3N/_old 2024-10-27 11:26:19.897032344 +0100
+++ /var/tmp/diff_new_pack.8G9T3N/_new 2024-10-27 11:26:19.901032510 +0100
@@ -26,6 +26,9 @@
# PATCH-FIX-OPENSUSE allow_old_sphinx.patch [email protected]
# Allow build with old Sphinx (< 2.0) on Leap
Patch0: allow_old_sphinx.patch
+# PATCH-FIX-UPSTREAM intersphinx-mapping.patch gh#ncclient/ncclient#604
[email protected]
+# use conditionally new form of intersphinx_mapping
+Patch1: intersphinx-mapping.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -58,8 +61,9 @@
%prep
%setup -q -n ncclient-%{version}
%if 0%{?suse_version} < 1550
-%patch -P 0 -p 1
+%patch -p 1 -P 0
%endif
+%patch -p 1 -P 1
find examples/ -name "*.py" -exec sed -i 's|#!/usr/bin/env
python$|#!/usr/bin/python|g' {} \;
# drop shebang
++++++ intersphinx-mapping.patch ++++++
---
docs/source/conf.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -12,6 +12,7 @@
# serve to show the default.
import sys, os
+import sphinx
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
@@ -196,6 +197,9 @@ latex_logo = "_static/logo.png"
# Example configuration for intersphinx: refer to the Python standard library.
-intersphinx_mapping = {'http://docs.python.org/': None}
+if sphinx.version_info[0] < 8:
+ intersphinx_mapping = {"http://docs.python.org/": None}
+else:
+ intersphinx_mapping = {'python': ('https://docs.python.org/', None)}
autoclass_content = 'both'