pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/py-test



Module Name:    pkgsrc
Committed By:   adam
Date:           Tue Nov 28 09:04:56 UTC 2017

Modified Files:
        pkgsrc/devel/py-test: Makefile PLIST distinfo

Log Message:
py-test: updated to 3.3.0

Pytest 3.3.0:

Deprecations and Removals
-------------------------
Pytest no longer supports Python 2.6 and 3.3. Those Python versions are EOL for some time now and incur maintenance and compatibility costs on the pytest core team, and following up with the rest of 
the community we decided that they will no longer be supported starting on this version. Users which still require those versions should pin pytest to <3.3.
Remove internal _preloadplugins() function. This removal is part of the pytest_namespace() hook deprecation.
Internally change CallSpec2 to have a list of marks instead of a broken mapping of keywords. This removes the keywords attribute of the internal CallSpec2 class.
Remove ParameterSet.deprecated_arg_dict - its not a public api and the lack of the underscore was a naming error.
Remove the internal multi-typed attribute Node._evalskip and replace it with the boolean Node._skipped_by_mark.

Features
--------
pytest_fixture_post_finalizer hook can now receive a request argument.
Replace the old introspection code in compat.py that determines the available arguments of fixtures with inspect.signature on Python 3 and funcsigs.signature on Python 2. This should respect 
__signature__ declarations on functions.
Report tests with global pytestmark variable only once.
Now pytest displays the total progress percentage while running tests. The previous output style can be set by configuring the console_output_style setting to classic.
Match warns signature to raises by adding match keyword.
Pytest now captures and displays output from the standard logging module. The user can control the logging level to be captured by specifying options in pytest.ini, the command line and also during 
individual tests using markers. Also, a caplog fixture is available that enables users to test the captured log during specific tests (similar to capsys for example). For more information, please see 
the logging docs. This feature was introduced by merging the popular pytest-catchlog plugin, thanks to Thomas Hisch. Be advised that during the merging the backward compatibility interface with the 
defunct pytest-capturelog has been dropped.
Add allow_module_level kwarg to pytest.skip(), enabling to skip the whole module.
Allow setting file_or_dir, -c, and -o in PYTEST_ADDOPTS.
Return stdout/stderr capture results as a namedtuple, so out and ``err`` can be accessed by attribute.
Add capfdbinary, a version of capfd which returns bytes from readouterr().
Add capsysbinary a version of capsys which returns bytes from readouterr().
Implement feature to skip setup.py files when run with --doctest-modules.


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 pkgsrc/devel/py-test/Makefile
cvs rdiff -u -r1.8 -r1.9 pkgsrc/devel/py-test/PLIST
cvs rdiff -u -r1.36 -r1.37 pkgsrc/devel/py-test/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/py-test/Makefile
diff -u pkgsrc/devel/py-test/Makefile:1.39 pkgsrc/devel/py-test/Makefile:1.40
--- pkgsrc/devel/py-test/Makefile:1.39  Wed Nov 15 14:14:48 2017
+++ pkgsrc/devel/py-test/Makefile       Tue Nov 28 09:04:56 2017
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.39 2017/11/15 14:14:48 adam Exp $
+# $NetBSD: Makefile,v 1.40 2017/11/28 09:04:56 adam Exp $
 
-DISTNAME=      pytest-3.2.5
+DISTNAME=      pytest-3.3.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pytest/}
@@ -10,12 +10,20 @@ HOMEPAGE=   http://pytest.org/
 COMMENT=       Python testing tool
 LICENSE=       mit
 
-DEPENDS+=      ${PYPKGPREFIX}-py>=1.4.29:../../devel/py-py
+DEPENDS+=      ${PYPKGPREFIX}-attrs>=17.2.0:../../devel/py-attrs
 DEPENDS+=      ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
+DEPENDS+=      ${PYPKGPREFIX}-pluggy>=0.5:../../devel/py-pluggy
+DEPENDS+=      ${PYPKGPREFIX}-py>=1.4.29:../../devel/py-py
+DEPENDS+=      ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
 BUILD_DEPENDS+=        ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
 # TEST_DEPENDS
-BUILD_DEPENDS+=        ${PYPKGPREFIX}-yaml-[0-9]*:../../textproc/py-yaml
 BUILD_DEPENDS+=        ${PYPKGPREFIX}-hypothesis-[0-9]*:../../devel/py-hypothesis
+BUILD_DEPENDS+=        ${PYPKGPREFIX}-yaml-[0-9]*:../../textproc/py-yaml
+
+.include "../../lang/python/pyversion.mk"
+.if "${PYPKGPREFIX}" == "py27"
+DEPENDS+=      ${PYPKGPREFIX}-funcsigs-[0-9]*:../../devel/py-funcsigs
+.endif
 
 USE_LANGUAGES= # none
 USE_TOOLS+=    bash:build

Index: pkgsrc/devel/py-test/PLIST
diff -u pkgsrc/devel/py-test/PLIST:1.8 pkgsrc/devel/py-test/PLIST:1.9
--- pkgsrc/devel/py-test/PLIST:1.8      Wed Nov 15 07:43:41 2017
+++ pkgsrc/devel/py-test/PLIST  Tue Nov 28 09:04:56 2017
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.8 2017/11/15 07:43:41 adam Exp $
+@comment $NetBSD: PLIST,v 1.9 2017/11/28 09:04:56 adam Exp $
 bin/py.test-${PYVERSSUFFIX}
 bin/pytest-${PYVERSSUFFIX}
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
@@ -26,9 +26,6 @@ ${PYSITELIB}/_pytest/_code/code.pyo
 ${PYSITELIB}/_pytest/_code/source.py
 ${PYSITELIB}/_pytest/_code/source.pyc
 ${PYSITELIB}/_pytest/_code/source.pyo
-${PYSITELIB}/_pytest/_pluggy.py
-${PYSITELIB}/_pytest/_pluggy.pyc
-${PYSITELIB}/_pytest/_pluggy.pyo
 ${PYSITELIB}/_pytest/_version.py
 ${PYSITELIB}/_pytest/_version.pyc
 ${PYSITELIB}/_pytest/_version.pyo
@@ -80,6 +77,9 @@ ${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
@@ -137,12 +137,6 @@ ${PYSITELIB}/_pytest/tmpdir.pyo
 ${PYSITELIB}/_pytest/unittest.py
 ${PYSITELIB}/_pytest/unittest.pyc
 ${PYSITELIB}/_pytest/unittest.pyo
-${PYSITELIB}/_pytest/vendored_packages/__init__.py
-${PYSITELIB}/_pytest/vendored_packages/__init__.pyc
-${PYSITELIB}/_pytest/vendored_packages/__init__.pyo
-${PYSITELIB}/_pytest/vendored_packages/pluggy.py
-${PYSITELIB}/_pytest/vendored_packages/pluggy.pyc
-${PYSITELIB}/_pytest/vendored_packages/pluggy.pyo
 ${PYSITELIB}/_pytest/warnings.py
 ${PYSITELIB}/_pytest/warnings.pyc
 ${PYSITELIB}/_pytest/warnings.pyo

Index: pkgsrc/devel/py-test/distinfo
diff -u pkgsrc/devel/py-test/distinfo:1.36 pkgsrc/devel/py-test/distinfo:1.37
--- pkgsrc/devel/py-test/distinfo:1.36  Wed Nov 15 14:14:48 2017
+++ pkgsrc/devel/py-test/distinfo       Tue Nov 28 09:04:56 2017
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.36 2017/11/15 14:14:48 adam Exp $
+$NetBSD: distinfo,v 1.37 2017/11/28 09:04:56 adam Exp $
 
-SHA1 (pytest-3.2.5.tar.gz) = 31b53382c861164aaa514f7c32a30019b53cc4a2
-RMD160 (pytest-3.2.5.tar.gz) = 13dbd9a2b499bbdea62447f1407b8a2ae33cbfa9
-SHA512 (pytest-3.2.5.tar.gz) = 37fb9a3b13a517062e0e37f0988cb5cc9b7b9834ccf1c21b1f2ace25ccd977668f27011d5b5b0fdbf5a23135c29054957f36baff643d797250d55ac267a578a3
-Size (pytest-3.2.5.tar.gz) = 792397 bytes
+SHA1 (pytest-3.3.0.tar.gz) = cd915552e569c65cfd8bff78e08e79f43bf748d8
+RMD160 (pytest-3.3.0.tar.gz) = f924cdcbb87ff787b974f253f48976baf195c196
+SHA512 (pytest-3.3.0.tar.gz) = e4c1c0decb840490ed73df21d53a7719782ea12c4d6085919c834df33839297b28ac929d852281538c347aa6264a21fefba025aaf31a7ad90b88e0b83d50af99
+Size (pytest-3.3.0.tar.gz) = 799676 bytes



Home | Main Index | Thread Index | Old Index