Bug 1823530

Summary: ipython fails to build with Sphinx 3.0.0
Product: [Fedora] Fedora Reporter: Charalampos Stratakis <cstratak>
Component: ipythonAssignee: Lumír Balhar <lbalhar>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: cstratak, dcantrell, lbalhar, mhroncok, michel, mrunge, orion, python-sig, tomspur
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-14 12:17:06 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: 1783776    

Description Charalampos Stratakis 2020-04-13 21:11:24 UTC
ipython fails to build with Sphinx 3.0.0.

Could not import extension configtraits (exception: cannot import name 'l_' from 'sphinx.locale' (/usr/lib/python3.8/site-packages/sphinx/locale/__init__.py))

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/cstratak/sphinx_3.0.0/fedora-rawhide-x86_64/01335447-ipython/

For all our attempts to build ipython with Sphinx 3.0.0, see:
https://copr.fedorainfracloud.org/coprs/cstratak/sphinx_3.0.0/package/ipython/

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Sphinx 3:
https://copr.fedorainfracloud.org/coprs/cstratak/sphinx_3.0.0/

Let us know here if you have any questions.

Sphinx 3 will be included in Fedora 33. To make that update smoother, we're building the dependent packages in Copr.
We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Lumír Balhar 2020-04-14 09:20:09 UTC
The problem is caused by an import of a deprecated function `l_` in docs/sphinxext/configtraits.py. It seems to me that both imports in the file are useless so I've filled an upstream PR to remove them and we'll see what CI thinks about it: https://github.com/ipython/ipython/pull/12235

Downstream PR: https://src.fedoraproject.org/rpms/ipython/pull-request/8

Comment 2 Lumír Balhar 2020-04-14 12:17:06 UTC
Merged to master branch. No need for a rebuild.

Copr build: https://copr.fedorainfracloud.org/coprs/cstratak/sphinx_3.0.0/builds/?dirname=sphinx_3.0.0:pr:8

Comment 3 Charalampos Stratakis 2020-04-14 23:30:57 UTC
Thanks for the fix!