Bug 1823521 - python-sphinx-notfound-page fails to build with Sphinx 3.0.0
Summary: python-sphinx-notfound-page fails to build with Sphinx 3.0.0
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-sphinx-notfound-page
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kevin Fenzi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: SPHINX3
TreeView+ depends on / blocked
 
Reported: 2020-04-13 21:00 UTC by Charalampos Stratakis
Modified: 2020-04-21 22:53 UTC (History)
3 users (show)

Fixed In Version: python-sphinx-notfound-page-0.4-7.fc33
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-21 22:53:10 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Charalampos Stratakis 2020-04-13 21:00:41 UTC
python-sphinx-notfound-page fails to build with Sphinx 3.0.0.

=================================== FAILURES ===================================
__________________________ test_sphinx_resource_urls ___________________________

app = <SphinxTestApp buildername='html'>
status = <_io.StringIO object at 0x7fc4a30de790>
warning = <_io.StringIO object at 0x7fc4a30de280>

    @pytest.mark.sphinx(srcdir=srcdir)
    def test_sphinx_resource_urls(app, status, warning):
        app.build()
        path = app.outdir / '404.html'
        assert path.exists()
    
        content = open(path).read()
    
        chunks = [
            # Sphinx's resources URLs
            '<script type="text/javascript" src="/en/latest/_static/jquery.js"></script>',
            '<script type="text/javascript" src="/en/latest/_static/underscore.js"></script>',
            '<script type="text/javascript" src="/en/latest/_static/doctools.js"></script>',
        ]
    
        if sphinx.version_info >= (1, 8):
            chunks.append(
                '<script type="text/javascript" src="/en/latest/_static/language_data.js"></script>',
            )
    
        for chunk in chunks:
>           assert chunk in content
E           assert '<script type="text/javascript" src="/en/latest/_static/jquery.js"></script>' in '\n<!DOCTYPE html>\n\n<html>\n  <head>\n    <meta charset="utf-8" />\n    <title>Page not found &#8212; Python  docume..."https://github.com/bitprophet/alabaster">Alabaster 0.7.12</a>\n      \n    </div>\n\n    \n\n    \n  </body>\n</html>'

tests/test_urls.py:456: AssertionError

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/cstratak/sphinx_3.0.0/fedora-rawhide-x86_64/01335471-python-sphinx-notfound-page/

For all our attempts to build python-sphinx-notfound-page with Sphinx 3.0.0, see:
https://copr.fedorainfracloud.org/coprs/cstratak/sphinx_3.0.0/package/python-sphinx-notfound-page/

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.


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