[packages/python-oauthlib] Other way to run tests.

arekm arekm at pld-linux.org
Thu May 8 20:02:33 CEST 2025


commit eb46784633670c2ab76907d5655e6b721d5a0a55
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu May 8 19:46:50 2025 +0200

    Other way to run tests.

 python-oauthlib.spec | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/python-oauthlib.spec b/python-oauthlib.spec
index b38a394..8687227 100644
--- a/python-oauthlib.spec
+++ b/python-oauthlib.spec
@@ -9,7 +9,7 @@ Summary:	A generic, spec-compliant, thorough implementation of the OAuth request
 Summary(pl.UTF-8):	Ogólna, zgodna ze specyfikacją, pełna implementacja logiki podpisywania żądań OAuth
 Name:		python-%{module}
 Version:	3.1.0
-Release:	7
+Release:	8
 License:	BSD
 Group:		Development/Languages/Python
 #Source0Download: https://pypi.org/simple/oauthlib/
@@ -85,7 +85,10 @@ uzyskać obsługę OAuth niskim kosztem.
 %py_build
 
 %if %{with tests}
-nosetests-%{py_ver} 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
 
@@ -93,7 +96,10 @@ nosetests-%{py_ver} tests
 %py3_build
 
 %if %{with tests}
-nosetests-%{py3_ver} 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
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-oauthlib.git/commitdiff/eb46784633670c2ab76907d5655e6b721d5a0a55



More information about the pld-cvs-commit mailing list