forked from pool/python-pytest-cov
Accepting request 817654 from home:mcalabkova:branches:devel:languages:python:pytest
- Update to 2.10.0 * Improved the --no-cov warning. Now it's only shown if --no-cov is present before --cov. * Removed legacy pytest support. Changed setup.py so that pytest>=4.6 is required. OBS-URL: https://build.opensuse.org/request/show/817654 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-cov?expand=0&rev=18
This commit is contained in:
committed by
Git OBS Bridge
parent
cf2e82f5f8
commit
a70dc97c12
@@ -18,7 +18,7 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-pytest-cov
|
||||
Version: 2.9.0
|
||||
Version: 2.10.0
|
||||
Release: 0
|
||||
Summary: Pytest plugin for coverage reporting
|
||||
License: MIT
|
||||
@@ -27,15 +27,15 @@ Source: https://files.pythonhosted.org/packages/source/p/pytest-cov/pyte
|
||||
BuildRequires: %{python_module coverage >= 4.4}
|
||||
BuildRequires: %{python_module fields}
|
||||
BuildRequires: %{python_module process-tests}
|
||||
BuildRequires: %{python_module pytest-xdist}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module pytest >= 4.6.0}
|
||||
BuildRequires: %{python_module pytest-xdist >= 1.32.0}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module six}
|
||||
BuildRequires: %{python_module virtualenv}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-coverage >= 4.4
|
||||
Requires: python-pytest
|
||||
Requires: python-pytest >= 4.6.0
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -59,11 +59,10 @@ through pytest-cov or through coverage's config file.
|
||||
|
||||
%check
|
||||
# test_dist_missing_data - needs internet access
|
||||
# test_*_collocated gh#pytest-dev/pytest-cov#358
|
||||
# test_central_subprocess_change_cwd_with_pythonpath - needs pytest cov in venv which is not doable in OBS build
|
||||
export PYTHONDONTWRITEBYTECODE=1
|
||||
echo "import site;site.addsitedir(\"$(pwd)/src\")" > tests/sitecustomize.py
|
||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib}:$PWD/tests py.test-%{$python_bin_suffix} -v -k 'not (test_dist_missing_data or test_central_subprocess_change_cwd_with_pythonpath or test_dist_not_collocated or test_dist_subprocess_not_collocated)'
|
||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib}:$PWD/tests py.test-%{$python_bin_suffix} -v -k 'not (test_dist_missing_data or test_central_subprocess_change_cwd_with_pythonpath)'
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
|
||||
Reference in New Issue
Block a user