Mon Aug 27 06:06:02 2018 UTC ()
py-test: updated to 3.7.3

pytest 3.7.3:

Bug Fixes
* Fixtures during teardown can again use capsys and capfd to inspect output captured during tests.
* Fix collection of tests from __init__.py files if they match the python_files configuration option.
* Fix issue where teardown of fixtures of consecutive sub-packages were executed once, at the end of the outer package.
* Fix bug where --show-capture=no option would still show logs printed during fixture teardown.
* Fix stdout/stderr not getting captured when real-time cli logging is active.
* Fix collection error when specifying test functions directly in the command line using test.py::test syntax together with --doctest-modules.
* Fix bugs where unicode arguments could not be passed to testdir.runpytest on Python 2.
* Fix double collection of tests within packages when the filename starts with a capital letter.


(adam)
diff -r1.54 -r1.55 pkgsrc/devel/py-test/Makefile
diff -r1.50 -r1.51 pkgsrc/devel/py-test/distinfo

cvs diff -r1.54 -r1.55 pkgsrc/devel/py-test/Makefile (switch to unified diff)

--- pkgsrc/devel/py-test/Makefile 2018/08/19 08:12:20 1.54
+++ pkgsrc/devel/py-test/Makefile 2018/08/27 06:06:02 1.55
@@ -1,44 +1,44 @@ @@ -1,44 +1,44 @@
1# $NetBSD: Makefile,v 1.54 2018/08/19 08:12:20 adam Exp $ 1# $NetBSD: Makefile,v 1.55 2018/08/27 06:06:02 adam Exp $
2 2
3DISTNAME= pytest-3.7.2 3DISTNAME= pytest-3.7.3
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//}
5CATEGORIES= devel python 5CATEGORIES= devel python
6MASTER_SITES= ${MASTER_SITE_PYPI:=p/pytest/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=p/pytest/}
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= http://pytest.org/ 9HOMEPAGE= http://pytest.org/
10COMMENT= Python testing tool 10COMMENT= Python testing tool
11LICENSE= mit 11LICENSE= mit
12 12
13DEPENDS+= ${PYPKGPREFIX}-atomicwrites>=1.0:../../devel/py-atomicwrites 13DEPENDS+= ${PYPKGPREFIX}-atomicwrites>=1.0:../../devel/py-atomicwrites
14DEPENDS+= ${PYPKGPREFIX}-attrs>=17.4.0:../../devel/py-attrs 14DEPENDS+= ${PYPKGPREFIX}-attrs>=17.4.0:../../devel/py-attrs
15DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat 15DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
16DEPENDS+= ${PYPKGPREFIX}-more-itertools>=4.0.0:../../devel/py-more-itertools 16DEPENDS+= ${PYPKGPREFIX}-more-itertools>=4.0.0:../../devel/py-more-itertools
17DEPENDS+= ${PYPKGPREFIX}-pluggy>=0.7:../../devel/py-pluggy 17DEPENDS+= ${PYPKGPREFIX}-pluggy>=0.7:../../devel/py-pluggy
18DEPENDS+= ${PYPKGPREFIX}-py>=1.5.0:../../devel/py-py 18DEPENDS+= ${PYPKGPREFIX}-py>=1.5.0:../../devel/py-py
19DEPENDS+= ${PYPKGPREFIX}-six>=1.10.0:../../lang/py-six 19DEPENDS+= ${PYPKGPREFIX}-six>=1.10.0:../../lang/py-six
20BUILD_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm 20BUILD_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
21TEST_DEPENDS+= ${PYPKGPREFIX}-hypothesis-[0-9]*:../../devel/py-hypothesis 21TEST_DEPENDS+= ${PYPKGPREFIX}-hypothesis-[0-9]*:../../devel/py-hypothesis
22TEST_DEPENDS+= ${PYPKGPREFIX}-yaml-[0-9]*:../../textproc/py-yaml 22TEST_DEPENDS+= ${PYPKGPREFIX}-yaml-[0-9]*:../../textproc/py-yaml
23 23
24.include "../../lang/python/pyversion.mk" 24.include "../../lang/python/pyversion.mk"
25.if "${PYPKGPREFIX}" == "py27" 25.if "${PYPKGPREFIX}" == "py27"
26DEPENDS+= ${PYPKGPREFIX}-funcsigs-[0-9]*:../../devel/py-funcsigs 26DEPENDS+= ${PYPKGPREFIX}-funcsigs-[0-9]*:../../devel/py-funcsigs
27.endif 27.endif
28 28
29USE_LANGUAGES= # none 29USE_LANGUAGES= # none
30USE_TOOLS+= bash:build 30USE_TOOLS+= bash:build
31 31
32REPLACE_PYTHON+= _pytest/standalonetemplate.py 32REPLACE_PYTHON+= _pytest/standalonetemplate.py
33 33
34post-install: 34post-install:
35 cd ${DESTDIR}${PREFIX}/bin && \ 35 cd ${DESTDIR}${PREFIX}/bin && \
36 ${MV} py.test py.test-${PYVERSSUFFIX} && \ 36 ${MV} py.test py.test-${PYVERSSUFFIX} && \
37 ${MV} pytest pytest-${PYVERSSUFFIX} || ${TRUE} 37 ${MV} pytest pytest-${PYVERSSUFFIX} || ${TRUE}
38 38
39do-test: 39do-test:
40 cd ${WRKSRC}/testing && pytest-${PYVERSSUFFIX} 40 cd ${WRKSRC}/testing && pytest-${PYVERSSUFFIX}
41 41
42.include "../../lang/python/application.mk" 42.include "../../lang/python/application.mk"
43.include "../../lang/python/egg.mk" 43.include "../../lang/python/egg.mk"
44.include "../../mk/bsd.pkg.mk" 44.include "../../mk/bsd.pkg.mk"

cvs diff -r1.50 -r1.51 pkgsrc/devel/py-test/distinfo (switch to unified diff)

--- pkgsrc/devel/py-test/distinfo 2018/08/19 08:12:20 1.50
+++ pkgsrc/devel/py-test/distinfo 2018/08/27 06:06:02 1.51
@@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
1$NetBSD: distinfo,v 1.50 2018/08/19 08:12:20 adam Exp $ 1$NetBSD: distinfo,v 1.51 2018/08/27 06:06:02 adam Exp $
2 2
3SHA1 (pytest-3.7.2.tar.gz) = c89622fdc403dcc287040ac5a99d1dd321b3ade1 3SHA1 (pytest-3.7.3.tar.gz) = 075777ddce703186b416772aba77a979cedfbc2f
4RMD160 (pytest-3.7.2.tar.gz) = 507f75890f2168b2b50b25f0ce34525a04ad3f96 4RMD160 (pytest-3.7.3.tar.gz) = 2f27841b8409850ece5684bd5207ccb3c94eb966
5SHA512 (pytest-3.7.2.tar.gz) = 569a67a0e5090936b0d5d53e8f1582c1dab5fdfd596c47c68b2487ad79af502a942ced0d876569f37ce5a49721c050b5dfc7c0d95b31cf61a73c4f82237b4611 5SHA512 (pytest-3.7.3.tar.gz) = a3743a07d345da1829a547f256b22a6f29e6afb13d1b66ff1c309ef02508eb228952ef54bd496476bdffe3a5fc7927accdcb452ec70749a5659f656a14119037
6Size (pytest-3.7.2.tar.gz) = 847992 bytes 6Size (pytest-3.7.3.tar.gz) = 850782 bytes