Bug 2233118

Summary: rst2pdf doesn't work with Sphinx 7.1+ in Fedora Rawhide
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: rst2pdfAssignee: Sergio Pascual <sergio.pasra>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: negativo17, sergio.pasra
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-28 18:29:42 UTC Type: ---
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: 2225274    

Description Karolina Surma 2023-08-21 14:10:37 UTC
Found when building documentation for python-PyMuPDF:

Could not import extension rst2pdf.pdfbuilder (exception: cannot import name 'versionlabels' from 'sphinx.locale' (/usr/lib/python3.12/site-packages/sphinx/locale/__init__.py))

Version 0.97 which we have in Fedora, doesn't support this Sphinx version.
This has been mitigated upstream, with the latest released version being 0.101 so a simple rebase might help.

Reproducible: Always

Steps to Reproduce:
Try to build python-PyMuPDF locally in mock:

Test locally in mock: 
$ mock -r fedora-rawhide-x86_64 --addrepo=https://download.copr.fedorainfracloud.org/results/ksurma/sphinx-7.1.2/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.1.2/fedora-rawhide-x86_64/ shell

Comment 1 Sergio Pascual 2023-08-28 18:29:42 UTC
I have built the update today

https://koji.fedoraproject.org/koji/taskinfo?taskID=105451679