Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pytest-cov for openSUSE:Factory checked in at 2021-01-29 14:56:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pytest-cov (Old) and /work/SRC/openSUSE:Factory/.python-pytest-cov.new.28504 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-cov" Fri Jan 29 14:56:59 2021 rev:20 rq:867204 version:2.11.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pytest-cov/python-pytest-cov.changes 2021-01-19 15:59:38.399148305 +0100 +++ /work/SRC/openSUSE:Factory/.python-pytest-cov.new.28504/python-pytest-cov.changes 2021-01-29 14:57:12.641519420 +0100 @@ -1,0 +2,8 @@ +Wed Jan 27 13:51:26 UTC 2021 - Mark??ta Machov?? <[email protected]> + +- 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 + +------------------------------------------------------------------- Old: ---- pytest-cov-2.10.1.tar.gz pytest62.patch New: ---- pytest-cov-2.11.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pytest-cov.spec ++++++ --- /var/tmp/diff_new_pack.Tyzm1O/_old 2021-01-29 14:57:13.793521115 +0100 +++ /var/tmp/diff_new_pack.Tyzm1O/_new 2021-01-29 14:57:13.797521121 +0100 @@ -18,25 +18,23 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pytest-cov -Version: 2.10.1 +Version: 2.11.1 Release: 0 Summary: Pytest plugin for coverage reporting License: MIT URL: https://github.com/schlamar/pytest-cov Source: https://files.pythonhosted.org/packages/source/p/pytest-cov/pytest-cov-%{version}.tar.gz -# PATCH-FIX-UPSTREAM https://github.com/pytest-dev/pytest-cov/commit/25eed212085ce9a2d5383a6a4a2b360d0d514f89 Turns out there were some internal changes in the pytester plugin. -Patch0: pytest62.patch -BuildRequires: %{python_module coverage >= 4.4} +BuildRequires: %{python_module coverage >= 5.2.1} BuildRequires: %{python_module fields} BuildRequires: %{python_module process-tests} BuildRequires: %{python_module pytest >= 4.6.0} -BuildRequires: %{python_module pytest-xdist >= 1.32.0} +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-coverage >= 5.2.1 Requires: python-pytest >= 4.6.0 BuildArch: noarch %python_subpackages @@ -51,7 +49,6 @@ %prep %setup -q -n pytest-cov-%{version} -%patch0 -p1 %build %python_build ++++++ pytest-cov-2.10.1.tar.gz -> pytest-cov-2.11.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-cov-2.10.1/.appveyor.yml new/pytest-cov-2.11.1/.appveyor.yml --- old/pytest-cov-2.10.1/.appveyor.yml 2020-08-14 17:48:42.000000000 +0200 +++ new/pytest-cov-2.11.1/.appveyor.yml 2021-01-11 13:42:46.000000000 +0100 @@ -4,11 +4,11 @@ environment: matrix: - TOXENV: check - - TOXENV: 'py27-pytest46-xdist27-coverage45,py27-pytest46-xdist27-coverage52' - - TOXENV: 'py35-pytest46-xdist27-coverage45,py35-pytest46-xdist27-coverage52' - - TOXENV: 'py36-pytest46-xdist27-coverage45,py36-pytest46-xdist27-coverage52,py36-pytest46-xdist33-coverage45,py36-pytest46-xdist33-coverage52,py36-pytest54-xdist33-coverage45,py36-pytest54-xdist33-coverage52,py36-pytest60-xdist200-coverage52' - - TOXENV: 'py37-pytest46-xdist27-coverage45,py37-pytest46-xdist27-coverage52,py37-pytest46-xdist33-coverage45,py37-pytest46-xdist33-coverage52,py37-pytest54-xdist33-coverage45,py37-pytest54-xdist33-coverage52,py37-pytest60-xdist200-coverage52' - - TOXENV: 'pypy-pytest46-xdist27-coverage45,pypy-pytest46-xdist27-coverage52' + - TOXENV: 'py27-pytest46-xdist127-coverage52,py27-pytest46-xdist127-coverage53' + - TOXENV: 'py35-pytest46-xdist127-coverage52,py35-pytest46-xdist127-coverage53' + - TOXENV: 'py36-pytest46-xdist127-coverage52,py36-pytest46-xdist127-coverage53,py36-pytest46-xdist133-coverage53,py36-pytest54-xdist133-coverage53,py36-pytest62-xdist202-coverage53' + - TOXENV: 'py37-pytest46-xdist127-coverage52,py37-pytest46-xdist127-coverage53,py37-pytest46-xdist133-coverage53,py37-pytest54-xdist133-coverage53,py37-pytest62-xdist202-coverage53' + - TOXENV: 'pypy-pytest46-xdist127-coverage52,pypy-pytest46-xdist127-coverage53' init: - ps: echo $env:TOXENV diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-cov-2.10.1/.bumpversion.cfg new/pytest-cov-2.11.1/.bumpversion.cfg --- old/pytest-cov-2.10.1/.bumpversion.cfg 2020-08-14 18:11:40.000000000 +0200 +++ new/pytest-cov-2.11.1/.bumpversion.cfg 2021-01-20 11:45:57.000000000 +0100 @@ -1,5 +1,5 @@ [bumpversion] -current_version = 2.10.1 +current_version = 2.11.1 commit = True tag = True @@ -8,8 +8,8 @@ replace = version='{new_version}' [bumpversion:file:README.rst] -search = v{current_version}. -replace = v{new_version}. +search = /v{current_version}.svg +replace = /v{new_version}.svg [bumpversion:file:docs/conf.py] search = version = release = '{current_version}' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-cov-2.10.1/.cookiecutterrc new/pytest-cov-2.11.1/.cookiecutterrc --- old/pytest-cov-2.10.1/.cookiecutterrc 2020-08-14 17:43:50.000000000 +0200 +++ new/pytest-cov-2.11.1/.cookiecutterrc 2021-01-11 13:03:54.000000000 +0100 @@ -1,9 +1,6 @@ # Generated by cookiepatcher, a small shim around cookiecutter (pip install cookiepatcher) -cookiecutter: - _extensions: - - jinja2_time.TimeExtension - _template: /home/ionel/open-source/cookiecutter-pylibrary +default_context: allow_tests_inside_package: no appveyor: yes c_extension_function: '-' @@ -23,7 +20,7 @@ distribution_name: pytest-cov email: [email protected] full_name: Ionel Cristian M??rie?? - landscape: no + legacy_python: yes license: MIT license linter: flake8 package_name: pytest_cov @@ -50,7 +47,7 @@ test_runner: pytest travis: yes travis_osx: no - version: 2.10.0 + version: 2.10.1 website: http://blog.ionelmc.ro year_from: '2010' year_to: '2020' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-cov-2.10.1/.editorconfig new/pytest-cov-2.11.1/.editorconfig --- old/pytest-cov-2.10.1/.editorconfig 2020-08-14 17:43:50.000000000 +0200 +++ new/pytest-cov-2.11.1/.editorconfig 2021-01-11 13:03:54.000000000 +0100 @@ -2,10 +2,11 @@ root = true [*] +# Use Unix-style newlines for most files (except Windows files, see below). end_of_line = lf trim_trailing_whitespace = true -insert_final_newline = true indent_style = space +insert_final_newline = true indent_size = 4 charset = utf-8 @@ -14,3 +15,6 @@ [*.{yml,yaml}] indent_size = 2 + +[*.tsv] +indent_style = tab diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-cov-2.10.1/.gitignore new/pytest-cov-2.11.1/.gitignore --- old/pytest-cov-2.10.1/.gitignore 2020-08-14 17:43:50.000000000 +0200 +++ new/pytest-cov-2.11.1/.gitignore 2021-01-11 13:03:54.000000000 +0100 @@ -39,11 +39,14 @@ # Translations *.mo -# Mr Developer +# Buildout .mr.developer.cfg + +# IDE project files .project .pydevproject .idea +.vscode *.iml *.komodoproject diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-cov-2.10.1/.travis.yml new/pytest-cov-2.11.1/.travis.yml --- old/pytest-cov-2.10.1/.travis.yml 2020-08-14 17:48:42.000000000 +0200 +++ new/pytest-cov-2.11.1/.travis.yml 2021-01-11 13:42:46.000000000 +0100 @@ -20,69 +20,55 @@ - env: TOXENV=docs - stage: tests - env: TOXENV=py27-pytest46-xdist27-coverage45 + env: TOXENV=py27-pytest46-xdist127-coverage52 python: '2.7' - - env: TOXENV=py27-pytest46-xdist27-coverage52 + - env: TOXENV=py27-pytest46-xdist127-coverage53 python: '2.7' - - env: TOXENV=py35-pytest46-xdist27-coverage45 + - env: TOXENV=py35-pytest46-xdist127-coverage52 python: '3.5' - - env: TOXENV=py35-pytest46-xdist27-coverage52 + - env: TOXENV=py35-pytest46-xdist127-coverage53 python: '3.5' - - env: TOXENV=py36-pytest46-xdist27-coverage45 + - env: TOXENV=py36-pytest46-xdist127-coverage52 python: '3.6' - - env: TOXENV=py36-pytest46-xdist27-coverage52 + - env: TOXENV=py36-pytest46-xdist127-coverage53 python: '3.6' - - env: TOXENV=py37-pytest46-xdist27-coverage45 + - env: TOXENV=py37-pytest46-xdist127-coverage52 python: '3.7' - - env: TOXENV=py37-pytest46-xdist27-coverage52 + - env: TOXENV=py37-pytest46-xdist127-coverage53 python: '3.7' - - env: TOXENV=pypy-pytest46-xdist27-coverage45 + - env: TOXENV=pypy-pytest46-xdist127-coverage52 python: 'pypy' - - env: TOXENV=pypy-pytest46-xdist27-coverage52 + - env: TOXENV=pypy-pytest46-xdist127-coverage53 python: 'pypy' - - env: TOXENV=pypy3-pytest46-xdist27-coverage45 + - env: TOXENV=pypy3-pytest46-xdist127-coverage52 python: 'pypy3' - - env: TOXENV=pypy3-pytest46-xdist27-coverage52 + - env: TOXENV=pypy3-pytest46-xdist127-coverage53 python: 'pypy3' - - env: TOXENV=py36-pytest46-xdist33-coverage45 + - env: TOXENV=py36-pytest46-xdist133-coverage53 python: '3.6' - - env: TOXENV=py36-pytest46-xdist33-coverage52 + - env: TOXENV=py36-pytest54-xdist133-coverage53 python: '3.6' - - env: TOXENV=py36-pytest54-xdist33-coverage45 - python: '3.6' - - env: TOXENV=py36-pytest54-xdist33-coverage52 - python: '3.6' - - env: TOXENV=py37-pytest46-xdist33-coverage45 - python: '3.7' - - env: TOXENV=py37-pytest46-xdist33-coverage52 - python: '3.7' - - env: TOXENV=py37-pytest54-xdist33-coverage45 + - env: TOXENV=py37-pytest46-xdist133-coverage53 python: '3.7' - - env: TOXENV=py37-pytest54-xdist33-coverage52 + - env: TOXENV=py37-pytest54-xdist133-coverage53 python: '3.7' - - env: TOXENV=py38-pytest46-xdist33-coverage45 + - env: TOXENV=py38-pytest46-xdist133-coverage53 python: '3.8' - - env: TOXENV=py38-pytest46-xdist33-coverage52 + - env: TOXENV=py38-pytest54-xdist133-coverage53 python: '3.8' - - env: TOXENV=py38-pytest54-xdist33-coverage45 - python: '3.8' - - env: TOXENV=py38-pytest54-xdist33-coverage52 - python: '3.8' - - env: TOXENV=pypy3-pytest46-xdist33-coverage45 - python: 'pypy3' - - env: TOXENV=pypy3-pytest46-xdist33-coverage52 - python: 'pypy3' - - env: TOXENV=pypy3-pytest54-xdist33-coverage45 + - env: TOXENV=pypy3-pytest46-xdist133-coverage53 python: 'pypy3' - - env: TOXENV=pypy3-pytest54-xdist33-coverage52 + - env: TOXENV=pypy3-pytest54-xdist133-coverage53 python: 'pypy3' - - env: TOXENV=py36-pytest60-xdist200-coverage52 + - env: TOXENV=py36-pytest62-xdist202-coverage53 python: '3.6' - - env: TOXENV=py37-pytest60-xdist200-coverage52 + - env: TOXENV=py37-pytest62-xdist202-coverage53 python: '3.7' - - env: TOXENV=py38-pytest60-xdist200-coverage52 + - env: TOXENV=py38-pytest62-xdist202-coverage53 python: '3.8' - - env: TOXENV=pypy3-pytest60-xdist200-coverage52 + - env: TOXENV=py39-pytest62-xdist202-coverage53 + python: '3.9' + - env: TOXENV=pypy3-pytest62-xdist202-coverage53 python: 'pypy3' - stage: examples diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-cov-2.10.1/AUTHORS.rst new/pytest-cov-2.11.1/AUTHORS.rst --- old/pytest-cov-2.10.1/AUTHORS.rst 2020-07-24 15:02:14.000000000 +0200 +++ new/pytest-cov-2.11.1/AUTHORS.rst 2021-01-17 23:57:11.000000000 +0100 @@ -39,3 +39,8 @@ * Michael Manganiello - https://github.com/adamantike * Anders Hovm??ller - https://github.com/boxed * Zac Hatfield-Dodds - https://zhd.dev +* Mateus Berardo de Souza Terra - https://github.com/MatTerra +* Ganden Schaffner - https://github.com/gschaffner +* Micha?? G??rny - https://github.com/mgorny +* Bern??t G??bor - https://github.com/gaborbernat +* Pamela McA'Nulty - https://github.com/PamelaM diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-cov-2.10.1/CHANGELOG.rst new/pytest-cov-2.11.1/CHANGELOG.rst --- old/pytest-cov-2.10.1/CHANGELOG.rst 2020-08-14 18:10:59.000000000 +0200 +++ new/pytest-cov-2.11.1/CHANGELOG.rst 2021-01-20 11:45:14.000000000 +0100 @@ -1,6 +1,31 @@ Changelog ========= +2.11.1 (2021-01-20) +------------------- + +* Fixed support for newer setuptools (v42+). + Contributed by Micha?? G??rny in `#451 <https://github.com/pytest-dev/pytest-cov/pull/451>`_. + +2.11.0 (2021-01-18) +------------------- + +* Bumped minimum coverage requirement to 5.2.1. This prevents reporting issues. + Contributed by Mateus Berardo de Souza Terra in `#433 <https://github.com/pytest-dev/pytest-cov/pull/433>`_. +* Improved sample projects (from the `examples <https://github.com/pytest-dev/pytest-cov/tree/master/examples>`_ + directory) to support running `tox -e pyXY`. Now the example configures a suffixed coverage data file, + and that makes the cleanup environment unnecessary. + Contributed by Ganden Schaffner in `#435 <https://github.com/pytest-dev/pytest-cov/pull/435>`_. +* Removed the empty `console_scripts` entrypoint that confused some Gentoo build script. + I didn't ask why it was so broken cause I didn't want to ruin my day. + Contributed by Micha?? G??rny in `#434 <https://github.com/pytest-dev/pytest-cov/pull/434>`_. +* Fixed the missing `coverage context <https://coverage.readthedocs.io/en/stable/contexts.html>`_ + when using subprocesses. + Contributed by Bern??t G??bor in `#443 <https://github.com/pytest-dev/pytest-cov/pull/443>`_. +* Updated the config section in the docs. + Contributed by Pamela McA'Nulty in `#429 <https://github.com/pytest-dev/pytest-cov/pull/429>`_. +* Migrated CI to travis-ci.com (from .org). + 2.10.1 (2020-08-14) ------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-cov-2.10.1/CONTRIBUTING.rst new/pytest-cov-2.11.1/CONTRIBUTING.rst --- old/pytest-cov-2.10.1/CONTRIBUTING.rst 2020-08-14 17:43:50.000000000 +0200 +++ new/pytest-cov-2.11.1/CONTRIBUTING.rst 2021-01-11 13:03:54.000000000 +0100 @@ -74,7 +74,8 @@ 4. Add yourself to ``AUTHORS.rst``. .. [1] If you don't have all the necessary python versions available locally you can rely on Travis - it will - `run the tests <https://travis-ci.org/pytest-dev/pytest-cov/pull_requests>`_ for each change you add in the pull request. + `run the tests <https://travis-ci.com//github/pytest-dev/pytest-cov/pull_requests>`_ + for each change you add in the pull request. It will be slower though ... @@ -85,6 +86,6 @@ tox -e envname -- pytest -k test_myfeature -To run the test environments in *parallel*:: +To run all the test environments in *parallel*:: tox -p auto diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-cov-2.10.1/PKG-INFO new/pytest-cov-2.11.1/PKG-INFO --- old/pytest-cov-2.10.1/PKG-INFO 2020-08-14 18:11:52.281863000 +0200 +++ new/pytest-cov-2.11.1/PKG-INFO 2021-01-20 11:46:31.869886400 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: pytest-cov -Version: 2.10.1 +Version: 2.11.1 Summary: Pytest plugin for measuring coverage. Home-page: https://github.com/pytest-dev/pytest-cov Author: Marc Schlaich @@ -27,9 +27,9 @@ :target: https://readthedocs.org/projects/pytest-cov :alt: Documentation Status - .. |travis| image:: https://api.travis-ci.org/pytest-dev/pytest-cov.svg?branch=master + .. |travis| image:: https://api.travis-ci.com/pytest-dev/pytest-cov.svg?branch=master :alt: Travis-CI Build Status - :target: https://travis-ci.org/pytest-dev/pytest-cov + :target: https://travis-ci.com/github/pytest-dev/pytest-cov .. |appveyor| image:: https://ci.appveyor.com/api/projects/status/github/pytest-dev/pytest-cov?branch=master&svg=true :alt: AppVeyor Build Status @@ -46,7 +46,7 @@ .. |conda-forge| image:: https://img.shields.io/conda/vn/conda-forge/pytest-cov.svg :target: https://anaconda.org/conda-forge/pytest-cov - .. |commits-since| image:: https://img.shields.io/github/commits-since/pytest-dev/pytest-cov/v2.10.1.svg + .. |commits-since| image:: https://img.shields.io/github/commits-since/pytest-dev/pytest-cov/v2.11.1.svg :alt: Commits since latest release :target: https://github.com/pytest-dev/pytest-cov/compare/v2.10.1...master @@ -177,6 +177,31 @@ Changelog ========= + 2.11.1 (2021-01-20) + ------------------- + + * Fixed support for newer setuptools (v42+). + Contributed by Micha?? G??rny in `#451 <https://github.com/pytest-dev/pytest-cov/pull/451>`_. + + 2.11.0 (2021-01-18) + ------------------- + + * Bumped minimum coverage requirement to 5.2.1. This prevents reporting issues. + Contributed by Mateus Berardo de Souza Terra in `#433 <https://github.com/pytest-dev/pytest-cov/pull/433>`_. + * Improved sample projects (from the `examples <https://github.com/pytest-dev/pytest-cov/tree/master/examples>`_ + directory) to support running `tox -e pyXY`. Now the example configures a suffixed coverage data file, + and that makes the cleanup environment unnecessary. + Contributed by Ganden Schaffner in `#435 <https://github.com/pytest-dev/pytest-cov/pull/435>`_. + * Removed the empty `console_scripts` entrypoint that confused some Gentoo build script. + I didn't ask why it was so broken cause I didn't want to ruin my day. + Contributed by Micha?? G??rny in `#434 <https://github.com/pytest-dev/pytest-cov/pull/434>`_. + * Fixed the missing `coverage context <https://coverage.readthedocs.io/en/stable/contexts.html>`_ + when using subprocesses. + Contributed by Bern??t G??bor in `#443 <https://github.com/pytest-dev/pytest-cov/pull/443>`_. + * Updated the config section in the docs. + Contributed by Pamela McA'Nulty in `#429 <https://github.com/pytest-dev/pytest-cov/pull/429>`_. + * Migrated CI to travis-ci.com (from .org). + 2.10.1 (2020-08-14) ------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-cov-2.10.1/README.rst new/pytest-cov-2.11.1/README.rst --- old/pytest-cov-2.10.1/README.rst 2020-08-14 18:11:40.000000000 +0200 +++ new/pytest-cov-2.11.1/README.rst 2021-01-20 11:45:57.000000000 +0100 @@ -19,9 +19,9 @@ :target: https://readthedocs.org/projects/pytest-cov :alt: Documentation Status -.. |travis| image:: https://api.travis-ci.org/pytest-dev/pytest-cov.svg?branch=master +.. |travis| image:: https://api.travis-ci.com/pytest-dev/pytest-cov.svg?branch=master :alt: Travis-CI Build Status - :target: https://travis-ci.org/pytest-dev/pytest-cov + :target: https://travis-ci.com/github/pytest-dev/pytest-cov .. |appveyor| image:: https://ci.appveyor.com/api/projects/status/github/pytest-dev/pytest-cov?branch=master&svg=true :alt: AppVeyor Build Status @@ -38,7 +38,7 @@ .. |conda-forge| image:: https://img.shields.io/conda/vn/conda-forge/pytest-cov.svg :target: https://anaconda.org/conda-forge/pytest-cov -.. |commits-since| image:: https://img.shields.io/github/commits-since/pytest-dev/pytest-cov/v2.10.1.svg +.. |commits-since| image:: https://img.shields.io/github/commits-since/pytest-dev/pytest-cov/v2.11.1.svg :alt: Commits since latest release :target: https://github.com/pytest-dev/pytest-cov/compare/v2.10.1...master diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-cov-2.10.1/docs/conf.py new/pytest-cov-2.11.1/docs/conf.py --- old/pytest-cov-2.10.1/docs/conf.py 2020-08-14 18:11:40.000000000 +0200 +++ new/pytest-cov-2.11.1/docs/conf.py 2021-01-20 11:45:57.000000000 +0100 @@ -26,7 +26,7 @@ year = '2016' author = 'pytest-cov contributors' copyright = '{}, {}'.format(year, author) -version = release = '2.10.1' +version = release = '2.11.1' pygments_style = 'trac' templates_path = ['.'] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-cov-2.10.1/docs/config.rst new/pytest-cov-2.11.1/docs/config.rst --- old/pytest-cov-2.10.1/docs/config.rst 2020-01-12 19:10:07.000000000 +0100 +++ new/pytest-cov-2.11.1/docs/config.rst 2020-09-28 09:50:09.000000000 +0200 @@ -21,9 +21,16 @@ .. _`coverage config file`: https://coverage.readthedocs.io/en/latest/config.html -Note that this plugin controls some options and setting the option in the config file will have no -effect. These include specifying source to be measured (source option) and all data file handling -(data_file and parallel options). +.. note:: Important Note + + This plugin overrides the ``data_file`` and ``parallel`` options of coverage. Unless you also run coverage without + pytest-cov it's pointless to set those options in your ``.coveragerc``. + + If you use the ``--cov=something`` option (with a value) then coverage's ``source`` option will also get overriden. + If you have multiple sources it might be easier to set those in ``.coveragerc`` and always use ``--cov`` (wihout a value) + instead of having a long command line with ``--cov=pkg1 --cov=pkg2 --cov=pkg3 ...``. + + If you use the ``--cov-branch`` option then coverage's ``branch`` option will also get overriden. If you wish to always add pytest-cov with pytest, you can use ``addopts`` under ``pytest`` or ``tool:pytest`` section. For example: :: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-cov-2.10.1/examples/adhoc-layout/tox.ini new/pytest-cov-2.11.1/examples/adhoc-layout/tox.ini --- old/pytest-cov-2.10.1/examples/adhoc-layout/tox.ini 2020-05-10 20:22:06.000000000 +0200 +++ new/pytest-cov-2.11.1/examples/adhoc-layout/tox.ini 2021-01-10 22:22:38.000000000 +0100 @@ -1,12 +1,14 @@ [tox] -envlist = clean,py27,py38,report +envlist = py27,py38,report [tool:pytest] addopts = --cov-report=term-missing [testenv] -commands = pytest --cov --cov-append --cov-config={toxinidir}/.coveragerc {posargs:-vv} +setenv = + py{27,38}: COVERAGE_FILE = .coverage.{envname} +commands = pytest --cov --cov-config={toxinidir}/.coveragerc {posargs:-vv} deps = pytest coverage @@ -17,7 +19,6 @@ ../.. depends = - {py27,py38}: clean report: py27,py38 # note that this is necessary to prevent the tests importing the code from your badly laid project @@ -27,10 +28,6 @@ skip_install = true deps = coverage commands = + coverage combine coverage html coverage report --fail-under=100 - -[testenv:clean] -skip_install = true -deps = coverage -commands = coverage erase diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-cov-2.10.1/examples/src-layout/tox.ini new/pytest-cov-2.11.1/examples/src-layout/tox.ini --- old/pytest-cov-2.10.1/examples/src-layout/tox.ini 2020-05-21 11:10:48.000000000 +0200 +++ new/pytest-cov-2.11.1/examples/src-layout/tox.ini 2021-01-10 22:22:38.000000000 +0100 @@ -1,5 +1,5 @@ [tox] -envlist = clean,py27,py38,report +envlist = py27,py38,report [tool:pytest] testpaths = tests @@ -7,7 +7,9 @@ --cov-report=term-missing [testenv] -commands = pytest --cov --cov-append {posargs:-vv} +setenv = + py{27,38}: COVERAGE_FILE = .coverage.{envname} +commands = pytest --cov {posargs:-vv} deps = pytest coverage @@ -18,17 +20,12 @@ ../.. depends = - {py27,py38}: clean report: py27,py38 [testenv:report] skip_install = true deps = coverage commands = + coverage combine coverage html coverage report --fail-under=100 - -[testenv:clean] -skip_install = true -deps = coverage -commands = coverage erase diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-cov-2.10.1/setup.py new/pytest-cov-2.11.1/setup.py --- old/pytest-cov-2.10.1/setup.py 2020-08-14 18:11:40.000000000 +0200 +++ new/pytest-cov-2.11.1/setup.py 2021-01-20 11:45:57.000000000 +0100 @@ -30,24 +30,24 @@ class BuildWithPTH(build): - def run(self): - build.run(self) + def run(self, *args, **kwargs): + build.run(self, *args, **kwargs) path = join(dirname(__file__), 'src', 'pytest-cov.pth') dest = join(self.build_lib, basename(path)) self.copy_file(path, dest) class EasyInstallWithPTH(easy_install): - def run(self): - easy_install.run(self) + def run(self, *args, **kwargs): + easy_install.run(self, *args, **kwargs) path = join(dirname(__file__), 'src', 'pytest-cov.pth') dest = join(self.install_dir, basename(path)) self.copy_file(path, dest) class InstallLibWithPTH(install_lib): - def run(self): - install_lib.run(self) + def run(self, *args, **kwargs): + install_lib.run(self, *args, **kwargs) path = join(dirname(__file__), 'src', 'pytest-cov.pth') dest = join(self.install_dir, basename(path)) self.copy_file(path, dest) @@ -58,8 +58,8 @@ class DevelopWithPTH(develop): - def run(self): - develop.run(self) + def run(self, *args, **kwargs): + develop.run(self, *args, **kwargs) path = join(dirname(__file__), 'src', 'pytest-cov.pth') dest = join(self.install_dir, basename(path)) self.copy_file(path, dest) @@ -85,7 +85,7 @@ setup( name='pytest-cov', - version='2.10.1', + version='2.11.1', license='MIT', description='Pytest plugin for measuring coverage.', long_description='%s\n%s' % (read('README.rst'), re.sub(':[a-z]+:`~?(.*?)`', r'``\1``', read('CHANGELOG.rst'))), @@ -124,7 +124,7 @@ ], install_requires=[ 'pytest>=4.6', - 'coverage>=4.4' + 'coverage>=5.2.1' ], python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*', extras_require={ @@ -141,8 +141,6 @@ 'pytest11': [ 'pytest_cov = pytest_cov.plugin', ], - 'console_scripts': [ - ] }, cmdclass={ 'build': BuildWithPTH, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-cov-2.10.1/src/pytest_cov/__init__.py new/pytest-cov-2.11.1/src/pytest_cov/__init__.py --- old/pytest-cov-2.10.1/src/pytest_cov/__init__.py 2020-08-14 18:11:40.000000000 +0200 +++ new/pytest-cov-2.11.1/src/pytest_cov/__init__.py 2021-01-20 11:45:57.000000000 +0100 @@ -1,2 +1,2 @@ """pytest-cov: avoid already-imported warning: PYTEST_DONT_REWRITE.""" -__version__ = "__version__ = '2.10.1'" +__version__ = "__version__ = '2.11.1'" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-cov-2.10.1/src/pytest_cov/embed.py new/pytest-cov-2.11.1/src/pytest_cov/embed.py --- old/pytest-cov-2.10.1/src/pytest_cov/embed.py 2020-01-12 19:10:07.000000000 +0100 +++ new/pytest-cov-2.11.1/src/pytest_cov/embed.py 2021-01-10 22:22:38.000000000 +0100 @@ -45,6 +45,7 @@ cov_config = os.environ.get('COV_CORE_CONFIG') cov_datafile = os.environ.get('COV_CORE_DATAFILE') cov_branch = True if os.environ.get('COV_CORE_BRANCH') == 'enabled' else None + cov_context = os.environ.get('COV_CORE_CONTEXT') if cov_datafile: if _active_cov: @@ -71,6 +72,8 @@ ) cov.load() cov.start() + if cov_context: + cov.switch_context(cov_context) cov._warn_no_data = False cov._warn_unimported_source = False return cov diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-cov-2.10.1/src/pytest_cov/engine.py new/pytest-cov-2.11.1/src/pytest_cov/engine.py --- old/pytest-cov-2.10.1/src/pytest_cov/engine.py 2020-07-12 14:51:53.000000000 +0200 +++ new/pytest-cov-2.11.1/src/pytest_cov/engine.py 2021-01-10 22:22:38.000000000 +0100 @@ -110,6 +110,7 @@ os.environ.pop('COV_CORE_CONFIG', None) os.environ.pop('COV_CORE_DATAFILE', None) os.environ.pop('COV_CORE_BRANCH', None) + os.environ.pop('COV_CORE_CONTEXT', None) @staticmethod def get_node_desc(platform, version_info): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-cov-2.10.1/src/pytest_cov/plugin.py new/pytest-cov-2.11.1/src/pytest_cov/plugin.py --- old/pytest-cov-2.10.1/src/pytest_cov/plugin.py 2020-07-12 14:51:53.000000000 +0200 +++ new/pytest-cov-2.11.1/src/pytest_cov/plugin.py 2021-01-10 22:22:38.000000000 +0100 @@ -356,6 +356,7 @@ def switch_context(self, item, when): context = "{item.nodeid}|{when}".format(item=item, when=when) self.cov.switch_context(context) + os.environ['COV_CORE_CONTEXT'] = context @pytest.fixture diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-cov-2.10.1/src/pytest_cov.egg-info/PKG-INFO new/pytest-cov-2.11.1/src/pytest_cov.egg-info/PKG-INFO --- old/pytest-cov-2.10.1/src/pytest_cov.egg-info/PKG-INFO 2020-08-14 18:11:52.000000000 +0200 +++ new/pytest-cov-2.11.1/src/pytest_cov.egg-info/PKG-INFO 2021-01-20 11:46:31.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: pytest-cov -Version: 2.10.1 +Version: 2.11.1 Summary: Pytest plugin for measuring coverage. Home-page: https://github.com/pytest-dev/pytest-cov Author: Marc Schlaich @@ -27,9 +27,9 @@ :target: https://readthedocs.org/projects/pytest-cov :alt: Documentation Status - .. |travis| image:: https://api.travis-ci.org/pytest-dev/pytest-cov.svg?branch=master + .. |travis| image:: https://api.travis-ci.com/pytest-dev/pytest-cov.svg?branch=master :alt: Travis-CI Build Status - :target: https://travis-ci.org/pytest-dev/pytest-cov + :target: https://travis-ci.com/github/pytest-dev/pytest-cov .. |appveyor| image:: https://ci.appveyor.com/api/projects/status/github/pytest-dev/pytest-cov?branch=master&svg=true :alt: AppVeyor Build Status @@ -46,7 +46,7 @@ .. |conda-forge| image:: https://img.shields.io/conda/vn/conda-forge/pytest-cov.svg :target: https://anaconda.org/conda-forge/pytest-cov - .. |commits-since| image:: https://img.shields.io/github/commits-since/pytest-dev/pytest-cov/v2.10.1.svg + .. |commits-since| image:: https://img.shields.io/github/commits-since/pytest-dev/pytest-cov/v2.11.1.svg :alt: Commits since latest release :target: https://github.com/pytest-dev/pytest-cov/compare/v2.10.1...master @@ -177,6 +177,31 @@ Changelog ========= + 2.11.1 (2021-01-20) + ------------------- + + * Fixed support for newer setuptools (v42+). + Contributed by Micha?? G??rny in `#451 <https://github.com/pytest-dev/pytest-cov/pull/451>`_. + + 2.11.0 (2021-01-18) + ------------------- + + * Bumped minimum coverage requirement to 5.2.1. This prevents reporting issues. + Contributed by Mateus Berardo de Souza Terra in `#433 <https://github.com/pytest-dev/pytest-cov/pull/433>`_. + * Improved sample projects (from the `examples <https://github.com/pytest-dev/pytest-cov/tree/master/examples>`_ + directory) to support running `tox -e pyXY`. Now the example configures a suffixed coverage data file, + and that makes the cleanup environment unnecessary. + Contributed by Ganden Schaffner in `#435 <https://github.com/pytest-dev/pytest-cov/pull/435>`_. + * Removed the empty `console_scripts` entrypoint that confused some Gentoo build script. + I didn't ask why it was so broken cause I didn't want to ruin my day. + Contributed by Micha?? G??rny in `#434 <https://github.com/pytest-dev/pytest-cov/pull/434>`_. + * Fixed the missing `coverage context <https://coverage.readthedocs.io/en/stable/contexts.html>`_ + when using subprocesses. + Contributed by Bern??t G??bor in `#443 <https://github.com/pytest-dev/pytest-cov/pull/443>`_. + * Updated the config section in the docs. + Contributed by Pamela McA'Nulty in `#429 <https://github.com/pytest-dev/pytest-cov/pull/429>`_. + * Migrated CI to travis-ci.com (from .org). + 2.10.1 (2020-08-14) ------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-cov-2.10.1/src/pytest_cov.egg-info/entry_points.txt new/pytest-cov-2.11.1/src/pytest_cov.egg-info/entry_points.txt --- old/pytest-cov-2.10.1/src/pytest_cov.egg-info/entry_points.txt 2020-08-14 18:11:52.000000000 +0200 +++ new/pytest-cov-2.11.1/src/pytest_cov.egg-info/entry_points.txt 2021-01-20 11:46:31.000000000 +0100 @@ -1,6 +1,3 @@ -[console_scripts] - - [pytest11] pytest_cov = pytest_cov.plugin diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-cov-2.10.1/src/pytest_cov.egg-info/requires.txt new/pytest-cov-2.11.1/src/pytest_cov.egg-info/requires.txt --- old/pytest-cov-2.10.1/src/pytest_cov.egg-info/requires.txt 2020-08-14 18:11:52.000000000 +0200 +++ new/pytest-cov-2.11.1/src/pytest_cov.egg-info/requires.txt 2021-01-20 11:46:31.000000000 +0100 @@ -1,5 +1,5 @@ pytest>=4.6 -coverage>=4.4 +coverage>=5.2.1 [testing] fields diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-cov-2.10.1/tests/test_pytest_cov.py new/pytest-cov-2.11.1/tests/test_pytest_cov.py --- old/pytest-cov-2.10.1/tests/test_pytest_cov.py 2020-07-24 15:02:15.000000000 +0200 +++ new/pytest-cov-2.11.1/tests/test_pytest_cov.py 2021-01-12 14:57:41.000000000 +0100 @@ -1059,7 +1059,7 @@ @pytest.mark.skipif("sys.version_info[0] < 3", reason="no context manager api on Python 2") @pytest.mark.skipif('sys.platform == "win32"', reason="multiprocessing support is broken on Windows") @pytest.mark.skipif('platform.python_implementation() == "PyPy"', reason="often deadlocks on PyPy") [email protected]('sys.version_info[:2] == (3, 8)', reason="deadlocks on Python 3.8, see: https://bugs.python.org/issue38227") [email protected]('sys.version_info[:2] >= (3, 8)', reason="deadlocks on Python 3.8+, see: https://bugs.python.org/issue38227") def test_multiprocessing_pool(testdir): pytest.importorskip('multiprocessing.util') @@ -1100,7 +1100,7 @@ @pytest.mark.skipif('sys.platform == "win32"', reason="multiprocessing support is broken on Windows") @pytest.mark.skipif('platform.python_implementation() == "PyPy"', reason="often deadlocks on PyPy") [email protected]('sys.version_info[:2] == (3, 8)', reason="deadlocks on Python 3.8, see: https://bugs.python.org/issue38227") [email protected]('sys.version_info[:2] >= (3, 8)', reason="deadlocks on Python 3.8, see: https://bugs.python.org/issue38227") def test_multiprocessing_pool_terminate(testdir): pytest.importorskip('multiprocessing.util') @@ -1538,8 +1538,14 @@ testdir.makeconftest(CONFTEST) script = testdir.makepyfile(BASIC_TEST) - monkeypatch.setattr(testdir, 'run', - lambda *args, **kwargs: _TestProcess(*map(str, args))) + def mock_run(*args, **kwargs): + return _TestProcess(*map(str, args)) + + monkeypatch.setattr(testdir, 'run', mock_run) + assert testdir.run is mock_run + if hasattr(testdir, '_pytester'): + monkeypatch.setattr(testdir._pytester, 'run', mock_run) + assert testdir._pytester.run is mock_run with testdir.runpytest('-v', '--cov=%s' % script.dirpath(), '--looponfail', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-cov-2.10.1/tox.ini new/pytest-cov-2.11.1/tox.ini --- old/pytest-cov-2.10.1/tox.ini 2020-08-14 17:48:38.000000000 +0200 +++ new/pytest-cov-2.11.1/tox.ini 2021-01-11 13:42:43.000000000 +0100 @@ -1,11 +1,21 @@ +[testenv:bootstrap] +deps = + jinja2 + matrix + tox +skip_install = true +commands = + python ci/bootstrap.py --no-env +passenv = + * ; a generative tox configuration, see: https://tox.readthedocs.io/en/latest/config.html#generative-envlist [tox] envlist = check - py{27,35,36,37,py,py3}-pytest46-xdist27-coverage{45,52} - py{36,37,38,py3}-pytest{46,54}-xdist33-coverage{45,52} - py{36,37,38,py3}-pytest{60}-xdist200-coverage{52} + py{27,35,36,37,py,py3}-pytest46-xdist127-coverage{52,53} + py{36,37,38,py3}-pytest{46,54}-xdist133-coverage{53} + py{36,37,38,39,py3}-pytest{62}-xdist202-coverage{53} docs [testenv] @@ -17,21 +27,26 @@ pytest46: _DEP_PYTEST=pytest==4.6.10 pytest53: _DEP_PYTEST=pytest==5.3.2 pytest54: _DEP_PYTEST=pytest==5.4.3 - pytest60: _DEP_PYTEST=pytest==6.0.1 + pytest60: _DEP_PYTEST=pytest==6.0.2 + pytest61: _DEP_PYTEST=pytest==6.1.2 + pytest62: _DEP_PYTEST=pytest==6.2.1 - xdist27: _DEP_PYTESTXDIST=pytest-xdist==1.27.0 - xdist29: _DEP_PYTESTXDIST=pytest-xdist==1.29.0 - xdist31: _DEP_PYTESTXDIST=pytest-xdist==1.31.0 - xdist32: _DEP_PYTESTXDIST=pytest-xdist==1.32.0 - xdist33: _DEP_PYTESTXDIST=pytest-xdist==1.33.0 - xdist34: _DEP_PYTESTXDIST=pytest-xdist==1.34.0 + xdist127: _DEP_PYTESTXDIST=pytest-xdist==1.27.0 + xdist129: _DEP_PYTESTXDIST=pytest-xdist==1.29.0 + xdist131: _DEP_PYTESTXDIST=pytest-xdist==1.31.0 + xdist132: _DEP_PYTESTXDIST=pytest-xdist==1.32.0 + xdist133: _DEP_PYTESTXDIST=pytest-xdist==1.33.0 + xdist134: _DEP_PYTESTXDIST=pytest-xdist==1.34.0 xdist200: _DEP_PYTESTXDIST=pytest-xdist==2.0.0 + xdist201: _DEP_PYTESTXDIST=pytest-xdist==2.1.0 + xdist202: _DEP_PYTESTXDIST=pytest-xdist==2.2.0 xdistdev: _DEP_PYTESTXDIST=git+https://github.com/pytest-dev/pytest-xdist.git#egg=pytest-xdist coverage45: _DEP_COVERAGE=coverage==4.5.4 coverage50: _DEP_COVERAGE=coverage==5.0.4 coverage51: _DEP_COVERAGE=coverage==5.1 coverage52: _DEP_COVERAGE=coverage==5.2.1 + coverage53: _DEP_COVERAGE=coverage==5.3.1 # For testing against a coverage.py working tree. coveragedev: _DEP_COVERAGE=-e{env:COVERAGE_HOME} passenv =
