Accepting request 340454 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/340454
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-cov?expand=0&rev=6
This commit is contained in:
Dominique Leuenberger 2015-10-30 12:43:12 +00:00 committed by Git OBS Bridge
parent d1540e2b22
commit 75947c1f02
4 changed files with 46 additions and 6 deletions

View File

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

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

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

View File

@ -1,3 +1,38 @@
-------------------------------------------------------------------
Thu Oct 22 13:53:36 UTC 2015 - toddrme2178@gmail.com
- Update to version 2.2.0
* Added support for changing working directory in tests.
Previously changing working directory would disable coverage
measurements in suprocesses.
* Fixed broken handling for --cov-report=annotate.
- Update to version 2.1.0
* Added support for coverage 4.0b2.
* Added the --cov-append command line options.
Contributed by Christian Ledermann in PR#80.
- Update to version 2.0.0
* Added --cov-fail-under, akin to the new fail_under option in
coverage-4.0 (automatically activated if theres a
[report] fail_under = ... in .coveragerc).
* Changed --cov-report=term to automatically upgrade to
--cov-report=term-missing if theres
[run] show_missing = True in .coveragerc.
* Changed --cov so it can be used with no path argument
(in wich case the source settings from .coveragerc will
be used instead).
* Fixed .pth installation to work in all cases
(install, easy_install, wheels, develop etc).
* Fixed .pth uninstallation to work for wheel installs.
* Support for coverage 4.0.
* Data file suffixing changed to use coverages
data_suffix=True option (instead of the custom suffixing).
* Avoid warning about missing coverage data
(just like coverage.control.process_startup).
* Fixed a race condition when running with xdist
(all the workers tried to combine the files).
Its possible that this issue is not present in
pytest-cov 1.8.X.
-------------------------------------------------------------------
Tue May 12 11:12:31 UTC 2015 - benoit.monin@gmx.fr

View File

@ -17,20 +17,23 @@
Name: python-pytest-cov
Version: 1.8.1
Version: 2.2.0
Release: 0
Summary: Pytest plugin for coverage reporting
License: MIT
Group: Development/Languages/Python
Url: https://github.com/schlamar/pytest-cov
Source: https://pypi.python.org/packages/source/p/pytest-cov/pytest-cov-%{version}.tar.gz
BuildRequires: python-coverage >= 3.7.1
BuildRequires: python-cov-core >= 1.14.0
BuildRequires: python-devel
BuildRequires: python-pytest >= 2.6.0
BuildRequires: python-setuptools
# Test requirements:
BuildRequires: python-process-tests
BuildRequires: python-py >= 1.4.22
BuildRequires: python-virtualenv
Requires: python-coverage >= 3.7.1
Requires: python-cov-core >= 1.14.0
Requires: python-pytest >= 2.6.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -57,11 +60,13 @@ python setup.py build
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%check
python test_pytest_cov.py
pushd tests
PYTHONPATH=%{buildroot}%{python_sitelib} python test_pytest_cov.py
popd
%files
%defattr(-,root,root,-)
%doc LICENSE.txt README.rst
%doc AUTHORS.rst CHANGELOG.rst LICENSE README.rst
%{python_sitelib}/*
%changelog