Accepting request 758777 from home:jayvdb:branches:devel:languages:python

- Re-activate test suite
- Update to v2.0.2
  * Fix compatibility with pytest 4.6+

OBS-URL: https://build.opensuse.org/request/show/758777
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-error-for-skips?expand=0&rev=7
This commit is contained in:
John Vandenberg
2019-12-22 04:37:38 +00:00
committed by Git OBS Bridge
parent 069d1f2e75
commit ad83be77cb
4 changed files with 17 additions and 13 deletions

View File

@@ -18,21 +18,20 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pytest-error-for-skips
Version: 1.0.0
Version: 2.0.2
Release: 0
Summary: Pytest plugin to treat skipped tests a test failure
License: MIT
Group: Development/Languages/Python
URL: https://github.com/janschulz/pytest-error-for-skips
Source: https://github.com/jankatins/pytest-error-for-skips/archive/v%{version}.tar.gz
URL: https://github.com/jankatins/pytest-error-for-skips
Source: https://github.com/jankatins/pytest-error-for-skips/archive/%{version}.tar.gz#/pytest-error-for-skips-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: dos2unix
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-pytest >= 2.9.2
Requires: python-pytest >= 4.6
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module pytest >= 2.9.2}
BuildRequires: %{python_module pytest >= 4.6}
# /SECTION
%python_subpackages
@@ -45,7 +44,6 @@ missing dependencies.
%prep
%setup -q -n pytest-error-for-skips-%{version}
dos2unix README.rst
%build
%python_build
@@ -55,11 +53,10 @@ dos2unix README.rst
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# The tests are broken and upstream is dead since 2016
#%%python_expand PYTHONPATH=%{$python_sitelib} py.test-%{$python_bin_suffix} -v
%pytest
%files %{python_files}
%doc README.rst
%doc README.md
%license LICENSE
%{python_sitelib}/*