[packages/python-isort] - disable pytest plugins
qboosh
qboosh at pld-linux.org
Mon Mar 21 18:57:10 CET 2022
commit 4e728d1e2da65d1442e3d3e677f25f0cec2ef593
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Mar 21 18:59:06 2022 +0100
- disable pytest plugins
python-isort.spec | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/python-isort.spec b/python-isort.spec
index 6b35cff..1ab490c 100644
--- a/python-isort.spec
+++ b/python-isort.spec
@@ -8,6 +8,7 @@
Summary: Python 2 library to sort imports alphabetically
Summary(pl.UTF-8): Narzędzie Pythona 2 do alfabetycznego sortowania listy importów
Name: python-%{module}
+# keep 4.x here for python2 support
Version: 4.3.21
Release: 5
License: MIT
@@ -122,6 +123,7 @@ Ten pakiet zawiera narzędzie wiersza poleceń.
%py_build
%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
%{__python} -m pytest test_isort.py
%endif
%endif
@@ -130,6 +132,7 @@ Ten pakiet zawiera narzędzie wiersza poleceń.
%py3_build
%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
%{__python3} -m pytest test_isort.py
%endif
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-isort.git/commitdiff/4e728d1e2da65d1442e3d3e677f25f0cec2ef593
More information about the pld-cvs-commit
mailing list