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

branches:  trunk
changeset: 416302:bc7fe7be1039
user:      adam <>
date:      Tue Oct 22 18:39:38 2019 +0000

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:
* Passing arguments to pytest.fixture() as positional arguments is deprecated - pass them as a keyword argument instead.

* 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 from --pastebin to ?text?.
* Fix --setup-only and --setup-show for custom pytest items.

Trivial/Internal Changes
* The HelpFormatter uses 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 from a working directory that has casing other than the one stored in the filesystem (e.g., c:\test instead of 

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

pytest 5.1.0:
* 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.xfail and pytest.skip no longer support bytes for the message argument.

* 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.
* 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 ? 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 
* 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:

This release is a Python3.5+ only release.

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

* 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.


 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 dd9cf7f63ee1 -r bc7fe7be1039 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 dd9cf7f63ee1 -r bc7fe7be1039 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 dd9cf7f63ee1 -r bc7fe7be1039 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.
+* 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 dd9cf7f63ee1 -r bc7fe7be1039 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
+CATEGORIES=    devel python
+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/"
+.if ${_PYTHON_VERSION} < 38
+DEPENDS+=      ${PYPKGPREFIX}-importlib-metadata>=0.12:../../devel/py-importlib-metadata
+USE_TOOLS+=    bash:build
+       cd ${DESTDIR}${PREFIX}/bin && \
+       ${MV} py.test py.test-${PYVERSSUFFIX} && \
+       ${MV} pytest pytest-${PYVERSSUFFIX} || ${TRUE}
+       cd ${WRKSRC}/testing && pytest-${PYVERSSUFFIX}
+.include "../../lang/python/"
+.include "../../mk/"
diff -r dd9cf7f63ee1 -r bc7fe7be1039 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 $
diff -r dd9cf7f63ee1 -r bc7fe7be1039 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