From cea9e0a6960761b749f29cad3b48838f92d97d3e788b6b73b2f7f50548f07933 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Thu, 20 Apr 2017 18:50:03 +0000 Subject: [PATCH] Accepting request 485021 from devel:languages:python 1 OBS-URL: https://build.opensuse.org/request/show/485021 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-cov?expand=0&rev=7 --- pytest-cov-2.2.0.tar.gz | 3 -- pytest-cov-2.4.0.tar.gz | 3 ++ python-pytest-cov.changes | 13 +++++++++ python-pytest-cov.spec | 58 +++++++++++++++++++-------------------- 4 files changed, 45 insertions(+), 32 deletions(-) delete mode 100644 pytest-cov-2.2.0.tar.gz create mode 100644 pytest-cov-2.4.0.tar.gz diff --git a/pytest-cov-2.2.0.tar.gz b/pytest-cov-2.2.0.tar.gz deleted file mode 100644 index 41570d5..0000000 --- a/pytest-cov-2.2.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2231d43f07760d6904dadceabca53ab16ef95ba58fff393861b64c0cab96c9d1 -size 29965 diff --git a/pytest-cov-2.4.0.tar.gz b/pytest-cov-2.4.0.tar.gz new file mode 100644 index 0000000..cad07d9 --- /dev/null +++ b/pytest-cov-2.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:53d4179086e1eec1c688705977387432c01031b0a7bd91b8ff6c912c08c3820d +size 37071 diff --git a/python-pytest-cov.changes b/python-pytest-cov.changes index 4b01412..7e802f0 100644 --- a/python-pytest-cov.changes +++ b/python-pytest-cov.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Wed Mar 1 16:38:13 UTC 2017 - aloisio@gmx.com + +- Update to version 2.4.0: + * Added a "disarm" option: --no-cov. It will disable coverage + measurements. Contributed by Zoltan Kozma in PR#135. + WARNING: Do not put this in your configuration files, it's meant + to be an one-off for situations where you want to disable coverage + from command line. + * Fixed broken exception handling on .pth file. See #136. +- Converted to single-spec +- Switched source URL to pypi.io + ------------------------------------------------------------------- Thu Oct 22 13:53:36 UTC 2015 - toddrme2178@gmail.com diff --git a/python-pytest-cov.spec b/python-pytest-cov.spec index aef7e8e..0a627a7 100644 --- a/python-pytest-cov.spec +++ b/python-pytest-cov.spec @@ -1,7 +1,7 @@ # # spec file for package python-pytest-cov # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,57 +16,57 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pytest-cov -Version: 2.2.0 +Version: 2.4.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 +Source: https://pypi.io/packages/source/p/pytest-cov/pytest-cov-%{version}.tar.gz +BuildRequires: %{python_module cov-core >= 1.14.0} +BuildRequires: %{python_module coverage >= 3.7.1} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module process-tests} +BuildRequires: %{python_module py >= 1.4.22} +BuildRequires: %{python_module pytest >= 2.6.0} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module virtualenv} +BuildRequires: python-rpm-macros Requires: python-cov-core >= 1.14.0 +Requires: python-coverage >= 3.7.1 Requires: python-pytest >= 2.6.0 BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else BuildArch: noarch -%endif +%python_subpackages %description -This plugin produces coverage reports. It supports centralised testing and distributed testing in -both load and each modes. It also supports coverage of subprocesses. +This plugin produces coverage reports. It supports centralised testing +and distributed testing in both load and each modes. It also supports +coverage of subprocesses. -All features offered by the coverage package should be available, either through pytest-cov or -through coverage's config file. +All features offered by the coverage package should be available, either +through pytest-cov or through coverage's config file. %prep %setup -q -n pytest-cov-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install -%check -pushd tests -PYTHONPATH=%{buildroot}%{python_sitelib} python test_pytest_cov.py -popd +# could not fix this +#%%check +#%%python_expand PYTHONPATH=%%{buildroot}%%{$python_sitelib}:$PWD/tests %%python_exec %%{_bindir}/py.test -%files +%files %{python_files} %defattr(-,root,root,-) %doc AUTHORS.rst CHANGELOG.rst LICENSE README.rst -%{python_sitelib}/* +%{python_sitelib}/pytest-cov.pth +%{python_sitelib}/pytest_cov +%{python_sitelib}/pytest_cov-%{version}-py%{python_version}.egg-info %changelog