- Remove support-coverage-62.patch
- Remove support-setuptools60.patch - Update to 4.0.0: * --cov-fail-under no longer causes pytest --collect-only to fail Contributed by Zac Hatfield-Dodds in #511. * Dropped support for multiprocessing (mostly because issue 82408). This feature was mostly working but very broken in certain scenarios and made the test suite very flaky and slow. * There is builtin multiprocessing support in coverage and you can migrate to that. All you need is this in your .coveragerc: [run] concurrency = multiprocessing parallel = true sigterm = true * Fixed deprecation in setup.py by trying to import setuptools before distutils. Contributed by Ben Greiner in #545. * Removed undesirable new lines that were displayed while reporting was disabled. Contributed by Delgan in #540. * Documentation fixes. Contributed by Andre Brisco in #543 and Colin O'Dell in #525. * Added support for LCOV output format via --cov-report=lcov. Only works with coverage 6.3+. Contributed by Christian Fetzer in #536. * Modernized pytest hook implementation. Contributed by Bruno Oliveira in #549 and Ronny Pfannschmidt in #550. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-cov?expand=0&rev=34
This commit is contained in:
parent
6a8e371bcc
commit
bd866c59e5
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:e7f0f5b1617d2210a2cabc266dfe2f4c75a8d32fb89eafb7ad9d06f6d076d470
|
|
||||||
size 61440
|
|
3
pytest-cov-4.0.0.tar.gz
Normal file
3
pytest-cov-4.0.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:996b79efde6433cdbd0088872dbc5fb3ed7fe1578b68cdbba634f14bb8dd0470
|
||||||
|
size 62013
|
@ -1,3 +1,33 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Nov 25 11:55:18 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
- Remove support-coverage-62.patch
|
||||||
|
- Remove support-setuptools60.patch
|
||||||
|
- Update to 4.0.0:
|
||||||
|
* --cov-fail-under no longer causes pytest --collect-only to fail Contributed
|
||||||
|
by Zac Hatfield-Dodds in #511.
|
||||||
|
* Dropped support for multiprocessing (mostly because issue 82408). This
|
||||||
|
feature was mostly working but very broken in certain scenarios and made
|
||||||
|
the test suite very flaky and slow.
|
||||||
|
* There is builtin multiprocessing support in coverage and you can migrate to
|
||||||
|
that. All you need is this in your .coveragerc:
|
||||||
|
|
||||||
|
[run]
|
||||||
|
concurrency = multiprocessing
|
||||||
|
parallel = true
|
||||||
|
sigterm = true
|
||||||
|
|
||||||
|
* Fixed deprecation in setup.py by trying to import setuptools before
|
||||||
|
distutils. Contributed by Ben Greiner in #545.
|
||||||
|
* Removed undesirable new lines that were displayed while reporting was
|
||||||
|
disabled. Contributed by Delgan in #540.
|
||||||
|
* Documentation fixes. Contributed by Andre Brisco in #543 and Colin O'Dell
|
||||||
|
in #525.
|
||||||
|
* Added support for LCOV output format via --cov-report=lcov. Only works with
|
||||||
|
coverage 6.3+. Contributed by Christian Fetzer in #536.
|
||||||
|
* Modernized pytest hook implementation. Contributed by Bruno Oliveira in
|
||||||
|
#549 and Ronny Pfannschmidt in #550.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Jul 17 20:14:59 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
Sun Jul 17 20:14:59 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
%global flavor @BUILD_FLAVOR@%{nil}
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
%if "%{flavor}" == "test"
|
%if "%{flavor}" == "test"
|
||||||
%bcond_without test
|
%bcond_without test
|
||||||
@ -27,16 +26,12 @@
|
|||||||
%endif
|
%endif
|
||||||
%define skip_python2 1
|
%define skip_python2 1
|
||||||
Name: python-pytest-cov%{psuffix}
|
Name: python-pytest-cov%{psuffix}
|
||||||
Version: 3.0.0
|
Version: 4.0.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Pytest plugin for coverage reporting
|
Summary: Pytest plugin for coverage reporting
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/pytest-dev/pytest-cov
|
URL: https://github.com/pytest-dev/pytest-cov
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/pytest-cov/pytest-cov-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/pytest-cov/pytest-cov-%{version}.tar.gz
|
||||||
# PATCH-FIX-UPSTREAM gh#pytest-dev/pytest-cov#509
|
|
||||||
Patch0: support-coverage-62.patch
|
|
||||||
# PATCH-FIX-UPSTREAM gh#pytest-dev/pytest-cov#545
|
|
||||||
Patch1: support-setuptools60.patch
|
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
BuildRequires: %{python_module coverage >= 5.2.1}
|
BuildRequires: %{python_module coverage >= 5.2.1}
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
Index: pytest-cov-3.0.0/tests/test_pytest_cov.py
|
|
||||||
===================================================================
|
|
||||||
--- pytest-cov-3.0.0.orig/tests/test_pytest_cov.py
|
|
||||||
+++ pytest-cov-3.0.0/tests/test_pytest_cov.py
|
|
||||||
@@ -968,7 +968,7 @@ def test_invalid_coverage_source(testdir
|
|
||||||
'*10 passed*'
|
|
||||||
])
|
|
||||||
result.stderr.fnmatch_lines([
|
|
||||||
- 'Coverage.py warning: No data was collected.*'
|
|
||||||
+ '*No data was collected.*'
|
|
||||||
])
|
|
||||||
result.stdout.fnmatch_lines([
|
|
||||||
'*Failed to generate report: No data to report.',
|
|
@ -1,24 +0,0 @@
|
|||||||
Index: pytest-cov-3.0.0/setup.py
|
|
||||||
===================================================================
|
|
||||||
--- pytest-cov-3.0.0.orig/setup.py
|
|
||||||
+++ pytest-cov-3.0.0/setup.py
|
|
||||||
@@ -1,7 +1,6 @@
|
|
||||||
#!/usr/bin/env python
|
|
||||||
|
|
||||||
import re
|
|
||||||
-from distutils.command.build import build
|
|
||||||
from glob import glob
|
|
||||||
from itertools import chain
|
|
||||||
from os.path import basename
|
|
||||||
@@ -12,6 +11,11 @@ from os.path import splitext
|
|
||||||
from setuptools import Command
|
|
||||||
from setuptools import find_packages
|
|
||||||
from setuptools import setup
|
|
||||||
+try:
|
|
||||||
+ # https://setuptools.pypa.io/en/latest/deprecated/distutils-legacy.html
|
|
||||||
+ from setuptools.command.build import build
|
|
||||||
+except ImportError:
|
|
||||||
+ from distutils.command.build import build
|
|
||||||
from setuptools.command.develop import develop
|
|
||||||
from setuptools.command.easy_install import easy_install
|
|
||||||
from setuptools.command.install_lib import install_lib
|
|
Loading…
x
Reference in New Issue
Block a user