[packages/python3-pyOpenSSL] - updated dependencies, explicit pytest plugins list; disable tests failing with builder net isolati

qboosh qboosh at pld-linux.org
Wed Jun 25 19:39:59 CEST 2025


commit 87c0cd987106ad25db3ebb2a6affd26e88fd0af5
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Jun 25 19:41:21 2025 +0200

    - updated dependencies, explicit pytest plugins list; disable tests failing with builder net isolation

 python3-pyOpenSSL.spec | 21 +++++++++++++++++----
 1 file changed, 17 insertions(+), 4 deletions(-)
---
diff --git a/python3-pyOpenSSL.spec b/python3-pyOpenSSL.spec
index 6cbe5e6..ed75d68 100644
--- a/python3-pyOpenSSL.spec
+++ b/python3-pyOpenSSL.spec
@@ -18,15 +18,17 @@ URL:		https://github.com/pyca/pyopenssl
 %if %(locale -a | grep -q '^C\.utf8$'; echo $?)
 BuildRequires:	glibc-localedb-all
 %endif
-BuildRequires:	python3-devel >= 1:3.6
+BuildRequires:	python3-devel >= 1:3.7
 BuildRequires:	python3-setuptools
 %if %{with tests}
 BuildRequires:	python3-cryptography >= 41.0.5
-BuildRequires:	python3-cryptography < 45
+BuildRequires:	python3-cryptography < 46
 BuildRequires:	python3-pretend
 BuildRequires:	python3-pytest >= 3.0.1
 BuildRequires:	python3-pytest-rerunfailures
-BuildConflicts:	python3-flaky
+%if "%{py3_ver}" != "3.13"
+BuildRequires:	python3-typing_extensions >= 4.9
+%endif
 %endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
@@ -77,8 +79,19 @@ Dokumentacja API modułu Pythona pyOpenSSL.
 
 %if %{with tests}
 # test_verify_with_time test fails with 32-bit time_t(?)
+# the rest require localhost networking (not working with unshare --net)
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS="pytest_rerunfailures" \
 PYTHONPATH=$(pwd)/build-3/lib \
-%{__python3} -m pytest -v tests -k 'not test_verify_with_time'
+%{__python3} -m pytest -v tests -k "\
+not test_verify_with_time \
+and not test_set_info_callback and not test_set_keylog_callback \
+and not test_set_proto_version \
+and not test_load_verify_bytes_cafile and not test_load_verify_unicode_cafile and not test_load_verify_directory_capath \
+and not test_set_verify_callback_exception and not test_set_verify_callback_reference and not test_set_verify_default_callback \
+and not test_add_extra_chain_cert and not test_use_certificate_chain_file_bytes and not test_use_certificate_chain_file_unicode \
+and not TestConnection and not TestConnectionRecvInto and not TestConnectionSendAll \
+and not test_socket_connect and not test_unexpected_EOF"
 %endif
 
 %if %{with doc}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-pyOpenSSL.git/commitdiff/87c0cd987106ad25db3ebb2a6affd26e88fd0af5



More information about the pld-cvs-commit mailing list