[packages/python3-PyNaCl] - rel 4, upstream shpinx fixes

baggins baggins at pld-linux.org
Sun Apr 13 23:35:44 CEST 2025


commit 10a60c94bc275fe3c7dfaebf813e2c693b8b30b0
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Apr 14 01:34:24 2025 +0200

    - rel 4, upstream shpinx fixes

 python3-PyNaCl.spec |  4 +++-
 sphinx.patch        | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 63 insertions(+), 1 deletion(-)
---
diff --git a/python3-PyNaCl.spec b/python3-PyNaCl.spec
index aefcfd7..07ee17a 100644
--- a/python3-PyNaCl.spec
+++ b/python3-PyNaCl.spec
@@ -8,11 +8,12 @@ Summary:	Python 2 binding to the Networking and Cryptography (NaCl) library
 Summary(pl.UTF-8):	Wiązania Pythona 2 do biblioteki NaCl (Networking and Cryptography)
 Name:		python3-%{module}
 Version:	1.5.0
-Release:	3
+Release:	4
 License:	Apache v2.0
 Group:		Libraries/Python
 Source0:	https://github.com/pyca/pynacl/archive/%{version}/pynacl-%{version}.tar.gz
 # Source0-md5:	5f4332422b2be24fb1584eb447061b30
+Patch0:		sphinx.patch
 URL:		https://github.com/pyca/pynacl/
 BuildRequires:	libsodium-devel >= 1.0.18
 BuildRequires:	python3-cffi >= 1.4.1
@@ -55,6 +56,7 @@ Dokumentacja API modułu PyNaCl.
 
 %prep
 %setup -q -n pynacl-%{version}
+%patch -P0 -p1
 
 %build
 export SODIUM_INSTALL=system
diff --git a/sphinx.patch b/sphinx.patch
new file mode 100644
index 0000000..13ca60b
--- /dev/null
+++ b/sphinx.patch
@@ -0,0 +1,60 @@
+From 81943b3c61b9cc731ae0f2e87b7a91e42fbc8fa1 Mon Sep 17 00:00:00 2001
+From: Paul Kehrer <paul.l.kehrer at gmail.com>
+Date: Tue, 2 May 2023 18:43:49 -0400
+Subject: [PATCH] sphinx fix (#793)
+
+* sphinx fix
+
+* colons aren't commas
+
+* more fixes
+---
+ docs/conf.py | 3 +--
+ setup.py     | 2 +-
+ tox.ini      | 4 ++--
+ 3 files changed, 4 insertions(+), 5 deletions(-)
+
+diff --git a/docs/conf.py b/docs/conf.py
+index 3337cd29..09c8a3b7 100644
+--- a/docs/conf.py
++++ b/docs/conf.py
+@@ -177,8 +177,7 @@
+ htmlhelp_basename = "PyNaCldoc"
+ 
+ 
+-# Example configuration for intersphinx: refer to the Python standard library.
+-intersphinx_mapping = {"http://docs.python.org/": None}
++intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}
+ 
+ # Retry requests in the linkcheck builder so that we're resilient against
+ # transient network errors.
+diff --git a/setup.py b/setup.py
+index 505169ba..0fa903e8 100644
+--- a/setup.py
++++ b/setup.py
+@@ -36,7 +36,7 @@
+     "pytest>=3.2.1,!=3.3.0",
+     "hypothesis>=3.27.0",
+ ]
+-docs_requirements = ["sphinx>=1.6.5", "sphinx_rtd_theme"]
++docs_requirements = ["sphinx<7", "sphinx_rtd_theme"]
+ 
+ 
+ if platform.python_implementation() == "PyPy":
+diff --git a/tox.ini b/tox.ini
+index 1f76ae61..771f071d 100644
+--- a/tox.ini
++++ b/tox.ini
+@@ -21,10 +21,10 @@ commands =
+     coverage report -m
+ 
+ [testenv:docs]
++extras =
++    docs
+ deps =
+     doc8
+-    sphinx
+-    sphinx_rtd_theme
+ commands =
+     sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html
+     sphinx-build -W -b doctest -d {envtmpdir}/doctrees docs docs/_build/html
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-PyNaCl.git/commitdiff/10a60c94bc275fe3c7dfaebf813e2c693b8b30b0



More information about the pld-cvs-commit mailing list