Bug 2232585 - python-mechanicalsoup FTBFS with Sphinx 7.1+ in Fedora Rawhide
Summary: python-mechanicalsoup FTBFS with Sphinx 7.1+ in Fedora Rawhide
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-mechanicalsoup
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Fabian Affolter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2225274
TreeView+ depends on / blocked
 
Reported: 2023-08-17 13:31 UTC by Karolina Surma
Modified: 2023-08-17 13:32 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.