#46 Update to 5.3.0
Merged 2 years ago by ksurma. Opened 2 years ago by ksurma.
rpms/ ksurma/python-sphinx 5.2.3  into  rawhide

file modified
+2
@@ -39,3 +39,5 @@ 

  /Sphinx-4.5.0.tar.gz

  /Sphinx-5.0.2.tar.gz

  /Sphinx-5.1.1.tar.gz

+ /Sphinx-5.2.3.tar.gz

+ /Sphinx-5.3.0.tar.gz

file modified
+9 -8
@@ -24,7 +24,7 @@ 

  %global upstream_name Sphinx

  

  Name:       python-sphinx

- %global     general_version 5.1.1

+ %global     general_version 5.3.0

  #global     prerel ...

  %global     upstream_version %{general_version}%{?prerel}

  Version:    %{general_version}%{?prerel:~%{prerel}}
@@ -249,11 +249,6 @@ 

  rm tests/test_ext_imgconverter.py

  %endif

  

- # Don't measure coverage:

- sed -i '/pytest-cov/d' setup.py

- # Not needed on recent Pythons, https://github.com/sphinx-doc/sphinx/pull/8483

- sed -i '/typed_ast/d' setup.py

- 

  

  %generate_buildrequires

  %pyproject_buildrequires -r %{?with_tests:-x test}
@@ -331,9 +326,11 @@ 

  %if %{with tests}

  %check

  # Currently, all linkcheck tests and test_latex_images need internet

+ # test_build_latex_doc needs internet to download pictures,

+ # but fails also with it enabled, we decided to skip it entirely

  %pytest \

  %if %{without internet}

-     -k "not linkcheck and not test_latex_images" \

+     -k "not linkcheck and not test_latex_images and not test_build_latex_doc" \

  %endif

  ;

  %endif
@@ -345,7 +342,7 @@ 

  %{_bindir}/sphinx-*

  %{python3_sitelib}/sphinx/

  %dir %{python3_sitelib}/sphinxcontrib/

- %{python3_sitelib}/Sphinx-%{upstream_version}.dist-info/

+ %{python3_sitelib}/sphinx-%{upstream_version}.dist-info/

  %dir %{_datadir}/sphinx/

  %dir %{_datadir}/sphinx/locale

  %dir %{_datadir}/sphinx/locale/*
@@ -362,6 +359,10 @@ 

  

  

  %changelog

+ * Tue Nov 08 2022 Karolina Surma <ksurma@redhat.com> - 1:5.3.0-1

+ - Update to 5.3.0

+ - Fixes rhbz#2129546

+ 

  * Mon Aug 15 2022 Karolina Surma <ksurma@redhat.com> - 1:5.1.1-1

  - Update to 5.1.1

  - Fixes rhbz#2110473

file modified
+1 -1
@@ -1,1 +1,1 @@ 

- SHA512 (Sphinx-5.1.1.tar.gz) = 82cb4c435b0f6cee6bf80b81028f06e425e3d6fb5614e64b1f5a8c715ece80b697b5b55e04f3afe26236bb4590de9cd41008d6480c4b3d895803d83e914afff3

+ SHA512 (Sphinx-5.3.0.tar.gz) = cd2321409f7566c6333d6fc5c4eb4ed2d07490923b0c8762a31f062d9e5d86bbd9bd2c2bb3b93a00b37f31940173404dba8259de940fe402a248cf66a72cd7ae

This requires https://src.fedoraproject.org/rpms/python-imagesize/pull-request/2 to be available.
I'll run the impact check in Copr.

Sphinx has moved from setuptools to pyproject.toml and flit as the build backend. Patches to setup.py are no longer needed. We don't need to patch out pytest-cov and typed_ast from pyproject.toml, they're not dragged into the build environment anymore.

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci

Problems identified:
- python-myst-parser (failing test suite due to the new directives present in Sphinx), reported upstream
- bind fails to build docs - https://bugzilla.redhat.com/show_bug.cgi?id=2132928
- coq fails to build docs - while looking for clues upstream, found this: https://bugzilla.redhat.com/show_bug.cgi?id=2132567 - this is "solved": for now the docs are not shipped with the package

Sphinx 5.3.0 is scheduled for Oct 16th.

rebased onto 388efc1

2 years ago

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci

Build succeeded.

python-myst-parser: https://src.fedoraproject.org/rpms/python-myst-parser/pull-request/12 - the tests compare a rendered HTML output which has changed in Sphinx 5.2+ after adding new directives. This is not a regression, test failure is reported upstream, therefore I think we're safe to skip the failing tests for now.

python-breathe: https://src.fedoraproject.org/rpms/python-breathe/pull-request/13 - upstream patch solves the issue

python-pybids - that's a failure happening for some time now: https://bugzilla.redhat.com/show_bug.cgi?id=2113646, not related to this update, athough related to Sphinx in general.

python3-docs: this is an upstream issue reported here: https://github.com/python/cpython/issues/98366 + this PR: https://github.com/python/cpython/pull/98437

python-pybids is solved: https://bodhi.fedoraproject.org/updates/FEDORA-2022-309ce7cf56

This leaves python3-docs to deal with.

python3-docs: upstream PR was merged to the 3.11 branch https://github.com/python/cpython/pull/98437 - so i expect this will start to work when 3.11.1 is out. We don't need to build the docs before then, right?

so i expect this will start to work when 3.11.1 is out. We don't need to build the docs before then, right?

Correct.

The change looks good. rpminspect reports no weirdness.

For reference, we've discovered with @ksurma that test_build_latex_doc also fails with internet.

rebased onto 30802d2

2 years ago

For reference, we've discovered with @ksurma that test_build_latex_doc also fails with internet.

It downloads Python logo from the internet - that's one problem.
Another is the issue with lualatex which produces OK looking PDF output on the test files if invoked directly as lualatex sphinxtests.tex but fails with a spurious error message when invoked as '['lualatex', '--halt-on-error', '--interaction=nonstopmode', '-output-directory=lualatex', 'sphinxtests.tex']'. The nonstopmode seems to be the problem here. We decided not to investigate it further and just skip the test.

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci

rebased onto d24b3b0

2 years ago

Build succeeded.

I commented on the skipped test, this is ready to be shipped.

Pull-Request has been merged by ksurma

2 years ago