pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel py-test5: added version 5.2.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/da482a97e918
branches:  trunk
changeset: 342635:da482a97e918
user:      adam <adam%pkgsrc.org@localhost>
date:      Tue Oct 22 18:39:38 2019 +0000

description:
py-test5: added version 5.2.1

pytest 5.2.1:
Bug Fixes
* Fix warnings about deprecated cmp attribute in attrs>=19.2.

pytest 5.2.0:
Deprecations
* Passing arguments to pytest.fixture() as positional arguments is deprecated - pass them as a keyword argument instead.

Features
* The scope parameter of @pytest.fixture can now be a callable that receives the fixture name and the config object as keyword-only parameters. See the docs for more information.
* New behavior of the --pastebin option: failures to connect to the pastebin server are reported, without failing the pytest run

Bug Fixes
* Fix ?lexer? being used when uploading to bpaste.net from --pastebin to ?text?.
* Fix --setup-only and --setup-show for custom pytest items.

Trivial/Internal Changes
* The HelpFormatter uses py.io.get_terminal_width for better width detection.

pytest 5.1.3:
Bug Fixes
* Fix pypy3.6 (nightly) on windows.
* Handle --fulltrace correctly with pytest.raises.
* Windows: Fix regression with conftest whose qualified name contains uppercase characters.

pytest 5.1.2:
Bug Fixes
* Fixed self reference in function-scoped fixtures defined plugin classes: previously self would be a reference to a test class, not the plugin class.
* Fixed long standing issue where fixture scope was not respected when indirect fixtures were used during parametrization.
* Fix decoding error when printing an error response from --pastebin.
* Chained exceptions in test and collection reports are now correctly serialized, allowing plugins like pytest-xdist to display them properly.
* Windows: Fix error that occurs in certain circumstances when loading conftest.py from a working directory that has casing other than the one stored in the filesystem (e.g., c:\test instead of 
C:\test).

pytest 5.1.1:
Bug Fixes
* Fixed TypeError when importing pytest on Python 3.5.0 and 3.5.1.

pytest 5.1.0:
Removals
* As per our policy, the following features have been deprecated in the 4.X series and are now removed:

Request.getfuncargvalue: use Request.getfixturevalue instead.
pytest.raises and pytest.warns no longer support strings as the second argument.
message parameter of pytest.raises.
pytest.raises, pytest.warns and ParameterSet.param now use native keyword-only syntax. This might change the exception message from previous versions, but they still raise TypeError on unknown 
keyword arguments as before.
pytest.config global variable.
tmpdir_factory.ensuretemp method.
pytest_logwarning hook.
RemovedInPytest4Warning warning type.
request is now a reserved name for fixtures.
For more information consult Deprecations and Removals in the docs.

* Removed unused support code for unittest2.
* pytest.fail, pytest.xfail and pytest.skip no longer support bytes for the message argument.

Features
* New Config.invocation_args attribute containing the unchanged arguments passed to pytest.main().
* New NUMBER option for doctests to ignore irrelevant differences in floating-point numbers. Inspired by S?bastien Boisg?rault?s numtest extension for doctest.
Improvements
* JUnit XML now includes a timestamp and hostname in the testsuite tag.
* Time taken to run the test suite now includes a human-readable representation when it takes over 60 seconds, for example:

Bug Fixes
* Fix RuntimeError/StopIteration when trying to collect package with ?__init__.py? only.
* Warnings issued during pytest_configure are explicitly not treated as errors, even if configured as such, because it otherwise completely breaks pytest.
* The XML file produced by --junitxml now correctly contain a <testsuites> root element.
* Fix issue where tmp_path and tmpdir would not remove directories containing files marked as read-only, which could lead to pytest crashing when executed a second time with the --basetemp option.
* Replace importlib_metadata backport with importlib.metadata from the standard library on Python 3.8+.
* Improve type checking for some exception-raising functions (pytest.xfail, pytest.skip, etc) so they provide better error messages when users meant to use marks (for example @pytest.xfail instead of 
@pytest.mark.xfail).
* Fixed internal error when test functions were patched with objects that cannot be compared for truth values against others, like numpy arrays.
* pytest.exit is now correctly handled in unittest cases. This makes unittest cases handle quit from pytest?s pdb correctly.
* Improved output when parsing an ini configuration file fails.
* Fix collection of staticmethod objects defined with functools.partial.
* Skip async generator test functions, and update the warning message to refer to async def functions.
Improved Documentation
* Add docstring for Testdir.copy_example.
Trivial/Internal Changes
* XML files of the xunit2 family are now validated against the schema by pytest?s own test suite to avoid future regressions.
* Cache node splitting function which can improve collection performance in very large test suites.
* Simplified internal SafeRepr class and removed some dead code.
* When invoking pytest?s own testsuite with PYTHONDONTWRITEBYTECODE=1, the test_xfail_handling test no longer fails.
* Replace manual handling of OSError.errno in the codebase by new OSError subclasses (PermissionError, FileNotFoundError, etc.).

pytest 5.0.1:
Bug Fixes
* Improve quoting in raises match failure message.
* Fixed using multiple short options together in the command-line (for example -vs) in Python 3.8+.
* --step-wise now handles xfail(strict=True) markers properly.
Improved Documentation
* Improve ?Declaring new hooks? section in chapter ?Writing Plugins?

pytest 5.0.0:

Important
This release is a Python3.5+ only release.

For more details, see our Python 2.7 and 3.4 support plan.

Removals
* Pytest no longer accepts prefixes of command-line arguments, for example typing pytest --doctest-mod inplace of --doctest-modules. This was previously allowed where the ArgumentParser thought it 
was unambiguous, but this could be incorrect due to delayed parsing of options for plugins.

* PytestDeprecationWarning are now errors by default.

* ExceptionInfo objects (returned by pytest.raises) now have the same str representation as repr, which avoids some confusion when users use print(e) to inspect the object.

diffstat:

 devel/Makefile              |    3 +-
 devel/py-test5/ALTERNATIVES |    2 +
 devel/py-test5/DESCR        |   13 +++
 devel/py-test5/Makefile     |   48 +++++++++++
 devel/py-test5/PLIST        |  181 ++++++++++++++++++++++++++++++++++++++++++++
 devel/py-test5/distinfo     |    6 +
 6 files changed, 252 insertions(+), 1 deletions(-)

diffs (287 lines):

diff -r a45239e12d02 -r da482a97e918 devel/Makefile
--- a/devel/Makefile    Tue Oct 22 17:32:38 2019 +0000
+++ b/devel/Makefile    Tue Oct 22 18:39:38 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2929 2019/10/21 19:22:52 adam Exp $
+# $NetBSD: Makefile,v 1.2930 2019/10/22 18:39:38 adam Exp $
 #
 
 COMMENT=       Development utilities
@@ -2428,6 +2428,7 @@
 SUBDIR+=       py-test-watch
 SUBDIR+=       py-test-xdist
 SUBDIR+=       py-test-xprocess
+SUBDIR+=       py-test5
 SUBDIR+=       py-testpath
 SUBDIR+=       py-testrepository
 SUBDIR+=       py-testresources
diff -r a45239e12d02 -r da482a97e918 devel/py-test5/ALTERNATIVES
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-test5/ALTERNATIVES       Tue Oct 22 18:39:38 2019 +0000
@@ -0,0 +1,2 @@
+bin/py.test @PREFIX@/bin/py.test-@PYVERSSUFFIX@
+bin/pytest @PREFIX@/bin/pytest-@PYVERSSUFFIX@
diff -r a45239e12d02 -r da482a97e918 devel/py-test5/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-test5/DESCR      Tue Oct 22 18:39:38 2019 +0000
@@ -0,0 +1,13 @@
+The pytest framework makes it easy to write small tests, yet scales to support
+complex functional testing for applications and libraries.
+
+Features
+* Detailed info on failing assert statements (no need to remember self.assert*
+  names);
+* Auto-discovery of test modules and functions;
+* Modular fixtures for managing small or parametrized long-lived test
+  resources;
+* Can run unittest (including trial) and nose test suites out of the box;
+* Python 3.5+ and PyPy 3;
+* Rich plugin architecture, with over 315+ external plugins and thriving
+  community;
diff -r a45239e12d02 -r da482a97e918 devel/py-test5/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-test5/Makefile   Tue Oct 22 18:39:38 2019 +0000
@@ -0,0 +1,48 @@
+# $NetBSD: Makefile,v 1.1 2019/10/22 18:39:38 adam Exp $
+
+DISTNAME=      pytest-5.2.1
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/py//}
+CATEGORIES=    devel python
+MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pytest/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://pytest.org/
+COMMENT=       Python testing tool
+LICENSE=       mit
+
+DEPENDS+=      ${PYPKGPREFIX}-atomicwrites>=1.0:../../devel/py-atomicwrites
+DEPENDS+=      ${PYPKGPREFIX}-attrs>=17.4.0:../../devel/py-attrs
+DEPENDS+=      ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
+DEPENDS+=      ${PYPKGPREFIX}-more-itertools>=4.0.0:../../devel/py-more-itertools
+DEPENDS+=      ${PYPKGPREFIX}-packaging-[0-9]*:../../devel/py-packaging
+DEPENDS+=      ${PYPKGPREFIX}-pluggy>=0.12:../../devel/py-pluggy
+DEPENDS+=      ${PYPKGPREFIX}-py>=1.5.0:../../devel/py-py
+DEPENDS+=      ${PYPKGPREFIX}-wcwidth-[0-9]*:../../devel/py-wcwidth
+BUILD_DEPENDS+=        ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
+TEST_DEPENDS+= ${PYPKGPREFIX}-argcomplete-[0-9]*:../../devel/py-argcomplete
+TEST_DEPENDS+= ${PYPKGPREFIX}-hypothesis>=3.56:../../devel/py-hypothesis
+TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
+TEST_DEPENDS+= ${PYPKGPREFIX}-nose-[0-9]*:../../devel/py-nose
+TEST_DEPENDS+= ${PYPKGPREFIX}-requests-[0-9]*:../../devel/py-requests
+TEST_DEPENDS+= ${PYPKGPREFIX}-xmlschema-[0-9]*:../../textproc/py-xmlschema
+
+.include "../../lang/python/pyversion.mk"
+.if ${_PYTHON_VERSION} < 38
+DEPENDS+=      ${PYPKGPREFIX}-importlib-metadata>=0.12:../../devel/py-importlib-metadata
+.endif
+
+PYTHON_VERSIONS_INCOMPATIBLE=  27
+
+USE_LANGUAGES= # none
+USE_TOOLS+=    bash:build
+
+post-install:
+       cd ${DESTDIR}${PREFIX}/bin && \
+       ${MV} py.test py.test-${PYVERSSUFFIX} && \
+       ${MV} pytest pytest-${PYVERSSUFFIX} || ${TRUE}
+
+do-test:
+       cd ${WRKSRC}/testing && pytest-${PYVERSSUFFIX}
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r a45239e12d02 -r da482a97e918 devel/py-test5/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-test5/PLIST      Tue Oct 22 18:39:38 2019 +0000
@@ -0,0 +1,181 @@
+@comment $NetBSD: PLIST,v 1.1 2019/10/22 18:39:38 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/_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/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/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/evaluate.py
+${PYSITELIB}/_pytest/mark/evaluate.pyc
+${PYSITELIB}/_pytest/mark/evaluate.pyo
+${PYSITELIB}/_pytest/mark/legacy.py
+${PYSITELIB}/_pytest/mark/legacy.pyc
+${PYSITELIB}/_pytest/mark/legacy.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/pytester.py
+${PYSITELIB}/_pytest/pytester.pyc
+${PYSITELIB}/_pytest/pytester.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/recwarn.py
+${PYSITELIB}/_pytest/recwarn.pyc
+${PYSITELIB}/_pytest/recwarn.pyo
+${PYSITELIB}/_pytest/reports.py
+${PYSITELIB}/_pytest/reports.pyc
+${PYSITELIB}/_pytest/reports.pyo
+${PYSITELIB}/_pytest/resultlog.py
+${PYSITELIB}/_pytest/resultlog.pyc
+${PYSITELIB}/_pytest/resultlog.pyo
+${PYSITELIB}/_pytest/runner.py
+${PYSITELIB}/_pytest/runner.pyc
+${PYSITELIB}/_pytest/runner.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/stepwise.py
+${PYSITELIB}/_pytest/stepwise.pyc
+${PYSITELIB}/_pytest/stepwise.pyo
+${PYSITELIB}/_pytest/terminal.py
+${PYSITELIB}/_pytest/terminal.pyc
+${PYSITELIB}/_pytest/terminal.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/warning_types.py
+${PYSITELIB}/_pytest/warning_types.pyc
+${PYSITELIB}/_pytest/warning_types.pyo
+${PYSITELIB}/_pytest/warnings.py
+${PYSITELIB}/_pytest/warnings.pyc
+${PYSITELIB}/_pytest/warnings.pyo
+${PYSITELIB}/pytest.py
+${PYSITELIB}/pytest.pyc
+${PYSITELIB}/pytest.pyo
diff -r a45239e12d02 -r da482a97e918 devel/py-test5/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-test5/distinfo   Tue Oct 22 18:39:38 2019 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2019/10/22 18:39:38 adam Exp $
+
+SHA1 (pytest-5.2.1.tar.gz) = 1b9e04d78189b910e8bc4fc1aeecca0b4ce4aa00
+RMD160 (pytest-5.2.1.tar.gz) = 8f62e2d0ba5d733fc4330007adde05820f47307a
+SHA512 (pytest-5.2.1.tar.gz) = 0782f044640a0e1333abddcb269710d6acc13ee5b849b2763878b7803ba14491b18a220d43a0723bc5e3fac9705a1f925655044d0a958554496b9650f3b5871a
+Size (pytest-5.2.1.tar.gz) = 971744 bytes



Home | Main Index | Thread Index | Old Index