Skip to content

Commit

Permalink
Update python-pytest-cov to version 4.0.0 / rev 26 via SR 1038610
Browse files Browse the repository at this point in the history
https://build.opensuse.org/request/show/1038610
by user dgarcia + dimstar_suse
- Disable failing tests (test_contexts) that fails because of the new version
  of python-coverage, gh#pytest-dev/pytest-cov#570
- 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 i
  • Loading branch information
dgarcia authored and bmwiedemann committed Nov 28, 2022
1 parent 1370a19 commit dbcfca7
Show file tree
Hide file tree
Showing 8 changed files with 79 additions and 47 deletions.
Binary file modified packages/p/python-pytest-cov/.files
Binary file not shown.
34 changes: 34 additions & 0 deletions packages/p/python-pytest-cov/.rev
Original file line number Diff line number Diff line change
Expand Up @@ -224,4 +224,38 @@
<comment></comment>
<requestid>989859</requestid>
</revision>
<revision rev="26" vrev="1">
<srcmd5>c6c0304924dcb743c522f83f3f77619f</srcmd5>
<version>4.0.0</version>
<time>1669634145</time>
<user>dimstar_suse</user>
<comment>- Disable failing tests (test_contexts) that fails because of the new version
of python-coverage, gh#pytest-dev/pytest-cov#570
- 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.
</comment>
<requestid>1038610</requestid>
</revision>
</revisionlist>
1 change: 0 additions & 1 deletion packages/p/python-pytest-cov/pytest-cov-3.0.0.tar.gz

This file was deleted.

1 change: 1 addition & 0 deletions packages/p/python-pytest-cov/pytest-cov-4.0.0.tar.gz
36 changes: 36 additions & 0 deletions packages/p/python-pytest-cov/python-pytest-cov.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,39 @@
-------------------------------------------------------------------
Mon Nov 28 09:31:24 UTC 2022 - Daniel Garcia <[email protected]>

- Disable failing tests (test_contexts) that fails because of the new version
of python-coverage, gh#pytest-dev/pytest-cov#570

-------------------------------------------------------------------
Fri Nov 25 11:55:18 UTC 2022 - Daniel Garcia <[email protected]>

- 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 <[email protected]>

Expand Down
17 changes: 8 additions & 9 deletions packages/p/python-pytest-cov/python-pytest-cov.spec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#


%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%bcond_without test
Expand All @@ -27,16 +26,12 @@
%endif
%define skip_python2 1
Name: python-pytest-cov%{psuffix}
Version: 3.0.0
Version: 4.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
# 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}
%if %{with test}
BuildRequires: %{python_module coverage >= 5.2.1}
Expand Down Expand Up @@ -76,11 +71,15 @@ through pytest-cov or through coverage's config file.

%check
%if %{with test}
# 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
export PYTHONDONTWRITEBYTECODE=1
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)'
# 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
donttest="test_dist_missing_data or test_central_subprocess_change_cwd_with_pythonpath"
# Tests broken with the latest version of python-coverage (6.5.0)
# gh#pytest-dev/pytest-cov#570
donttest+=" or test_contexts"
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib}:$PWD/tests py.test-%{$python_bin_suffix} -v -k "not (${donttest})"
%endif

%if ! %{with test}
Expand Down
13 changes: 0 additions & 13 deletions packages/p/python-pytest-cov/support-coverage-62.patch

This file was deleted.

24 changes: 0 additions & 24 deletions packages/p/python-pytest-cov/support-setuptools60.patch

This file was deleted.

0 comments on commit dbcfca7

Please sign in to comment.