svn commit: r496893 - head/devel/py-pytest
Kubilay Kocak
koobs at FreeBSD.org
Tue Mar 26 12:54:17 UTC 2019
Author: koobs
Date: Tue Mar 26 12:54:15 2019
New Revision: 496893
URL: https://svnweb.freebsd.org/changeset/ports/496893
Log:
devel/py-pytest: Update to 4.3.1
- Add a number of optional test dependencies to un-skip more tests
- Use PYTHON_VER instead of PYTHON_REL to match conditionals to
upstream spec.
- Move mock to a conditional (2.7) dependency (per upstream spec)
Changelog:
https://github.com/pytest-dev/pytest/blob/4.3.1/CHANGELOG.rst
PR: 235339
Submitted by: John W. O'Brien <john saltant com> (with changes)
Approved by: koobs (python, maintainer)
Modified:
head/devel/py-pytest/Makefile
head/devel/py-pytest/distinfo
Modified: head/devel/py-pytest/Makefile
==============================================================================
--- head/devel/py-pytest/Makefile Tue Mar 26 12:09:48 2019 (r496892)
+++ head/devel/py-pytest/Makefile Tue Mar 26 12:54:15 2019 (r496893)
@@ -1,7 +1,7 @@
# $FreeBSD$
PORTNAME= pytest
-PORTVERSION= 3.6.4
+PORTVERSION= 4.3.1
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -16,29 +16,37 @@ BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=
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}more-itertools>=4.0.0:devel/py-more-itertools@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}pluggy>=0.5:devel/py-pluggy@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pluggy>=0.7: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}
-TEST_DEPENDS= bash:shells/bash \
- ${PYTHON_PKGNAMEPREFIX}hypothesis>0:devel/py-hypothesis@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose@${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}twisted>0:devel/py-twisted@${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}
USES= python
USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
-do-test:
- @(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest)
-
.include <bsd.port.pre.mk>
-.if ${PYTHON_REL} < 3000
+.if ${PYTHON_REL} < 3.0
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}funcsigs>=0:devel/py-funcsigs@${PY_FLAVOR}
.endif
+
+.if ${PYTHON_VER} < 3.6
+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
+
+do-test:
+ @(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest)
.include <bsd.port.post.mk>
Modified: head/devel/py-pytest/distinfo
==============================================================================
--- head/devel/py-pytest/distinfo Tue Mar 26 12:09:48 2019 (r496892)
+++ head/devel/py-pytest/distinfo Tue Mar 26 12:54:15 2019 (r496893)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1535728734
-SHA256 (pytest-3.6.4.tar.gz) = 341ec10361b64a24accaec3c7ba5f7d5ee1ca4cebea30f76fad3dd12db9f0541
-SIZE (pytest-3.6.4.tar.gz) = 832791
+TIMESTAMP = 1553587773
+SHA256 (pytest-4.3.1.tar.gz) = 592eaa2c33fae68c7d75aacf042efc9f77b27c08a6224a4f59beab8d9a420523
+SIZE (pytest-4.3.1.tar.gz) = 917608
More information about the svn-ports-all
mailing list