[packages/python3-tornado] drop use of sphinxcontrib asyncio ext; rel 4

atler atler at pld-linux.org
Mon Apr 21 22:19:11 CEST 2025


commit 79d62782955d33d645e299aeee18386762f53915
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Apr 21 22:14:24 2025 +0200

    drop use of sphinxcontrib asyncio ext; rel 4
    
    incompatible with sphinx >= 6 which supposedly ships with native asyncio
    support

 asyncio-docs.patch   | 10 ++++++++++
 python3-tornado.spec |  7 ++++---
 2 files changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/python3-tornado.spec b/python3-tornado.spec
index a2ba7b8..0b60829 100644
--- a/python3-tornado.spec
+++ b/python3-tornado.spec
@@ -8,12 +8,13 @@ Summary:	Web framework and asynchronous networking library
 Summary(pl.UTF-8):	Szkielet WWW i asynchroniczna biblioteka sieciowa
 Name:		python3-tornado
 Version:	6.2
-Release:	3
+Release:	4
 License:	Apache v2.0
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/tornado/
 Source0:	https://files.pythonhosted.org/packages/source/t/tornado/tornado-%{version}.tar.gz
 # Source0-md5:	32fbad606b439c3e1bf4e79d4e872741
+Patch0:		asyncio-docs.patch
 URL:		https://www.tornadoweb.org/
 %if %{with python3}
 BuildRequires:	python3-devel >= 1:3.7
@@ -29,10 +30,9 @@ BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
 BuildRequires:	sed >= 4.0
 %if %{with doc}
-BuildRequires:	python3-sphinxcontrib-asyncio
 BuildRequires:	python3-sphinx_rtd_theme
 BuildRequires:	python3-twisted
-BuildRequires:	sphinx-pdg-3
+BuildRequires:	sphinx-pdg-3 >= 6
 %endif
 Requires:	python3-modules >= 1:3.7
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -66,6 +66,7 @@ Dokumentacja API modułu Pythona tornado.
 
 %prep
 %setup -q -n tornado-%{version}
+%patch -P0 -p1
 
 %{__sed} -i -e '1s,/usr/bin/env python3\?,%{__python3},' demos/*/*.py
 
diff --git a/asyncio-docs.patch b/asyncio-docs.patch
new file mode 100644
index 0000000..5f991c6
--- /dev/null
+++ b/asyncio-docs.patch
@@ -0,0 +1,10 @@
+--- tornado-6.2/docs/conf.py.orig	2022-07-04 00:11:56.000000000 +0200
++++ tornado-6.2/docs/conf.py	2025-04-21 22:11:44.155572853 +0200
+@@ -19,7 +19,6 @@
+     "sphinx.ext.doctest",
+     "sphinx.ext.intersphinx",
+     "sphinx.ext.viewcode",
+-    "sphinxcontrib.asyncio",
+ ]
+ 
+ primary_domain = "py"
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-tornado.git/commitdiff/79d62782955d33d645e299aeee18386762f53915



More information about the pld-cvs-commit mailing list