From 9e9dd6f3a8ec73c49bdce7e99857d67ba2eb87e9a88d65766f89bcd9bd2014c5 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 25 Mar 2024 15:20:22 +0000 Subject: [PATCH] =?UTF-8?q?-=20update=20to=205.0.0:=20=20=20*=20Removed=20?= =?UTF-8?q?support=20for=20xdist=20rsync=20(now=20deprecated).=20=20=20*?= =?UTF-8?q?=20Switched=20docs=20theme=20to=20Furo.=20=20=20*=20Various=20l?= =?UTF-8?q?egacy=20Python=20cleanup=20and=20CI=20improvements.=20=20=20=20?= =?UTF-8?q?=20Contributed=20by=20Christian=20Clauss=20and=20Hugo=20van=20K?= =?UTF-8?q?emenade=20in=20=20=20=20=20#630,=20#631,=20#632=20and=20#633.?= =?UTF-8?q?=20=20=20*=20Added=20a=20pyproject.toml=20example=20in=20the=20?= =?UTF-8?q?docs.=20Contributed=20by=20=20=20=20=20Dawn=20James=20in=20#626?= =?UTF-8?q?.=20=20=20*=20Modernized=20project's=20pre-commit=20hooks=20to?= =?UTF-8?q?=20use=20ruff.=20Initial=20=20=20=20=20POC=20contributed=20by?= =?UTF-8?q?=20Christian=20Clauss=20in=20#584.=20=20=20*=20Support=20covera?= =?UTF-8?q?ge=20>=3D=206.2=20-=20Inject=20multibuild=20to=20avoid=20build?= =?UTF-8?q?=20cycles.=20-=20Skip=206=20test=20cases=20that=20are=20causing?= =?UTF-8?q?=20problems=20with=20Python=203.8=20=20=20=20=20(when=20combini?= =?UTF-8?q?ng=20coverage=20data=20from=20parallel=20mode).=20=20=20*=20Add?= =?UTF-8?q?ed=20the=20--cov-append=20command=20line=20options.=20=20=20=20?= =?UTF-8?q?=20coverage-4.0=20(automatically=20activated=20if=20there?= =?UTF-8?q?=E2=80=99s=20a=20=20=20*=20Changed=20--cov-report=3Dterm=20to?= =?UTF-8?q?=20automatically=20upgrade=20to=20=20=20=20=20--cov-report=3Dte?= =?UTF-8?q?rm-missing=20if=20there=E2=80=99s=20=20=20*=20Changed=20--cov?= =?UTF-8?q?=20so=20it=20can=20be=20used=20with=20no=20path=20argument=20?= =?UTF-8?q?=20=20=20=20(in=20wich=20case=20the=20source=20settings=20from?= =?UTF-8?q?=20.coveragerc=20will=20=20=20*=20Fixed=20.pth=20installation?= =?UTF-8?q?=20to=20work=20in=20all=20cases=20=20=20*=20Data=20file=20suffi?= =?UTF-8?q?xing=20changed=20to=20use=20coverage=E2=80=99s=20=20=20*=20Avoi?= =?UTF-8?q?d=20warning=20about=20missing=20coverage=20data=20=20=20*=20Fix?= =?UTF-8?q?ed=20a=20race=20condition=20when=20running=20with=20xdist=20=20?= =?UTF-8?q?=20=20=20(all=20the=20workers=20tried=20to=20combine=20the=20fi?= =?UTF-8?q?les).=20=20=20=20=20It=E2=80=99s=20possible=20that=20this=20iss?= =?UTF-8?q?ue=20is=20not=20present=20in?= 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=45 --- pytest-cov-4.1.0.tar.gz | 3 --- pytest-cov-5.0.0.tar.gz | 3 +++ python-pytest-cov.changes | 46 +++++++++++++++++++++++++-------------- python-pytest-cov.spec | 15 +++++++------ 4 files changed, 41 insertions(+), 26 deletions(-) delete mode 100644 pytest-cov-4.1.0.tar.gz create mode 100644 pytest-cov-5.0.0.tar.gz diff --git a/pytest-cov-4.1.0.tar.gz b/pytest-cov-4.1.0.tar.gz deleted file mode 100644 index 07815ea..0000000 --- a/pytest-cov-4.1.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3904b13dfbfec47f003b8e77fd5b589cd11904a21ddf1ab38a64f204d6a10ef6 -size 63245 diff --git a/pytest-cov-5.0.0.tar.gz b/pytest-cov-5.0.0.tar.gz new file mode 100644 index 0000000..f329bc8 --- /dev/null +++ b/pytest-cov-5.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5837b58e9f6ebd335b0f8060eecce69b662415b16dc503883a02f45dfeb14857 +size 63042 diff --git a/python-pytest-cov.changes b/python-pytest-cov.changes index df6f5fb..d3e407c 100644 --- a/python-pytest-cov.changes +++ b/python-pytest-cov.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Mon Mar 25 15:17:56 UTC 2024 - Dirk Müller + +- update to 5.0.0: + * Removed support for xdist rsync (now deprecated). + * Switched docs theme to Furo. + * Various legacy Python cleanup and CI improvements. + Contributed by Christian Clauss and Hugo van Kemenade in + #630, #631, #632 and #633. + * Added a pyproject.toml example in the docs. Contributed by + Dawn James in #626. + * Modernized project's pre-commit hooks to use ruff. Initial + POC contributed by Christian Clauss in #584. + ------------------------------------------------------------------- Thu Jun 1 08:51:00 UTC 2023 - Dirk Müller @@ -75,7 +89,7 @@ Sun Jul 17 20:14:59 UTC 2022 - Ben Greiner Mon Dec 20 01:21:53 UTC 2021 - Steve Kowalik - Add support-coverage-62.patch: - * Support coverage >= 6.2 + * Support coverage >= 6.2 ------------------------------------------------------------------- Wed Nov 10 13:05:15 UTC 2021 - Ondřej Súkup @@ -87,7 +101,7 @@ Wed Nov 10 13:05:15 UTC 2021 - Ondřej Súkup ------------------------------------------------------------------- Tue Sep 14 08:45:47 UTC 2021 - Steve Kowalik -- Inject multibuild to avoid build cycles. +- Inject multibuild to avoid build cycles. ------------------------------------------------------------------- Thu Feb 4 09:58:52 UTC 2021 - Ben Greiner @@ -145,7 +159,7 @@ Wed Jan 15 12:50:24 UTC 2020 - Tomáš Chvátal ------------------------------------------------------------------- Thu Dec 5 04:06:23 UTC 2019 - Steve Kowalik -- Skip 6 test cases that are causing problems with Python 3.8 +- Skip 6 test cases that are causing problems with Python 3.8 ------------------------------------------------------------------- Wed Nov 6 13:25:11 CET 2019 - Matej Cepl @@ -194,7 +208,7 @@ Fri Oct 26 13:25:08 UTC 2018 - Ondřej Súkup * Added a no_cover marker and fixture. * Fixed broken no_cover check when running doctests. * Fixed various issues with path normalization in reports - (when combining coverage data from parallel mode). + (when combining coverage data from parallel mode). * Report generation failures don't raise exceptions anymore. A warning will be logged instead. @@ -237,29 +251,29 @@ Thu Oct 22 13:53:36 UTC 2015 - toddrme2178@gmail.com * 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. + * 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 there’s a + coverage-4.0 (automatically activated if there’s a [report] fail_under = ... in .coveragerc). - * Changed --cov-report=term to automatically upgrade to - --cov-report=term-missing if there’s + * Changed --cov-report=term to automatically upgrade to + --cov-report=term-missing if there’s [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 + * 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 + * 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 coverage’s + * Data file suffixing changed to use coverage’s data_suffix=True option (instead of the custom suffixing). - * Avoid warning about missing coverage data + * 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). - It’s possible that this issue is not present in + * Fixed a race condition when running with xdist + (all the workers tried to combine the files). + It’s possible that this issue is not present in pytest-cov 1.8.X. ------------------------------------------------------------------- diff --git a/python-pytest-cov.spec b/python-pytest-cov.spec index dfbac0a..9607a21 100644 --- a/python-pytest-cov.spec +++ b/python-pytest-cov.spec @@ -1,7 +1,7 @@ # -# spec file +# spec file for package python-pytest-cov # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,16 +24,17 @@ %bcond_with test %define psuffix %{nil} %endif -%define skip_python2 1 %{?sle15_python_module_pythons} Name: python-pytest-cov%{psuffix} -Version: 4.1.0 +Version: 5.0.0 Release: 0 Summary: Pytest plugin for coverage reporting License: MIT URL: https://github.com/pytest-dev/pytest-cov Source: https://files.pythonhosted.org/packages/source/p/pytest-cov/pytest-cov-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} %if %{with test} BuildRequires: %{python_module coverage >= 5.2.1} BuildRequires: %{python_module fields} @@ -61,11 +62,11 @@ through pytest-cov or through coverage's config file. %autosetup -p1 -n pytest-cov-%{version} %build -%python_build +%pyproject_wheel %install %if ! %{with test} -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib}/ %endif @@ -90,7 +91,7 @@ donttest+=" or test_dist_boxed" %doc AUTHORS.rst CHANGELOG.rst README.rst %{python_sitelib}/pytest-cov.pth %{python_sitelib}/pytest_cov -%{python_sitelib}/pytest_cov-%{version}-py%{python_version}.egg-info +%{python_sitelib}/pytest_cov-%{version}.dist-info %endif %changelog