Bug 2246970

Summary: python-texext fails to build with Sphinx 7.2.6 on Fedora Rawhide (40+)
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-texextAssignee: Jerry James <loganjerry>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: loganjerry
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-texext-0.6.7-7.fc40 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-10-30 16:37:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2232469    

Description Karolina Surma 2023-10-30 09:37:29 UTC
python-texext fails to build with Sphinx 7.2.6 on Fedora Rawhide (40+).

The issue detected:
```
+ /usr/bin/pytest
________________________ TestDocstrings.test_docstrings ________________________

self = <texext.tests.test_docstrings.TestDocstrings object at 0x7f66df4048c0>

    def test_docstrings(self):
        html = self.get_built_file('a_page.html')
>       assert DOCSTRING_RE.search(html)
E       assert None
E        +  where None = <built-in method search of re.Pattern object at 0x555d8dc8f7b0>('<!DOCTYPE html>\n\n<html lang="en" data-content_root="./">\n  <head>\n    <meta charset="utf-8" />\n    <meta name="v...ef="_sources/a_page.rst.txt"\n          rel="nofollow">Page source</a>\n    </div>\n\n    \n\n    \n  </body>\n</html>')
E        +    where <built-in method search of re.Pattern object at 0x555d8dc8f7b0> = re.compile('<p>Here is the module docstring:</p>\\n<span class="target" id="module-texext.tests.for_docstrings"></span><p>A module to test docstring parsing with math such as <span class="math( notranslate)?( no).search

texext/tests/test_docstrings.py:92: AssertionError

=========================== short test summary info ============================
FAILED texext/tests/test_docstrings.py::TestDocstrings::test_docstrings - ass...
================== 1 failed, 16 passed, 13 warnings in 2.58s ===================
```

For the logs from testing build attempts, see:
https://copr.fedorainfracloud.org/coprs/ksurma/sphinx-7.2.6/package/python-texext

You can test you package in mock running:

$ mock -r fedora-rawhide-x86_64 --addrepo=https://download.copr.fedorainfracloud.org/results/ksurma/sphinx-7.2.6/fedora-rawhide-x86_64/ --no-clean your.src.rpm
$ mock -r fedora-rawhide-x86_64 --addrepo=https://download.copr.fedorainfracloud.org/results/ksurma/sphinx-7.2.6/fedora-rawhide-x86_64/ shell

We'd like to include Sphinx 7.2.x in Fedora 40.

Let us know here if you have any questions. Thank You!

Comment 1 Fedora Update System 2023-10-30 16:36:08 UTC
FEDORA-2023-15d47b8066 has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2023-15d47b8066

Comment 2 Fedora Update System 2023-10-30 16:37:14 UTC
FEDORA-2023-15d47b8066 has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.