From 5d22013068e4897f8437265bfd42dbcc2bd73b4d1706b3cee1b882caf3f81424 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 13 Feb 2019 13:12:48 +0000 Subject: [PATCH] =?UTF-8?q?-=20Update=20to=202.6.1:=20=20=20*=20Added=20su?= =?UTF-8?q?pport=20for=20Pytest=204.1.=20Contributed=20by=20Daniel=20Hahle?= =?UTF-8?q?r=20and=20=D0=A1=D0=B5=D0=BC=D1=91=D0=BD=20=D0=9C=D0=B0=D1=80?= =?UTF-8?q?=D1=8C=D1=8F=D1=81=D0=B8=D0=BD=20in=20#253=20and=20#230.=20=20?= =?UTF-8?q?=20*=20Various=20test=20and=20docs=20fixes.=20Contributed=20by?= =?UTF-8?q?=20Daniel=20Hahler=20in=20#224=20and=20#223.=20=20=20*=20Fixed?= =?UTF-8?q?=20the=20"Module=20already=20imported"=20issue=20(#211).=20Cont?= =?UTF-8?q?ributed=20by=20Daniel=20Hahler=20in=20#228.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-cov?expand=0&rev=4 --- pytest-cov-2.6.0.tar.gz | 3 --- pytest-cov-2.6.1.tar.gz | 3 +++ python-pytest-cov.changes | 8 ++++++++ python-pytest-cov.spec | 19 ++++++++++++++++--- 4 files changed, 27 insertions(+), 6 deletions(-) delete mode 100644 pytest-cov-2.6.0.tar.gz create mode 100644 pytest-cov-2.6.1.tar.gz diff --git a/pytest-cov-2.6.0.tar.gz b/pytest-cov-2.6.0.tar.gz deleted file mode 100644 index d26c5e8..0000000 --- a/pytest-cov-2.6.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e360f048b7dae3f2f2a9a4d067b2dd6b6a015d384d1577c994a43f3f7cbad762 -size 33026 diff --git a/pytest-cov-2.6.1.tar.gz b/pytest-cov-2.6.1.tar.gz new file mode 100644 index 0000000..adc4f2a --- /dev/null +++ b/pytest-cov-2.6.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0ab664b25c6aa9716cbf203b17ddb301932383046082c081b9848a0edf5add33 +size 35307 diff --git a/python-pytest-cov.changes b/python-pytest-cov.changes index 7df5fa3..52ce04e 100644 --- a/python-pytest-cov.changes +++ b/python-pytest-cov.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Feb 13 09:49:04 UTC 2019 - Tomáš Chvátal + +- Update to 2.6.1: + * Added support for Pytest 4.1. Contributed by Daniel Hahler and Семён Марьясин in #253 and #230. + * Various test and docs fixes. Contributed by Daniel Hahler in #224 and #223. + * Fixed the "Module already imported" issue (#211). Contributed by Daniel Hahler in #228. + ------------------------------------------------------------------- Fri Oct 26 13:25:08 UTC 2018 - Ondřej Súkup diff --git a/python-pytest-cov.spec b/python-pytest-cov.spec index 6bfe2ae..cfe8bf7 100644 --- a/python-pytest-cov.spec +++ b/python-pytest-cov.spec @@ -1,7 +1,7 @@ # # spec file for package python-pytest-cov # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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 @@ -18,18 +18,25 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pytest-cov -Version: 2.6.0 +Version: 2.6.1 Release: 0 Summary: Pytest plugin for coverage reporting License: MIT Group: Development/Languages/Python URL: https://github.com/schlamar/pytest-cov Source: https://files.pythonhosted.org/packages/source/p/pytest-cov/pytest-cov-%{version}.tar.gz +BuildRequires: %{python_module coverage >= 4.4} +BuildRequires: %{python_module fields} +BuildRequires: %{python_module process-tests} +BuildRequires: %{python_module pytest >= 3.6} +BuildRequires: %{python_module pytest-xdist} 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 >= 2.9.0 +Requires: python-pytest >= 3.6 BuildArch: noarch %python_subpackages @@ -51,6 +58,12 @@ through pytest-cov or through coverage's config file. %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib}/ +%check +# test_dist_missing_data - needs internet access +# test_central_subprocess_change_cwd_with_pythonpath - needs pytest cov in venv which is not doable in OBS build +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)' + %files %{python_files} %license LICENSE %doc AUTHORS.rst CHANGELOG.rst README.rst