# $FreeBSD: head/devel/py-pytest/Makefile 478632 2018-08-31 23:48:20Z sunpoet $ PORTNAME= pytest PORTVERSION= 3.6.4 CATEGORIES= devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= python@FreeBSD.org COMMENT= Simple powerful testing with Python LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=0:devel/py-setuptools_scm RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}atomicwrites>=1.0:devel/py-atomicwrites \ ${PYTHON_PKGNAMEPREFIX}attrs>=17.4.0:devel/py-attrs \ ${PYTHON_PKGNAMEPREFIX}more-itertools>=4.0.0:devel/py-more-itertools \ ${PYTHON_PKGNAMEPREFIX}pluggy>=0.5:devel/py-pluggy \ ${PYTHON_PKGNAMEPREFIX}py>=1.5.0:devel/py-py \ ${PYTHON_PKGNAMEPREFIX}six>=1.10.0:devel/py-six TEST_DEPENDS= bash:shells/bash \ ${PYTHON_PKGNAMEPREFIX}hypothesis>0:devel/py-hypothesis \ ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock \ ${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose \ ${PYTHON_PKGNAMEPREFIX}pexpect>0:misc/py-pexpect \ ${PYTHON_PKGNAMEPREFIX}pytest-xdist>=1.13:devel/py-pytest-xdist \ ${PYTHON_PKGNAMEPREFIX}twisted>0:devel/py-twisted USES= python USE_PYTHON= autoplist concurrent distutils NO_ARCH= yes do-test: @(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest) .include .if ${PYTHON_REL} < 3000 RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}funcsigs>=0:devel/py-funcsigs .endif .include