Commit Graph

31 Commits

Author SHA256 Message Date
Steve Kowalik
5de5a9131c - Switch to pytest macro.
- Add patch support-coverage-75.patch:
  * Support changes in coverage 7.5.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-cov?expand=0&rev=47
2024-05-15 04:23:46 +00:00
9e9dd6f3a8 - 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.
  * Support coverage >= 6.2
- Inject multibuild to avoid build cycles.
- Skip 6 test cases that are causing problems with Python 3.8
    (when combining coverage data from parallel mode).
  * Added the --cov-append command line options.
    coverage-4.0 (automatically activated if there’s a
  * Changed --cov-report=term to automatically upgrade to
    --cov-report=term-missing if there’s
  * Changed --cov so it can be used with no path argument
    (in wich case the source settings from .coveragerc will
  * Fixed .pth installation to work in all cases
  * Data file suffixing changed to use coverage’s
  * Avoid warning about missing coverage data
  * 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-cov?expand=0&rev=45
2024-03-25 15:20:22 +00:00
7346b28eb7 - update to 4.1.0:
* Updated CI with new Pythons and dependencies.
  * Removed rsyncdir support. This makes pytest-cov compatible
    with xdist 3.0.
  * Added support for JSON reporting.
  * Refactored code to use f-strings.
  * Fixed a skip in the test suite for some old xdist.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-cov?expand=0&rev=43
2023-06-01 08:51:40 +00:00
9d2bd324d1 Accepting request 1082407 from home:dirkmueller:acdc:as_python3_module
SR for python stack proposal

OBS-URL: https://build.opensuse.org/request/show/1082407
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-cov?expand=0&rev=41
2023-04-24 09:16:30 +00:00
8362a08fe2 Accepting request 1041364 from home:pgajdos:python
- six is not required for build

OBS-URL: https://build.opensuse.org/request/show/1041364
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-cov?expand=0&rev=39
2022-12-09 00:24:09 +00:00
7da64be615 - Disable test_dist_boxed, broken with latest version of pytest-xdist,
gh#pytest-dev/pytest-cov#565

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-cov?expand=0&rev=37
2022-11-30 08:19:39 +00:00
14b618b1b0 - Disable failing tests (test_contexts) that fails because of the new version
of python-coverage, gh#pytest-dev/pytest-cov#570

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-cov?expand=0&rev=35
2022-11-28 09:32:52 +00:00
bd866c59e5 - 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
2022-11-25 12:01:49 +00:00
Markéta Machová
6a8e371bcc Accepting request 989749 from home:bnavigator:branches:devel:languages:python:pytest
- Add support-setuptools60.patch gh#pytest-dev/pytest-cov#545

OBS-URL: https://build.opensuse.org/request/show/989749
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-cov?expand=0&rev=32
2022-07-18 11:31:26 +00:00
Steve Kowalik
5b9207a2df - Add support-coverage-62.patch:
* Support coverage >= 6.2

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-cov?expand=0&rev=31
2021-12-20 01:23:22 +00:00
bb42fc3613 - drop pytest-cov-pr453-coverage54.patch
- update to 3.0.0
 * drop support for py2 and python-3.5

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-cov?expand=0&rev=29
2021-11-10 13:07:53 +00:00
Steve Kowalik
0aa49d14ff - Inject multibuild to avoid build cycles.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-cov?expand=0&rev=28
2021-09-14 08:46:16 +00:00
3573179fe9 Accepting request 869186 from home:bnavigator:branches:devel:languages:python:pytest
- Add pytest-cov-pr453-coverage54.patch to work with coverage 5.4
  gh#pytest-dev/pytest-cov#453

OBS-URL: https://build.opensuse.org/request/show/869186
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-cov?expand=0&rev=26
2021-02-04 16:15:01 +00:00
Markéta Machová
c549190a54 Accepting request 867203 from home:mcalabkova:branches:devel:languages:python:pytest
- Update to 2.11.1
  * Fixed the missing coverage context when using subprocesses.
  * Bumped minimum coverage requirement to 5.2.1. This prevents reporting issues.
- Drop merged pytest62.patch

OBS-URL: https://build.opensuse.org/request/show/867203
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-cov?expand=0&rev=24
2021-01-27 14:17:33 +00:00
Markéta Machová
e8988c1b79 Accepting request 863329 from home:mcalabkova:branches:devel:languages:python:pytest
- Add pytest62.patch to make testsuite compatible with new pytest

OBS-URL: https://build.opensuse.org/request/show/863329
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-cov?expand=0&rev=22
2021-01-15 12:17:00 +00:00
Tomáš Chvátal
4f77fecc65 Accepting request 828524 from home:mcalabkova:branches:devel:languages:python:pytest
- Update to 2.10.1
  * Support for ``pytest-xdist`` 2.0, which breaks compatibility with ``pytest-xdist`` before 1.22.3 (from 2017).
  * Fixed the ``LocalPath has no attribute startswith`` failure that occurred when using the ``pytester`` plugin
    in inline mode.
  * Dropped support for Python 3 < 3.4, Pytest < 3.5 and Coverage < 4.4.

OBS-URL: https://build.opensuse.org/request/show/828524
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-cov?expand=0&rev=20
2020-08-21 14:21:57 +00:00
Tomáš Chvátal
a70dc97c12 Accepting request 817654 from home:mcalabkova:branches:devel:languages:python:pytest
- Update to 2.10.0
  * Improved the --no-cov warning. Now it's only shown if --no-cov is present before --cov.
  * Removed legacy pytest support. Changed setup.py so that pytest>=4.6 is required.

OBS-URL: https://build.opensuse.org/request/show/817654
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-cov?expand=0&rev=18
2020-06-29 10:11:39 +00:00
Tomáš Chvátal
cf2e82f5f8 - Update to 2.9.0:
* Fixed RemovedInPytest4Warning when using Pytest 3.10. Contributed by Michael Manganiello in #354.
  * Made pytest startup faster when plugin not active by lazy-importing. Contributed by Anders Hovmöller in #339.
  * Various CI improvements. Contributed by Daniel Hahler in #363 and #364.
  * Various Python support updates (drop EOL 3.4, test against 3.8 final). Contributed by Hugo van Kemenade in #336 and #367.
  * Changed --cov-append to always enable data_suffix (a coverage setting). Contributed by Harm Geerts in #387.
  * Changed --cov-append to handle loading previous data better (fixes various path aliasing issues).
  * Various other testing improvements, github issue templates, example updates.
  * Fixed internal failures that are caused by tests that change the current working directory by ensuring a consistent working directory when coverage is called. See #306 and coveragepy#881

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-cov?expand=0&rev=16
2020-06-09 08:12:29 +00:00
Tomáš Chvátal
a97c0528d5 - Skip test test_cover_looponfail as it crashes with updated
pytest

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-cov?expand=0&rev=14
2020-01-15 12:50:38 +00:00
Steve Kowalik
803039848f - Skip 6 test cases that are causing problems with Python 3.8
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-cov?expand=0&rev=12
2019-12-05 04:09:05 +00:00
d32c780bc3 Accepting request 746010 from home:mcepl:branches:devel:languages:python:pytest
Skip over some tests to make the test suite pass.

OBS-URL: https://build.opensuse.org/request/show/746010
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-cov?expand=0&rev=10
2019-11-06 13:58:45 +00:00
Tomáš Chvátal
6bca00ea5c - Update to 2.8.1:
* Fixed #348 - regression when only certain reports (html or xml) are used then --cov-fail-under always fails.
  * Added compatibility with future xdist release that deprecates some internals (match pytest-xdist master/worker terminology). Contributed by Thomas Grainger in #321
  * Added support for Coverage 5.0

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-cov?expand=0&rev=8
2019-10-07 08:45:34 +00:00
Tomáš Chvátal
8b9639c671 - Update to 2.7.1:
* Fixed AttributeError: 'NoneType' object has no attribute 'configure_node' error when --no-cov is used. Contributed by Alexander Shadchin in #263.
  * Various testing and CI improvements. Contributed by Daniel Hahler in #255, #266, #272, #271 and #269.
  * Improved documentation regarding subprocess and multiprocessing. Contributed in #265.
  * Improved pytest_cov.embed.cleanup_on_sigterm to be reentrant (signal deliveries while signal handling is running won't break stuff).
  * Added pytest_cov.embed.cleanup_on_signal for customized cleanup.
  * Improved cleanup code and fixed various issues with leftover data files. All contributed in #265 or #262.
  * Improved examples. Now there are two examples for the common project layouts, complete with working coverage configuration. The examples have CI testing. Contributed in #267.
  * Improved help text for CLI options.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-cov?expand=0&rev=6
2019-05-06 11:08:33 +00:00
Tomáš Chvátal
5d22013068 - 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-cov?expand=0&rev=4
2019-02-13 13:12:48 +00:00
Dominique Leuenberger
1f7416c3f1 Accepting request 644866 from devel:languages:python:pytest
- update to 2.6.0
- cleanup deps
 * Dropped support for Python &lt; 3.4, Pytest &lt; 3.5 and Coverage &lt; 4.4
 * Fixed some documentation formatting.
 * Added an example with addopts in documentation.
 * Fixed TypeError: 'NoneType' object is not iterable in certain xdist configurations.
 * 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). 
 * Report generation failures don't raise exceptions anymore.
    A warning will be logged instead. (forwarded request 644865 from mimi_vx)

OBS-URL: https://build.opensuse.org/request/show/644866
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-cov?expand=0&rev=9
2018-11-08 08:39:40 +00:00
Dominique Leuenberger
c2381ae248 Accepting request 530442 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/530442
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-cov?expand=0&rev=8
2017-10-07 15:47:11 +00:00
Dominique Leuenberger
cea9e0a696 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
2017-04-20 18:50:03 +00:00
Dominique Leuenberger
75947c1f02 Accepting request 340454 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/340454
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-cov?expand=0&rev=6
2015-10-30 12:43:12 +00:00
Stephan Kulow
d1540e2b22 Accepting request 307473 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/307473
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-cov?expand=0&rev=5
2015-05-16 17:01:48 +00:00
Stephan Kulow
e6f384c534 Accepting request 242982 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/242982
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-cov?expand=0&rev=3
2014-07-31 08:04:17 +00:00
Tomáš Chvátal
260b26a95e Accepting request 186714 from devel:languages:python
dependency of python-wheel

OBS-URL: https://build.opensuse.org/request/show/186714
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-cov?expand=0&rev=1
2013-08-18 20:35:19 +00:00