Bug 2246943 - python-jupyter-sphinx fails to build with Sphinx 7.2.6 on Fedora Rawhide (40+)
Summary: python-jupyter-sphinx fails to build with Sphinx 7.2.6 on Fedora Rawhide (40+)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-jupyter-sphinx
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jerry James
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 2232469
TreeView+ depends on / blocked
 
Reported: 2023-10-30 08:36 UTC by Karolina Surma
Modified: 2023-10-30 17:55 UTC (History)
1 user (show)

Fixed In Version: python-jupyter-sphinx-0.4.0-6.fc40
Clone Of:
Environment:
Last Closed: 2023-10-30 17:55:20 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2023-10-30 08:36:00 UTC
python-jupyter-sphinx fails to build with Sphinx 7.2.6 on Fedora Rawhide (40+).

The issue detected:
```
+ /usr/bin/pytest
============================= test session starts ==============================
platform linux -- Python 3.12.0, pytest-7.4.2, pluggy-1.3.0
rootdir: /builddir/build/BUILD/jupyter-sphinx-0.4.0
plugins: anyio-3.7.1
collected 0 items / 1 error

==================================== ERRORS ====================================
____________________ ERROR collecting tests/test_execute.py ____________________
ImportError while importing test module '/builddir/build/BUILD/jupyter-sphinx-0.4.0/tests/test_execute.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.12/importlib/__init__.py:90: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_execute.py:15: in <module>
    from sphinx.testing.util import SphinxTestApp, assert_node, path
E   ImportError: cannot import name 'path' from 'sphinx.testing.util' (/usr/lib/python3.12/site-packages/sphinx/testing/util.py)
=========================== short test summary info ============================
ERROR tests/test_execute.py
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 0.39s ===============================
```

From the Sphinx' changelog:
#11526: Deprecate sphinx.testing.path. Use os.path or pathlib instead.


For the logs from testing build attempts, see:
https://copr.fedorainfracloud.org/coprs/ksurma/sphinx-7.2.6/package/python-jupyter-sphinx

You can test you package in mock running:

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

We'd like to include Sphinx 7.2.x in Fedora 40.

Let us know here if you have any questions. Thank You!

Comment 1 Fedora Update System 2023-10-30 17:38:09 UTC
FEDORA-2023-8d20c1d6c9 has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2023-8d20c1d6c9

Comment 2 Fedora Update System 2023-10-30 17:55:20 UTC
FEDORA-2023-8d20c1d6c9 has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.


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