From 752bc8465cce71b29880fbaf789d29b7c8043f66 Mon Sep 17 00:00:00 2001 From: Kubilay Kocak Date: Tue, 14 May 2019 12:04:34 +0000 Subject: [PATCH] devel/py-pytest: Update to 4.5.0 Changelog: https://github.com/pytest-dev/pytest/blob/4.5.0/CHANGELOG.rst Approved by: koobs (python, maintainer) --- devel/py-pytest/Makefile | 25 ++++++++++++------------- devel/py-pytest/distinfo | 6 +++--- devel/py-pytest/pkg-descr | 12 ++++-------- 3 files changed, 19 insertions(+), 24 deletions(-) diff --git a/devel/py-pytest/Makefile b/devel/py-pytest/Makefile index ce66adcd66e8..ccc60f62baa0 100644 --- a/devel/py-pytest/Makefile +++ b/devel/py-pytest/Makefile @@ -1,8 +1,7 @@ # $FreeBSD$ PORTNAME= pytest -PORTVERSION= 4.3.1 -PORTREVISION= 3 +PORTVERSION= 4.5.0 CATEGORIES= devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -16,28 +15,29 @@ LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=0:devel/py-setuptools_scm@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}atomicwrites>=1.0:devel/py-atomicwrites@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}attrs>=17.4.0:devel/py-attrs@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}pluggy>=0.7:devel/py-pluggy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pluggy>=0.9,<1.0:devel/py-pluggy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}py>=1.5.0:devel/py-py@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}six>=1.10.0:devel/py-six@${PY_FLAVOR} + ${PYTHON_PKGNAMEPREFIX}six>=1.10.0:devel/py-six@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wcwidth>0:devel/py-wcwidth@${PY_FLAVOR} TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}pexpect>0:misc/py-pexpect@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytest-xdist>=1.13:devel/py-pytest-xdist@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}hypothesis>=3.56:devel/py-hypothesis@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}decorator>0:devel/py-decorator@${PY_FLAVOR} + ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} USES= python USE_PYTHON= autoplist concurrent distutils NO_ARCH= yes +py27_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR} + .include -.if ${PYTHON_VER} >= 3.4 +.if ${PYTHON_VER} > 2.7 RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}more-itertools>=4.0.0:devel/py-more-itertools@${PY_FLAVOR} .else -RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}more-itertools5>=4.0.0:devel/py-more-itertools5@${PY_FLAVOR} +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}more-itertools5>=4.0.0,<6.0.0:devel/py-more-itertools5@${PY_FLAVOR} .endif .if ${PYTHON_VER} < 3.0 @@ -48,11 +48,10 @@ RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}funcsigs>=0:devel/py-funcsigs@${PY_FLAVOR} RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pathlib2>=2.2.0:devel/py-pathlib2@${PY_FLAVOR} .endif -.if ${PYTHON_VER} == 2.7 -TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR} -.endif +# test_cache_failure_warns fails +# https://github.com/pytest-dev/pytest/issues/1845 do-test: - @(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest) + @(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs -k 'not test_cache_failure_warns') .include diff --git a/devel/py-pytest/distinfo b/devel/py-pytest/distinfo index 9e429a28eb49..24a260bee58f 100644 --- a/devel/py-pytest/distinfo +++ b/devel/py-pytest/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1553587773 -SHA256 (pytest-4.3.1.tar.gz) = 592eaa2c33fae68c7d75aacf042efc9f77b27c08a6224a4f59beab8d9a420523 -SIZE (pytest-4.3.1.tar.gz) = 917608 +TIMESTAMP = 1557834909 +SHA256 (pytest-4.5.0.tar.gz) = 1a8aa4fa958f8f451ac5441f3ac130d9fc86ea38780dd2715e6d5c5882700b24 +SIZE (pytest-4.5.0.tar.gz) = 943607 diff --git a/devel/py-pytest/pkg-descr b/devel/py-pytest/pkg-descr index 86f4ed69c46a..fe225513bc2a 100644 --- a/devel/py-pytest/pkg-descr +++ b/devel/py-pytest/pkg-descr @@ -3,14 +3,10 @@ support complex functional testing. Features: - * Auto-discovery of test modules and functions * Detailed info on failing assert statements - * Modular fixtures for managing small or parametrized long-lived test - resources - * Multi-paradigm support: you can use pytest to run test suites based on - unittest (or trial), nose - * Single-source compatibility from Python2.6 all the way up to Python3.4, - PyPy-2.3, (jython-2.5 untested) - * Many external plugins + * Auto-discovery of test modules and functions + * Modular fixtures to manage small or parametrized long-lived test resources + * Can run unittest (or trial), nose test suites out of the box + * Rich plugin architecture, with over 315+ external plugins WWW: https://docs.pytest.org/en/latest/