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:
Tomáš Chvátal 2020-06-29 10:11:39 +00:00 committed by Git OBS Bridge
parent cf2e82f5f8
commit a70dc97c12
4 changed files with 15 additions and 9 deletions

3
pytest-cov-2.10.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1a629dc9f48e53512fcbfda6b07de490c374b0c83c55ff7a1720b3fccff0ac87
size 54570

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b6a814b8ed6247bd81ff47f038511b57fe1ce7f4cc25b9106f1a4b106f1d9322
size 54269

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Jun 29 09:21:38 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
- 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.
-------------------------------------------------------------------
Tue Jun 9 08:07:16 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -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