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 9baab62..3695f9d 100644 --- a/python-Sphinx.changes +++ b/python-Sphinx.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Apr 22 10:10:49 UTC 2024 - Daniel Garcia + +- 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 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}