Accepting request 1169646 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1169646
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Sphinx?expand=0&rev=105
This commit is contained in:
Ana Guerrero 2024-04-23 16:55:08 +00:00 committed by Git OBS Bridge
commit ecf89c577f
3 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,16 @@
Index: sphinx-7.2.6/tests/test_ext_autodoc.py
===================================================================
--- sphinx-7.2.6.orig/tests/test_ext_autodoc.py
+++ sphinx-7.2.6/tests/test_ext_autodoc.py
@@ -1407,7 +1407,10 @@ def test_enum_class(app):
options = {"members": None}
actual = do_autodoc(app, 'class', 'target.enums.EnumCls', options)
- if sys.version_info[:2] >= (3, 12):
+ if sys.version_info[:2] >= (3, 13) or sys.version_info[:3] >= (3, 12, 3):
+ args = ('(value, names=<not given>, *values, module=None, '
+ 'qualname=None, type=None, start=1, boundary=None)')
+ elif sys.version_info[:2] >= (3, 12):
args = ('(value, names=None, *values, module=None, '
'qualname=None, type=None, start=1, boundary=None)')
elif sys.version_info[:2] >= (3, 11):

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Apr 22 10:10:49 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
- Add fix-test-expectation-for-enum-rendering-on-python-3.12.3.patch
gh#sphinx-doc/sphinx#12293, bsc#1223128
-------------------------------------------------------------------
Wed Feb 28 13:53:54 UTC 2024 - Ana Guerrero <ana.guerrero@suse.com>

View File

@ -44,6 +44,8 @@ Source5: update-intersphinx.sh
Source99: python-Sphinx.keyring
# PATCH-FIX-UPSTREAM: fix-autodoc-tests-python-3117.patch gh#sphinx-doc/sphinx#11793
Patch01: fix-autodoc-tests-python-3117.patch
# PATCH-FIX-UPSTREAM: fix-test-expectation-for-enum-rendering-on-python-3.12.3.patch gh#sphinx-doc/sphinx#12293
Patch02: fix-test-expectation-for-enum-rendering-on-python-3.12.3.patch
BuildRequires: %{python_module base}
BuildRequires: %{python_module flit-core}
BuildRequires: %{python_module pip}