From 76bebb518ec009430be11fc29a3e6947ed4c8d80dae4afca47c235384eee9286 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 13 Dec 2024 12:41:05 +0100 Subject: [PATCH] Sync from SUSE:SLFO:Main python-zope.event revision 212a9e9b7f43fc8a0d91923c74736d83 --- intersphinx.patch | 27 +++++++++++++++++++++++++++ python-zope.event.changes | 6 ++++++ python-zope.event.spec | 5 ++++- 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 intersphinx.patch diff --git a/intersphinx.patch b/intersphinx.patch new file mode 100644 index 0000000..465bd8f --- /dev/null +++ b/intersphinx.patch @@ -0,0 +1,27 @@ +From cfcb34ea5c61d71c77529cbf2400738473e25bac Mon Sep 17 00:00:00 2001 +From: Michael Howitz +Date: Fri, 9 Aug 2024 18:29:08 +0200 +Subject: Add support for Python 3.12. - Drop support for Python 3.7 + +--- a/docs/conf.py ++++ b/docs/conf.py +@@ -36,7 +36,7 @@ + templates_path = ['_templates'] + + # The suffix of source filenames. +-source_suffix = '.rst' ++source_suffix = {'.rst': 'restructuredtext'} + + # The encoding of source files. + #source_encoding = 'utf-8' +@@ -203,9 +203,7 @@ + + + # Example configuration for intersphinx: refer to the Python standard library. +-intersphinx_mapping = { +- 'https://docs.python.org/': None +-} ++intersphinx_mapping = {'python': ('https://docs.python.org/', None)} + + autodoc_default_flags = ['members', 'show-inheritance'] + autodoc_member_order = 'bysource' diff --git a/python-zope.event.changes b/python-zope.event.changes index 3c16b92..28d25a9 100644 --- a/python-zope.event.changes +++ b/python-zope.event.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Sep 5 18:28:35 UTC 2024 - Christoph G + +- Add patch intersphinx.patch for compatibility with recent + version of Sphinx + ------------------------------------------------------------------- Thu Sep 7 11:11:48 UTC 2023 - Dirk Müller diff --git a/python-zope.event.spec b/python-zope.event.spec index 84b6611..0f1129f 100644 --- a/python-zope.event.spec +++ b/python-zope.event.spec @@ -1,7 +1,7 @@ # # spec file for package python-zope.event # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,6 +25,8 @@ Summary: Very basic event publishing system License: ZPL-2.1 URL: https://pypi.python.org/pypi/%{modname} Source: https://files.pythonhosted.org/packages/source/z/zope.event/%{modname}-%{version}.tar.gz +# fix upstream, compatible with recent Sphinx +Patch1: intersphinx.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -47,6 +49,7 @@ This package contains documentation files for %{name}. %prep %setup -q -n %{modname}-%{version} +%autopatch -p1 %build %python_build