[packages/python-asn1crypto] pytest for tests

arekm arekm at pld-linux.org
Sat May 3 16:56:46 CEST 2025


commit 839727a487de75250d4c26a6bda289b35dc4e396
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat May 3 16:24:07 2025 +0200

    pytest for tests

 python-asn1crypto.spec | 19 ++++++++++++++++---
 1 file changed, 16 insertions(+), 3 deletions(-)
---
diff --git a/python-asn1crypto.spec b/python-asn1crypto.spec
index 3bd3a11..5a026e6 100644
--- a/python-asn1crypto.spec
+++ b/python-asn1crypto.spec
@@ -11,7 +11,7 @@ Summary:	Python ASN.1 library with a focus on performance and a pythonic API
 Summary(pl.UTF-8):	Biblioteka ASN.1 dla Pythona zorientowana na wydajność i pythonowe API
 Name:		python-%{pypi_name}
 Version:	1.5.1
-Release:	3
+Release:	4
 License:	MIT
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/asn1crypto/
@@ -69,11 +69,24 @@ PKCS#8, PKCS#12, PKCS#5, X.509 i TSP.
 
 %build
 %if %{with python2}
-%py_build %{?with_tests:test}
+%py_build
+
+%if %{with tests}
+# use explicit plugins list for reliable builds (delete PYTEST_PLUGINS if empty)
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS= \
+%{__python} -m pytest tests
+%endif
 %endif
 
 %if %{with python3}
-%py3_build %{?with_tests:test}
+%py3_build
+%if %{with tests}
+# use explicit plugins list for reliable builds (delete PYTEST_PLUGINS if empty)
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS= \
+%{__python3} -m pytest tests
+%endif
 %endif
 
 %install
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-asn1crypto.git/commitdiff/839727a487de75250d4c26a6bda289b35dc4e396



More information about the pld-cvs-commit mailing list