[packages/python3-pytest-socket] Up to 0.8.1

arekm arekm at pld-linux.org
Thu Nov 12 09:53:43 CET 2026


commit 77b333ef84d9abbe09a70cdc453740255e851086
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Nov 12 03:06:19 2026 +0100

    Up to 0.8.1

 python3-pytest-socket.spec | 31 ++++++++++++++++++-------------
 1 file changed, 18 insertions(+), 13 deletions(-)
---
diff --git a/python3-pytest-socket.spec b/python3-pytest-socket.spec
index 33a6542..1089aef 100644
--- a/python3-pytest-socket.spec
+++ b/python3-pytest-socket.spec
@@ -5,26 +5,30 @@
 Summary:	Pytest Plugin to disable socket calls during tests
 Summary(pl.UTF-8):	Wtyczka pytesta blokująca odwołania do gniazd w trakcie testów
 Name:		python3-pytest-socket
-Version:	0.7.0
+Version:	0.8.1
 Release:	1
 License:	MIT
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/pytest-socket/
 Source0:	https://files.pythonhosted.org/packages/source/p/pytest-socket/pytest_socket-%{version}.tar.gz
-# Source0-md5:	a0d2be06ec38c479a0731b79512ad61d
+# Source0-md5:	eebfbef33da08f54c8665c9af98f8dff
 URL:		https://pypi.org/project/pytest-socket/
 BuildRequires:	python3-build
 BuildRequires:	python3-installer
-BuildRequires:	python3-modules >= 1:3.8
-BuildRequires:	python3-setuptools
-%if %{with pytest}
-BuildRequires:	python3-pytest >= 6.2.5
-BuildRequires:	python3-pytest-httpbin >= 2.0.0
-BuildRequires:	python3-pytest-randomly >= 3.15.0
+BuildRequires:	python3-modules >= 1:3.10
+BuildRequires:	python3-uv-build >= 0.7.20
+BuildRequires:	python3-uv-build < 0.13
+%if %{with tests}
+BuildRequires:	python3-anyio
+BuildRequires:	python3-httpx >= 0.28.1
+BuildRequires:	python3-pytest >= 7.0.0
+# upstream uses pytest-codspeed; pytest-benchmark provides the same benchmark fixture
+BuildRequires:	python3-pytest-benchmark
+BuildRequires:	python3-starlette >= 0.47.1
 %endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 2.044
-Requires:	python3-modules >= 1:3.8
+Requires:	python3-modules >= 1:3.10
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -43,9 +47,11 @@ podczas testów, aby zapobiec odwołaniom do sieci.
 %py3_build_pyproject
 
 %if %{with tests}
+# expects localhost to resolve to both 127.0.0.1 and ::1, depends on /etc/hosts
 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTEST_PLUGINS=pytest_httpbin.plugin,pytest_socket \
-%{__python3} -m pytest tests
+PYTEST_PLUGINS=anyio.pytest_plugin,pytest_benchmark.plugin,pytest_socket \
+PYTHONPATH=$(pwd)/src \
+%{__python3} -m pytest tests -k 'not test_single_cli_arg_connect_disabled_hostname_resolved'
 %endif
 
 %install
@@ -59,6 +65,5 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc LICENSE README.md
-%{py3_sitescriptdir}/pytest_socket.py
-%{py3_sitescriptdir}/__pycache__/pytest_socket.cpython-*.py[co]
+%{py3_sitescriptdir}/pytest_socket
 %{py3_sitescriptdir}/pytest_socket-%{version}.dist-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-pytest-socket.git/commitdiff/77b333ef84d9abbe09a70cdc453740255e851086



More information about the pld-cvs-commit mailing list