3 %bcond_without tests # py.test tests
4 %bcond_without python2 # CPython 2.x module
5 %bcond_without python3 # CPython 3.x module
7 Summary: py.test plugin to check FLAKE8 requirements
8 Summary(pl.UTF-8): Wtyczka py.test do sprawdzania wymagań FLAKE8
9 Name: python-pytest-flake8
10 # keep 1.0.x here for python2 support
14 Group: Libraries/Python
15 #Source0Download: https://pypi.org/simple/pytest-flake8/
16 Source0: https://files.pythonhosted.org/packages/source/p/pytest-flake8/pytest-flake8-%{version}.tar.gz
17 # Source0-md5: e50df912c25866bfcb1a7266d6e266ef
18 URL: https://github.com/tholo/pytest-flake8
20 BuildRequires: python-modules >= 1:2.7
21 BuildRequires: python-setuptools
23 BuildRequires: python-flake8 >= 3.5
24 BuildRequires: python-pytest >= 3.5
28 BuildRequires: python3-modules >= 1:3.4
29 BuildRequires: python3-setuptools
31 BuildRequires: python3-flake8 >= 3.5
32 BuildRequires: python3-pytest >= 3.5
35 BuildRequires: rpm-pythonprov
36 BuildRequires: rpmbuild(macros) >= 1.714
37 Requires: python-modules >= 1:2.7
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 py.test plugin for efficiently checking PEP8 compliance.
44 %description -l pl.UTF-8
45 Wtyczka py.test do efektywnego sprawdzania zgodności z PEP8.
47 %package -n python3-pytest-flake8
48 Summary: py.test plugin to check FLAKE8 requirements
49 Summary(pl.UTF-8): Wtyczka py.test do sprawdzania wymagań FLAKE8
50 Group: Libraries/Python
51 Requires: python3-modules >= 1:3.4
53 %description -n python3-pytest-flake8
54 py.test plugin for efficiently checking PEP8 compliance.
56 %description -n python3-pytest-flake8 -l pl.UTF-8
57 Wtyczka py.test do efektywnego sprawdzania zgodności z PEP8.
60 %setup -q -n pytest-flake8-%{version}
68 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
69 PYTEST_PLUGINS="pytest_flake8" \
79 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
80 PYTEST_PLUGINS="pytest_flake8" \
81 %{__python3} -m pytest
86 rm -rf $RPM_BUILD_ROOT
99 rm -rf $RPM_BUILD_ROOT
103 %defattr(644,root,root,755)
104 %doc CHANGELOG LICENSE README.rst
105 %{py_sitescriptdir}/pytest_flake8.py[co]
106 %{py_sitescriptdir}/pytest_flake8-%{version}-py*.egg-info
110 %files -n python3-pytest-flake8
111 %defattr(644,root,root,755)
112 %doc CHANGELOG LICENSE README.rst
113 %{py3_sitescriptdir}/pytest_flake8.py
114 %{py3_sitescriptdir}/__pycache__/pytest_flake8.cpython-*.py[co]
115 %{py3_sitescriptdir}/pytest_flake8-%{version}-py*.egg-info