Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 May 2019 12:04:34 +0000 (UTC)
From:      Kubilay Kocak <koobs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r501650 - head/devel/py-pytest
Message-ID:  <201905141204.x4EC4YRM007158@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: koobs
Date: Tue May 14 12:04:34 2019
New Revision: 501650
URL: https://svnweb.freebsd.org/changeset/ports/501650

Log:
  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)

Modified:
  head/devel/py-pytest/Makefile
  head/devel/py-pytest/distinfo
  head/devel/py-pytest/pkg-descr

Modified: head/devel/py-pytest/Makefile
==============================================================================
--- head/devel/py-pytest/Makefile	Tue May 14 11:38:43 2019	(r501649)
+++ head/devel/py-pytest/Makefile	Tue May 14 12:04:34 2019	(r501650)
@@ -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 <bsd.port.pre.mk>
 
-.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
 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 <bsd.port.post.mk>

Modified: head/devel/py-pytest/distinfo
==============================================================================
--- head/devel/py-pytest/distinfo	Tue May 14 11:38:43 2019	(r501649)
+++ head/devel/py-pytest/distinfo	Tue May 14 12:04:34 2019	(r501650)
@@ -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

Modified: head/devel/py-pytest/pkg-descr
==============================================================================
--- head/devel/py-pytest/pkg-descr	Tue May 14 11:38:43 2019	(r501649)
+++ head/devel/py-pytest/pkg-descr	Tue May 14 12:04:34 2019	(r501650)
@@ -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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905141204.x4EC4YRM007158>