forked from pool/python-pytest-flake8
- Make sure we really really execute tests
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-flake8?expand=0&rev=4
This commit is contained in:
committed by
Git OBS Bridge
parent
670cac8e72
commit
168cb255ea
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 11 10:43:25 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Make sure we really really execute tests
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 6 08:41:05 UTC 2019 - alarrosa@suse.com
|
||||
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_without test
|
||||
Name: python-pytest-flake8
|
||||
Version: 1.0.4
|
||||
Release: 0
|
||||
@@ -27,16 +26,14 @@ Group: Development/Languages/Python
|
||||
URL: https://github.com/tholo/pytest-flake8
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pytest-flake8/pytest-flake8-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module flake8 >= 3.0}
|
||||
BuildRequires: %{python_module pytest >= 2.8}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-flake8 >= 3.0
|
||||
Requires: python-pytest >= 2.8
|
||||
BuildArch: noarch
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module flake8 >= 3.0}
|
||||
BuildRequires: %{python_module pytest >= 2.8}
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -52,10 +49,8 @@ Plugin for py.test for efficiently checking PEP8 compliance.
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
%python_exec setup.py test
|
||||
%endif
|
||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix}
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
|
||||
Reference in New Issue
Block a user