Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-openstackdocstheme for openSUSE:Factory checked in at 2021-08-12 09:01:12 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-openstackdocstheme (Old) and /work/SRC/openSUSE:Factory/.python-openstackdocstheme.new.1899 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-openstackdocstheme" Thu Aug 12 09:01:12 2021 rev:14 rq:911095 version:2.2.7 Changes: -------- --- /work/SRC/openSUSE:Factory/python-openstackdocstheme/python-openstackdocstheme.changes 2021-05-05 20:39:33.779029032 +0200 +++ /work/SRC/openSUSE:Factory/.python-openstackdocstheme.new.1899/python-openstackdocstheme.changes 2021-08-12 09:02:04.658111639 +0200 @@ -1,0 +2,6 @@ +Mon Aug 9 19:03:35 UTC 2021 - Dirk M??ller <dmuel...@suse.com> + +- add 0001-sphinx-4.0-Fix-sphinx.ext.extlinks.make_link_role-ca.patch: + compat with sphinx 4.x + +------------------------------------------------------------------- New: ---- 0001-sphinx-4.0-Fix-sphinx.ext.extlinks.make_link_role-ca.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-openstackdocstheme.spec ++++++ --- /var/tmp/diff_new_pack.QyM7Yv/_old 2021-08-12 09:02:05.054111007 +0200 +++ /var/tmp/diff_new_pack.QyM7Yv/_new 2021-08-12 09:02:05.058111001 +0200 @@ -24,6 +24,7 @@ Group: Development/Languages/Python URL: https://docs.openstack.org/openstackdocstheme Source0: https://files.pythonhosted.org/packages/source/o/openstackdocstheme/openstackdocstheme-2.2.7.tar.gz +Patch1: 0001-sphinx-4.0-Fix-sphinx.ext.extlinks.make_link_role-ca.patch BuildRequires: openstack-macros BuildRequires: python3-Sphinx BuildRequires: python3-dulwich >= 0.15.0 ++++++ 0001-sphinx-4.0-Fix-sphinx.ext.extlinks.make_link_role-ca.patch ++++++ >From 6cfaeb438e8ca0103955351bc9b398f4931b2580 Mon Sep 17 00:00:00 2001 From: Stephen Finucane <sfinu...@redhat.com> Date: Mon, 31 May 2021 15:27:48 +0100 Subject: [PATCH] sphinx 4.0: Fix sphinx.ext.extlinks.make_link_role call Commit 93cf1a57d [1] added a new parameter, 'name', to this function. Include that when we detect Sphinx 4.x in use. [1] https://github.com/sphinx-doc/sphinx/commit/93cf1a57d Change-Id: I3b05df39f701280052d8a0d4f261e8749669ca11 Signed-off-by: Stephen Finucane <sfinu...@redhat.com> --- openstackdocstheme/ext.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/openstackdocstheme/ext.py b/openstackdocstheme/ext.py index 80d43e5..25265b4 100644 --- a/openstackdocstheme/ext.py +++ b/openstackdocstheme/ext.py @@ -19,6 +19,7 @@ import textwrap import dulwich.repo from pbr import packaging +import sphinx from sphinx.ext import extlinks from sphinx.util import logging @@ -298,7 +299,13 @@ def _setup_link_roles(app): role_name, url, ) - app.add_role(role_name, extlinks.make_link_role(url, project_name)) + + if sphinx.version_info >= (4, 0, 0): + role = extlinks.make_link_role(project_name, url, project_name) + else: + role = extlinks.make_link_role(url, project_name) + + app.add_role(role_name, role) def _find_setup_cfg(srcdir): -- 2.32.0