Backport a patch to make python-sphinx work with Python 3.10-rc1

types.Union was renamed to types.UnionType, causing Sphinx to crash
This commit is contained in:
Karolina Surma 2021-08-03 18:00:12 +02:00
commit 924f1b1e38
2 changed files with 53 additions and 0 deletions

View file

@ -44,6 +44,9 @@ Source0: %{pypi_source %{upstream_name} %{upstream_version}}
# Allow extra themes to exist. We pull in python3-sphinx-theme-alabaster
# which causes that test to fail.
Patch1: sphinx-test_theming.diff
# `types.Union` was renamed to `types.UnionType` on the HEAD of Python 3.10
# (refs: python/cpython#27342). Afterwars, sphinx-build crashes because of ImportError
Patch2: rename-types-Union-to-types-UnionType.patch
BuildArch: noarch
@ -368,6 +371,7 @@ mkdir %{buildroot}%{python3_sitelib}/sphinxcontrib
* Mon Aug 02 2021 Karolina Surma <ksurma@redhat.com> - 1:4.1.2-1
- Update to 4.1.2
- Fixes rhbz#1979326
- Backport commit to fix python-sphinx with Python 3.10-rc1
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.0.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild