From 0629b877dce9c2fb1eb50b106ee46482c3eff0ff Mon Sep 17 00:00:00 2001 From: Jerry James Date: Oct 30 2023 16:26:46 +0000 Subject: Adapt to Sphinx 7.2.x (rhbz#2246970) --- diff --git a/python-texext-sphinx72.patch b/python-texext-sphinx72.patch new file mode 100644 index 0000000..f2a7888 --- /dev/null +++ b/python-texext-sphinx72.patch @@ -0,0 +1,22 @@ +--- texext-0.6.7/texext/tests/test_docstrings.py.orig 2022-06-02 08:06:17.000000000 -0600 ++++ texext-0.6.7/texext/tests/test_docstrings.py 2023-10-30 09:42:46.313138512 -0600 +@@ -36,8 +36,8 @@ FRAGMENTS = dict(code=r'(code|tt|span)', + math=r'"math( notranslate)?( nohighlight)?"') + DOCSTRING_RE = re.compile( + r'

Here is the module docstring:

\n' +-r'' +-r'

A module to test docstring parsing with math such as ' ++r'()?' ++r'A module to test docstring parsing with math such as ' + r'\\\(\\gamma = \\cos\(\\alpha\)\\\)

\n' + r'

Need to test other markup - so: ' +@@ -57,7 +57,7 @@ r'\(\(\)' # sphinx 1.1.3 + ')' # end of regexp group + r'.+\n' ++r'title="(Permalink|Link) to this definition">.+\n' + r'

A docstring with math in first line ' + r'\\\(z = \\beta\\\)

\n' + r'

With some more \\\(a = 1\\\) math\. ' diff --git a/python-texext.spec b/python-texext.spec index 0e31e18..c806532 100644 --- a/python-texext.spec +++ b/python-texext.spec @@ -1,6 +1,6 @@ Name: python-texext Version: 0.6.7 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Sphinx extensions for working with LaTeX math # BSD-2-Clause: the project as a whole @@ -11,6 +11,9 @@ Source0: %pypi_source texext # Update versioneer to fix FTBFS with python 3.12 # https://github.com/matthew-brett/texext/pull/13 Patch0: %{name}-versioneer.patch +# Update expected docstring regex for Sphinx 7.2.x +# https://github.com/matthew-brett/texext/pull/14 +Patch1: %{name}-sphinx72.patch BuildArch: noarch BuildRequires: python3-devel @@ -45,6 +48,9 @@ rst2html --no-datestamp README.rst README.html %doc README.html %changelog +* Mon Oct 30 2023 Jerry James - 0.6.7-7 +- Adapt to Sphinx 7.2.x (rhbz#2246970) + * Fri Jul 21 2023 Fedora Release Engineering - 0.6.7-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild