[packages/python-sphinxcontrib-trio] - rel 6, fix docs build using sphinx 2+

baggins baggins at pld-linux.org
Fri Mar 14 13:33:42 CET 2025


commit 6e83214ceca7b88c31eec21dcec9d5d3845ca285
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Fri Mar 14 13:42:07 2025 +0100

    - rel 6, fix docs build using sphinx 2+

 python-sphinxcontrib-trio.spec |  4 +++-
 sphinx2.patch                  | 11 +++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/python-sphinxcontrib-trio.spec b/python-sphinxcontrib-trio.spec
index 610198a..eb8b1d2 100644
--- a/python-sphinxcontrib-trio.spec
+++ b/python-sphinxcontrib-trio.spec
@@ -7,12 +7,13 @@ Summary:	Make Sphinx better at documenting Python functions and methods
 Summary(pl.UTF-8):	Usprawnienie Sphinksa przy dokumentowaniu funkcji i method w Pythonie
 Name:		python-sphinxcontrib-trio
 Version:	1.1.2
-Release:	5
+Release:	6
 License:	Apache v2.0 or MIT
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/sphinxcontrib-trio/
 Source0:	https://files.pythonhosted.org/packages/source/s/sphinxcontrib-trio/sphinxcontrib-trio-%{version}.tar.gz
 # Source0-md5:	55d12f8888ee0207c41ffc90cfe51e87
+Patch0:		sphinx2.patch
 URL:		https://github.com/python-trio/sphinxcontrib-trio
 BuildRequires:	python3-modules >= 1:3.5
 BuildRequires:	python3-setuptools
@@ -80,6 +81,7 @@ Dokumentacja API modułu Pythona sphinxcontrib_trio.
 
 %prep
 %setup -q -n sphinxcontrib-trio-%{version}
+%patch -P 0 -p1
 
 %build
 %py3_build
diff --git a/sphinx2.patch b/sphinx2.patch
new file mode 100644
index 0000000..f60f4e1
--- /dev/null
+++ b/sphinx2.patch
@@ -0,0 +1,11 @@
+--- sphinxcontrib-trio-1.1.2/docs/source/conf.py~	2018-08-06 02:42:40.000000000 +0200
++++ sphinxcontrib-trio-1.1.2/docs/source/conf.py	2025-03-14 13:40:26.796652722 +0100
+@@ -38,7 +38,7 @@
+ ]
+ 
+ def setup(app):
+-    app.add_stylesheet("hack.css")
++    app.add_css_file("hack.css")
+ 
+ intersphinx_mapping = {
+     "sphinx": ("http://www.sphinx-doc.org/en/stable/", None),
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-sphinxcontrib-trio.git/commitdiff/6e83214ceca7b88c31eec21dcec9d5d3845ca285



More information about the pld-cvs-commit mailing list