[packages/python3-logbook] - up to 1.8.0

baggins baggins at pld-linux.org
Sat Mar 15 11:13:28 CET 2025


commit 779300fb8758b34a239a4d16b19b27c5b95d5936
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Mar 15 11:09:12 2025 +0100

    - up to 1.8.0

 no-network.patch     | 13 +++++++++++++
 python3-logbook.spec | 14 ++++++++------
 2 files changed, 21 insertions(+), 6 deletions(-)
---
diff --git a/python3-logbook.spec b/python3-logbook.spec
index 27ef1bb..bfba5e6 100644
--- a/python3-logbook.spec
+++ b/python3-logbook.spec
@@ -7,13 +7,14 @@
 Summary:	A logging replacement for Python
 Summary(pl.UTF-8):	Zamiennik biblioteki logging dla Pythona
 Name:		python3-%{module}
-Version:	1.7.0.post0
-Release:	3
+Version:	1.8.0
+Release:	0.1
 License:	BSD
 Group:		Development/Languages/Python
 #Source0Download: https://pypi.org/simple/logbook/
-Source0:	https://files.pythonhosted.org/packages/source/l/logbook/Logbook-%{version}.tar.gz
-# Source0-md5:	cbb7e5fb2d6325f42a323b0000127393
+Source0:	https://files.pythonhosted.org/packages/source/l/logbook/logbook-%{version}.tar.gz
+# Source0-md5:	d15918a5745349eefab327661454527d
+Patch0:		no-network.patch
 URL:		https://pypi.org/project/Logbook/
 BuildRequires:	python3 >= 1:3.8
 BuildRequires:	python3-Cython
@@ -30,7 +31,7 @@ BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
 %if %{with doc}
 # already installed package for metadata
-BuildRequires:	python3-logbook
+#BuildRequires:	python3-logbook
 BuildRequires:	sphinx-pdg-3
 # >= 5
 %endif
@@ -56,7 +57,8 @@ API documentation for Python Logbook module.
 Dokumentacja API modułu Pythona Logbook.
 
 %prep
-%setup -q -n Logbook-%{version}
+%setup -q -n logbook-%{version}
+%patch -P 0 -p1
 
 %build
 %py3_build
diff --git a/no-network.patch b/no-network.patch
new file mode 100644
index 0000000..66815cf
--- /dev/null
+++ b/no-network.patch
@@ -0,0 +1,13 @@
+--- logbook-1.8.0/tests/test_syslog_handler.py~	2024-10-26 18:23:53.000000000 +0200
++++ logbook-1.8.0/tests/test_syslog_handler.py	2025-03-15 11:05:08.733319135 +0100
+@@ -26,6 +26,10 @@
+ @pytest.mark.usefixtures("unix_sock_path")
+ @pytest.mark.parametrize("sock_family,socktype,address", TO_TEST)
+ @pytest.mark.parametrize("app_name", [None, "Testing"])
++ at pytest.mark.skipif(
++    os.environ.get("ENABLE_NETWORK_TESTS") is None,
++    reason="Needs network.",
++)
+ def test_syslog_handler(
+     logger, activation_strategy, sock_family, socktype, address, app_name
+ ):
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-logbook.git/commitdiff/779300fb8758b34a239a4d16b19b27c5b95d5936



More information about the pld-cvs-commit mailing list