From 8abec6f6479b43107d53ff49109cefa26883365c05f077cb2e4b892cc8392572 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 | 6 ++++++ python-Sphinx.spec | 2 ++ 3 files changed, 24 insertions(+) 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 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}