Accepting request 1169645 from home:dgarcia:branches:devel:languages:python:Factory

- Add fix-test-expectation-for-enum-rendering-on-python-3.12.3.patch
  gh#sphinx-doc/sphinx#12293, bsc#1223128

OBS-URL: https://build.opensuse.org/request/show/1169645
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Sphinx?expand=0&rev=262
This commit is contained in:
Daniel Garcia 2024-04-22 10:23:04 +00:00 committed by Git OBS Bridge
parent 5f5174c6de
commit 8abec6f647
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}