From e056cd45dd59b4820ba4523a6dff10b5366657ca6f9e4fc3cb78907ef6c03e20 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Mon, 22 Apr 2024 10:23:04 +0000 Subject: [PATCH] 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 --- ...ion-for-enum-rendering-on-python-3.12.3.patch | 16 ++++++++++++++++ python-Sphinx.changes | 4 ++-- python-Sphinx.spec | 2 ++ 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 fix-test-expectation-for-enum-rendering-on-python-3.12.3.patch diff --git a/fix-test-expectation-for-enum-rendering-on-python-3.12.3.patch b/fix-test-expectation-for-enum-rendering-on-python-3.12.3.patch new file mode 100644 index 0000000..fd7318f --- /dev/null +++ b/fix-test-expectation-for-enum-rendering-on-python-3.12.3.patch @@ -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=, *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): diff --git a/python-Sphinx.changes b/python-Sphinx.changes index e35b14e..5f4d029 100644 --- a/python-Sphinx.changes +++ b/python-Sphinx.changes @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:69e48d882caaaae7518f0cf38f540cf7ee9b21227d90e0701dc5c87ea96dfc37 -size 184599 +oid sha256:fe35e2f5e028c53385adaf4531053d3e888e3df38bed6f92787931436add5a74 +size 184850 diff --git a/python-Sphinx.spec b/python-Sphinx.spec index 1227b01..8ef2987 100644 --- a/python-Sphinx.spec +++ b/python-Sphinx.spec @@ -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}