pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/py-test py-test: updated to 7.1.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a3e6af9c4061
branches:  trunk
changeset: 376338:a3e6af9c4061
user:      adam <adam%pkgsrc.org@localhost>
date:      Tue Apr 05 19:11:12 2022 +0000

description:
py-test: updated to 7.1.1

pytest 7.1.1 (2022-03-17)
=========================

Bug Fixes
---------
- Fixed a regression in pytest 7.1.0 where some conftest.py files outside of the source tree (e.g. in the `site-packages` directory) were not picked up.


pytest 7.1.0 (2022-03-13)
=========================

Breaking Changes
----------------

- As per our policy, the following features have been deprecated in the 6.X series and are now
  removed:

  * ``pytest._fillfuncargs`` function.
  * ``pytest_warning_captured`` hook - use ``pytest_warning_recorded`` instead.
  * ``-k -foobar`` syntax - use ``-k 'not foobar'`` instead.
  * ``-k foobar:`` syntax.
  * ``pytest.collect`` module - import from ``pytest`` directly.

  For more information consult
  `Deprecations and Removals <https://docs.pytest.org/en/latest/deprecations.html>`__ in the docs.

- Dropped support for Python 3.6, which reached `end-of-life <https://devguide.python.org/#status-of-python-branches>`__ at 2021-12-23.


Improvements
------------

- Fixed test output for some data types where ``-v`` would show less information.
  Also, when showing diffs for sequences, ``-q`` would produce full diffs instead of the expected diff.

- pytest now avoids specialized assert formatting when it is detected that the default ``__eq__`` is overridden in ``attrs`` or ``dataclasses``.

- When ``-vv`` is given on command line, show skipping and xfail reasons in full instead of truncating them to fit the terminal width.

- More information about the location of resources that led Python to raise :class:`ResourceWarning` can now
  be obtained by enabling :mod:`tracemalloc`.

  See :ref:`resource-warnings` for more information.

- More types are now accepted in the ``ids`` argument to ``@pytest.mark.parametrize``.
  Previously only `str`, `float`, `int` and `bool` were accepted;
  now `bytes`, `complex`, `re.Pattern`, `Enum` and anything with a `__name__` are also accepted.

- :func:`pytest.approx` now raises a :class:`TypeError` when given an unordered sequence (such as :class:`set`).

  Note that this implies that custom classes which only implement ``__iter__`` and ``__len__`` are no longer supported as they don't guarantee order.


Bug Fixes
---------

- The deprecation of raising :class:`unittest.SkipTest` to skip collection of
  tests during the pytest collection phase is reverted - this is now a supported
  feature again.

- Symbolic link components are no longer resolved in conftest paths.
  This means that if a conftest appears twice in collection tree, using symlinks, it will be executed twice.
  For example, given

      tests/real/conftest.py
      tests/real/test_it.py
      tests/link -> tests/real

  running ``pytest tests`` now imports the conftest twice, once as ``tests/real/conftest.py`` and once as ``tests/link/conftest.py``.
  This is a fix to match a similar change made to test collection itself in pytest 6.0 (see :pull:`6523` for details).

- Fixed count of selected tests on terminal collection summary when there were errors or skipped modules.

  If there were errors or skipped modules on collection, pytest would mistakenly subtract those from the selected count.

- Fixed regression where ``--import-mode=importlib`` used together with :envvar:`PYTHONPATH` or :confval:`pythonpath` would cause import errors in test suites.

- :fixture:`pytester` now requests a :fixture:`monkeypatch` fixture instead of creating one internally. This solves some issues with tests that involve pytest environment variables.

- Malformed ``pyproject.toml`` files now produce a clearer error message.

diffstat:

 devel/py-test/Makefile |  16 ++++----
 devel/py-test/PLIST    |  87 +++++++++++++++++++++++++++++++++++++++++++------
 devel/py-test/distinfo |   8 ++--
 3 files changed, 87 insertions(+), 24 deletions(-)

diffs (286 lines):

diff -r 3b2e41686c7f -r a3e6af9c4061 devel/py-test/Makefile
--- a/devel/py-test/Makefile    Tue Apr 05 19:08:11 2022 +0000
+++ b/devel/py-test/Makefile    Tue Apr 05 19:11:12 2022 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.106 2022/02/15 16:05:42 wiz Exp $
+# $NetBSD: Makefile,v 1.107 2022/04/05 19:11:12 adam Exp $
 
-DISTNAME=      pytest-7.0.1
+DISTNAME=      pytest-7.1.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pytest/}
@@ -30,19 +30,19 @@
 TEST_DEPENDS+= ${PYPKGPREFIX}-requests-[0-9]*:../../devel/py-requests
 TEST_DEPENDS+= ${PYPKGPREFIX}-xmlschema-[0-9]*:../../textproc/py-xmlschema
 
-PYTHON_VERSIONS_INCOMPATIBLE=  27
+USE_LANGUAGES= # none
+USE_TOOLS+=    bash:build
 
 USE_PKG_RESOURCES=     yes
 
+PYTHON_VERSIONS_INCOMPATIBLE=  27
+
 .include "../../lang/python/pyversion.mk"
 
-.if ${PYPKGPREFIX} == "py37"
+.if ${_PYTHON_VERSION} == 37
 DEPENDS+=      ${PYPKGPREFIX}-importlib-metadata>=0.12:../../devel/py-importlib-metadata
 .endif
 
-USE_LANGUAGES= # none
-USE_TOOLS+=    bash:build
-
 post-install:
        cd ${DESTDIR}${PREFIX}/bin && \
        ${MV} py.test py.test-${PYVERSSUFFIX} && \
@@ -54,5 +54,5 @@
 do-test:
        cd ${WRKSRC}/testing && pytest-${PYVERSSUFFIX}
 
-.include "../../lang/python/wheel.mk"
+.include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 3b2e41686c7f -r a3e6af9c4061 devel/py-test/PLIST
--- a/devel/py-test/PLIST       Tue Apr 05 19:08:11 2022 +0000
+++ b/devel/py-test/PLIST       Tue Apr 05 19:11:12 2022 +0000
@@ -1,150 +1,213 @@
-@comment $NetBSD: PLIST,v 1.21 2022/02/15 16:05:42 wiz Exp $
+@comment $NetBSD: PLIST,v 1.22 2022/04/05 19:11:12 adam Exp $
 bin/py.test-${PYVERSSUFFIX}
 bin/pytest-${PYVERSSUFFIX}
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
+${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
 ${PYSITELIB}/_pytest/__init__.py
 ${PYSITELIB}/_pytest/__init__.pyc
+${PYSITELIB}/_pytest/__init__.pyo
 ${PYSITELIB}/_pytest/_argcomplete.py
 ${PYSITELIB}/_pytest/_argcomplete.pyc
+${PYSITELIB}/_pytest/_argcomplete.pyo
 ${PYSITELIB}/_pytest/_code/__init__.py
 ${PYSITELIB}/_pytest/_code/__init__.pyc
+${PYSITELIB}/_pytest/_code/__init__.pyo
 ${PYSITELIB}/_pytest/_code/code.py
 ${PYSITELIB}/_pytest/_code/code.pyc
+${PYSITELIB}/_pytest/_code/code.pyo
 ${PYSITELIB}/_pytest/_code/source.py
 ${PYSITELIB}/_pytest/_code/source.pyc
+${PYSITELIB}/_pytest/_code/source.pyo
 ${PYSITELIB}/_pytest/_io/__init__.py
 ${PYSITELIB}/_pytest/_io/__init__.pyc
+${PYSITELIB}/_pytest/_io/__init__.pyo
 ${PYSITELIB}/_pytest/_io/saferepr.py
 ${PYSITELIB}/_pytest/_io/saferepr.pyc
+${PYSITELIB}/_pytest/_io/saferepr.pyo
 ${PYSITELIB}/_pytest/_io/terminalwriter.py
 ${PYSITELIB}/_pytest/_io/terminalwriter.pyc
+${PYSITELIB}/_pytest/_io/terminalwriter.pyo
 ${PYSITELIB}/_pytest/_io/wcwidth.py
 ${PYSITELIB}/_pytest/_io/wcwidth.pyc
+${PYSITELIB}/_pytest/_io/wcwidth.pyo
 ${PYSITELIB}/_pytest/_version.py
 ${PYSITELIB}/_pytest/_version.pyc
+${PYSITELIB}/_pytest/_version.pyo
 ${PYSITELIB}/_pytest/assertion/__init__.py
 ${PYSITELIB}/_pytest/assertion/__init__.pyc
+${PYSITELIB}/_pytest/assertion/__init__.pyo
 ${PYSITELIB}/_pytest/assertion/rewrite.py
 ${PYSITELIB}/_pytest/assertion/rewrite.pyc
+${PYSITELIB}/_pytest/assertion/rewrite.pyo
 ${PYSITELIB}/_pytest/assertion/truncate.py
 ${PYSITELIB}/_pytest/assertion/truncate.pyc
+${PYSITELIB}/_pytest/assertion/truncate.pyo
 ${PYSITELIB}/_pytest/assertion/util.py
 ${PYSITELIB}/_pytest/assertion/util.pyc
+${PYSITELIB}/_pytest/assertion/util.pyo
 ${PYSITELIB}/_pytest/cacheprovider.py
 ${PYSITELIB}/_pytest/cacheprovider.pyc
+${PYSITELIB}/_pytest/cacheprovider.pyo
 ${PYSITELIB}/_pytest/capture.py
 ${PYSITELIB}/_pytest/capture.pyc
+${PYSITELIB}/_pytest/capture.pyo
 ${PYSITELIB}/_pytest/compat.py
 ${PYSITELIB}/_pytest/compat.pyc
+${PYSITELIB}/_pytest/compat.pyo
 ${PYSITELIB}/_pytest/config/__init__.py
 ${PYSITELIB}/_pytest/config/__init__.pyc
+${PYSITELIB}/_pytest/config/__init__.pyo
 ${PYSITELIB}/_pytest/config/argparsing.py
 ${PYSITELIB}/_pytest/config/argparsing.pyc
+${PYSITELIB}/_pytest/config/argparsing.pyo
 ${PYSITELIB}/_pytest/config/compat.py
 ${PYSITELIB}/_pytest/config/compat.pyc
+${PYSITELIB}/_pytest/config/compat.pyo
 ${PYSITELIB}/_pytest/config/exceptions.py
 ${PYSITELIB}/_pytest/config/exceptions.pyc
+${PYSITELIB}/_pytest/config/exceptions.pyo
 ${PYSITELIB}/_pytest/config/findpaths.py
 ${PYSITELIB}/_pytest/config/findpaths.pyc
+${PYSITELIB}/_pytest/config/findpaths.pyo
 ${PYSITELIB}/_pytest/debugging.py
 ${PYSITELIB}/_pytest/debugging.pyc
+${PYSITELIB}/_pytest/debugging.pyo
 ${PYSITELIB}/_pytest/deprecated.py
 ${PYSITELIB}/_pytest/deprecated.pyc
+${PYSITELIB}/_pytest/deprecated.pyo
 ${PYSITELIB}/_pytest/doctest.py
 ${PYSITELIB}/_pytest/doctest.pyc
+${PYSITELIB}/_pytest/doctest.pyo
 ${PYSITELIB}/_pytest/faulthandler.py
 ${PYSITELIB}/_pytest/faulthandler.pyc
+${PYSITELIB}/_pytest/faulthandler.pyo
 ${PYSITELIB}/_pytest/fixtures.py
 ${PYSITELIB}/_pytest/fixtures.pyc
+${PYSITELIB}/_pytest/fixtures.pyo
 ${PYSITELIB}/_pytest/freeze_support.py
 ${PYSITELIB}/_pytest/freeze_support.pyc
+${PYSITELIB}/_pytest/freeze_support.pyo
 ${PYSITELIB}/_pytest/helpconfig.py
 ${PYSITELIB}/_pytest/helpconfig.pyc
+${PYSITELIB}/_pytest/helpconfig.pyo
 ${PYSITELIB}/_pytest/hookspec.py
 ${PYSITELIB}/_pytest/hookspec.pyc
+${PYSITELIB}/_pytest/hookspec.pyo
 ${PYSITELIB}/_pytest/junitxml.py
 ${PYSITELIB}/_pytest/junitxml.pyc
+${PYSITELIB}/_pytest/junitxml.pyo
 ${PYSITELIB}/_pytest/legacypath.py
 ${PYSITELIB}/_pytest/legacypath.pyc
+${PYSITELIB}/_pytest/legacypath.pyo
 ${PYSITELIB}/_pytest/logging.py
 ${PYSITELIB}/_pytest/logging.pyc
+${PYSITELIB}/_pytest/logging.pyo
 ${PYSITELIB}/_pytest/main.py
 ${PYSITELIB}/_pytest/main.pyc
+${PYSITELIB}/_pytest/main.pyo
 ${PYSITELIB}/_pytest/mark/__init__.py
 ${PYSITELIB}/_pytest/mark/__init__.pyc
+${PYSITELIB}/_pytest/mark/__init__.pyo
 ${PYSITELIB}/_pytest/mark/expression.py
 ${PYSITELIB}/_pytest/mark/expression.pyc
+${PYSITELIB}/_pytest/mark/expression.pyo
 ${PYSITELIB}/_pytest/mark/structures.py
 ${PYSITELIB}/_pytest/mark/structures.pyc
+${PYSITELIB}/_pytest/mark/structures.pyo
 ${PYSITELIB}/_pytest/monkeypatch.py
 ${PYSITELIB}/_pytest/monkeypatch.pyc
+${PYSITELIB}/_pytest/monkeypatch.pyo
 ${PYSITELIB}/_pytest/nodes.py
 ${PYSITELIB}/_pytest/nodes.pyc
+${PYSITELIB}/_pytest/nodes.pyo
 ${PYSITELIB}/_pytest/nose.py
 ${PYSITELIB}/_pytest/nose.pyc
+${PYSITELIB}/_pytest/nose.pyo
 ${PYSITELIB}/_pytest/outcomes.py
 ${PYSITELIB}/_pytest/outcomes.pyc
+${PYSITELIB}/_pytest/outcomes.pyo
 ${PYSITELIB}/_pytest/pastebin.py
 ${PYSITELIB}/_pytest/pastebin.pyc
+${PYSITELIB}/_pytest/pastebin.pyo
 ${PYSITELIB}/_pytest/pathlib.py
 ${PYSITELIB}/_pytest/pathlib.pyc
+${PYSITELIB}/_pytest/pathlib.pyo
 ${PYSITELIB}/_pytest/py.typed
 ${PYSITELIB}/_pytest/pytester.py
 ${PYSITELIB}/_pytest/pytester.pyc
+${PYSITELIB}/_pytest/pytester.pyo
 ${PYSITELIB}/_pytest/pytester_assertions.py
 ${PYSITELIB}/_pytest/pytester_assertions.pyc
+${PYSITELIB}/_pytest/pytester_assertions.pyo
 ${PYSITELIB}/_pytest/python.py
 ${PYSITELIB}/_pytest/python.pyc
+${PYSITELIB}/_pytest/python.pyo
 ${PYSITELIB}/_pytest/python_api.py
 ${PYSITELIB}/_pytest/python_api.pyc
+${PYSITELIB}/_pytest/python_api.pyo
 ${PYSITELIB}/_pytest/python_path.py
 ${PYSITELIB}/_pytest/python_path.pyc
+${PYSITELIB}/_pytest/python_path.pyo
 ${PYSITELIB}/_pytest/recwarn.py
 ${PYSITELIB}/_pytest/recwarn.pyc
+${PYSITELIB}/_pytest/recwarn.pyo
 ${PYSITELIB}/_pytest/reports.py
 ${PYSITELIB}/_pytest/reports.pyc
+${PYSITELIB}/_pytest/reports.pyo
 ${PYSITELIB}/_pytest/runner.py
 ${PYSITELIB}/_pytest/runner.pyc
+${PYSITELIB}/_pytest/runner.pyo
 ${PYSITELIB}/_pytest/scope.py
 ${PYSITELIB}/_pytest/scope.pyc
+${PYSITELIB}/_pytest/scope.pyo
 ${PYSITELIB}/_pytest/setuponly.py
 ${PYSITELIB}/_pytest/setuponly.pyc
+${PYSITELIB}/_pytest/setuponly.pyo
 ${PYSITELIB}/_pytest/setupplan.py
 ${PYSITELIB}/_pytest/setupplan.pyc
+${PYSITELIB}/_pytest/setupplan.pyo
 ${PYSITELIB}/_pytest/skipping.py
 ${PYSITELIB}/_pytest/skipping.pyc
+${PYSITELIB}/_pytest/skipping.pyo
 ${PYSITELIB}/_pytest/stash.py
 ${PYSITELIB}/_pytest/stash.pyc
+${PYSITELIB}/_pytest/stash.pyo
 ${PYSITELIB}/_pytest/stepwise.py
 ${PYSITELIB}/_pytest/stepwise.pyc
+${PYSITELIB}/_pytest/stepwise.pyo
 ${PYSITELIB}/_pytest/terminal.py
 ${PYSITELIB}/_pytest/terminal.pyc
+${PYSITELIB}/_pytest/terminal.pyo
 ${PYSITELIB}/_pytest/threadexception.py
 ${PYSITELIB}/_pytest/threadexception.pyc
+${PYSITELIB}/_pytest/threadexception.pyo
 ${PYSITELIB}/_pytest/timing.py
 ${PYSITELIB}/_pytest/timing.pyc
+${PYSITELIB}/_pytest/timing.pyo
 ${PYSITELIB}/_pytest/tmpdir.py
 ${PYSITELIB}/_pytest/tmpdir.pyc
+${PYSITELIB}/_pytest/tmpdir.pyo
 ${PYSITELIB}/_pytest/unittest.py
 ${PYSITELIB}/_pytest/unittest.pyc
+${PYSITELIB}/_pytest/unittest.pyo
 ${PYSITELIB}/_pytest/unraisableexception.py
 ${PYSITELIB}/_pytest/unraisableexception.pyc
+${PYSITELIB}/_pytest/unraisableexception.pyo
 ${PYSITELIB}/_pytest/warning_types.py
 ${PYSITELIB}/_pytest/warning_types.pyc
+${PYSITELIB}/_pytest/warning_types.pyo
 ${PYSITELIB}/_pytest/warnings.py
 ${PYSITELIB}/_pytest/warnings.pyc
-${PYSITELIB}/${WHEEL_INFODIR}/INSTALLER
-${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
-${PYSITELIB}/${WHEEL_INFODIR}/METADATA
-${PYSITELIB}/${WHEEL_INFODIR}/RECORD
-${PYSITELIB}/${WHEEL_INFODIR}/REQUESTED
-${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
-${PYSITELIB}/${WHEEL_INFODIR}/direct_url.json
-${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
-${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
+${PYSITELIB}/_pytest/warnings.pyo
 ${PYSITELIB}/pytest/__init__.py
 ${PYSITELIB}/pytest/__init__.pyc
+${PYSITELIB}/pytest/__init__.pyo
 ${PYSITELIB}/pytest/__main__.py
 ${PYSITELIB}/pytest/__main__.pyc
-${PYSITELIB}/pytest/collect.py
-${PYSITELIB}/pytest/collect.pyc
+${PYSITELIB}/pytest/__main__.pyo
 ${PYSITELIB}/pytest/py.typed
diff -r 3b2e41686c7f -r a3e6af9c4061 devel/py-test/distinfo
--- a/devel/py-test/distinfo    Tue Apr 05 19:08:11 2022 +0000
+++ b/devel/py-test/distinfo    Tue Apr 05 19:11:12 2022 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.93 2022/02/15 16:05:42 wiz Exp $
+$NetBSD: distinfo,v 1.94 2022/04/05 19:11:12 adam Exp $
 
-BLAKE2s (pytest-7.0.1.tar.gz) = 750bd1aa711daacd3920d625e5aa57204ed79f6dbcafafa246bad573e70631dd
-SHA512 (pytest-7.0.1.tar.gz) = 21493717159a64fe6467bd096b578b127d81438d04f5b03ba2f4047237054f865a1f50a4e291b9d95b1a144f59bc7a8b3a00008493f4fb4f14bff7fb65c5edc2
-Size (pytest-7.0.1.tar.gz) = 1249154 bytes
+BLAKE2s (pytest-7.1.1.tar.gz) = 850cbe298f73c036500daf82e7234669b13336d2c21fcc63f2e653e72d08aa04
+SHA512 (pytest-7.1.1.tar.gz) = 53fd016f030ac0394ac686a3756fad05efca8363d6b93df04f90732efea7643cdbba9501dad6d9055d314fcaec0887674496d56986efeb73915976276bf0a700
+Size (pytest-7.1.1.tar.gz) = 1255528 bytes



Home | Main Index | Thread Index | Old Index