[packages/python-pytest-flake8] - updated to 1.0.7

qboosh qboosh at pld-linux.org
Sun Feb 7 15:59:13 CET 2021


commit e0c0354862baec9cc2eedc9ffcdf902dadc6b3c1
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Feb 7 15:59:40 2021 +0100

    - updated to 1.0.7

 python-pytest-flake8.spec | 20 +++++++++++++++-----
 1 file changed, 15 insertions(+), 5 deletions(-)
---
diff --git a/python-pytest-flake8.spec b/python-pytest-flake8.spec
index b603e4b..41baa6e 100644
--- a/python-pytest-flake8.spec
+++ b/python-pytest-flake8.spec
@@ -7,13 +7,13 @@
 Summary:	py.test plugin to check FLAKE8 requirements
 Summary(pl.UTF-8):	Wtyczka py.test do sprawdzania wymagań FLAKE8
 Name:		python-pytest-flake8
-Version:	1.0.4
-Release:	2
+Version:	1.0.7
+Release:	1
 License:	BSD
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/pytest-flake8/
 Source0:	https://files.pythonhosted.org/packages/source/p/pytest-flake8/pytest-flake8-%{version}.tar.gz
-# Source0-md5:	a6fcb6ceb01a2bc06c005f6cc7f70fe5
+# Source0-md5:	e50df912c25866bfcb1a7266d6e266ef
 URL:		https://github.com/tholo/pytest-flake8
 %if %{with python2}
 BuildRequires:	python-modules >= 1:2.7
@@ -62,13 +62,23 @@ Wtyczka py.test do efektywnego sprawdzania zgodności z PEP8.
 %if %{with python2}
 %py_build
 
-%{?with_tests:PYTHONPATH=$(pwd) %{__python} -m pytest}
+%if %{with tests}
+PYTHONPATH=$(pwd) \
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS="pytest_flake8" \
+%{__python} -m pytest
+%endif
 %endif
 
 %if %{with python3}
 %py3_build
 
-%{?with_tests:PYTHONPATH=$(pwd) %{__python3} -m pytest}
+%if %{with tests}
+PYTHONPATH=$(pwd) \
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS="pytest_flake8" \
+%{__python3} -m pytest
+%endif
 %endif
 
 %install
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pytest-flake8.git/commitdiff/e0c0354862baec9cc2eedc9ffcdf902dadc6b3c1



More information about the pld-cvs-commit mailing list