Bug 2232585

Summary: python-mechanicalsoup FTBFS with Sphinx 7.1+ in Fedora Rawhide
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-mechanicalsoupAssignee: Fabian Affolter <mail>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: mail
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: 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-17 13:31:43 UTC
python-mechanicalsoup FTBFS with Sphinx 7.1+ in Fedora Rawhide.
I want to include Sphinx 7.1.2 in Rawhide. Currently testing in Copr. Details below.

Reproducible: Always

Steps to Reproduce:
Tip - if you want to test locally copr repository then:

$ 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

Actual Results:  
+ sphinx-build-3 docs html
Running Sphinx v7.1.2
making output directory... done

Extension error (sphinx.config):
Handler <function correct_copyright_year at 0x7fe9a8e93e20> for event 'config-inited' threw an exception (exception: string index out of range)

Expected Results:  
Build is successful.

Sphinx has changed its way of creating copyright year: https://github.com/sphinx-doc/sphinx/pull/11524

mechanicalsoup has got its logic that somehow interferes with that: https://github.com/MechanicalSoup/MechanicalSoup/blob/v1.2.0/docs/conf.py#L52