Bug 1977636 - python-pyswarms fails to build with Sphinx 4.0.2
Summary: python-pyswarms fails to build with Sphinx 4.0.2
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: python-pyswarms
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Iztok Fister Jr.
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 1973718
TreeView+ depends on / blocked
 
Reported: 2021-06-30 08:14 UTC by Karolina Surma
Modified: 2021-08-01 08:09 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-08-01 08:09:29 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2021-06-30 08:14:19 UTC
python-pyswarms fails to build with Sphinx 4.0.2 in Fedora 35 (currently Rawhide).

+ sphinx-build-3 docs html
Running Sphinx v4.0.2
making output directory... done
Exception occurred:
  File "/builddir/build/BUILD/pyswarms-1.3.0/docs/conf.py", line 167, in setup
    app.add_stylesheet("theme_overrides.css")  # path relative to static
AttributeError: 'Sphinx' object has no attribute 'add_stylesheet'

For the logs from testing build attempts, see:
https://copr.fedorainfracloud.org/coprs/ksurma/pygments-2.9.0/package/python-pyswarms/

Possible solution to this issue:
In some cases it may be enough to replace the call to 'add_stylesheet' with 'add_css_file' instead.

You can test you package using Koji scratch build
koji build --scratch <srpm>


For details regarding the Sphinx change, see https://fedoraproject.org/wiki/Changes/Sphinx4
Let us know here if you have any questions. Thank you!


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