Changeset View
Changeset View
Standalone View
Standalone View
devel/py-pytest-timeout/Makefile
# Created by: Fukang Chen <loader@FreeBSD.org> | # Created by: Fukang Chen <loader@FreeBSD.org> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= pytest-timeout | PORTNAME= pytest-timeout | ||||
PORTVERSION= 0.4 | PORTVERSION= 1.2.0 | ||||
CATEGORIES= devel python | CATEGORIES= devel python | ||||
MASTER_SITES= CHEESESHOP | MASTER_SITES= CHEESESHOP | ||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} | PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} | ||||
MAINTAINER= loader@FreeBSD.org | MAINTAINER= loader@FreeBSD.org | ||||
COMMENT= Pytest plugin to abort hanging tests | COMMENT= Pytest plugin to abort hanging tests | ||||
LICENSE= MIT | LICENSE= MIT | ||||
LICENSE_FILE= ${WRKSRC}/LICENSE | LICENSE_FILE= ${WRKSRC}/LICENSE | ||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=2.6.4:devel/py-pytest | RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=2.8.0:devel/py-pytest | ||||
TEST_DEPENDS:= ${RUN_DEPENDS} | |||||
koobs: As far as I'm aware, `:=` can result in unintended *_DEPENDS values. It has been recommended in… | |||||
NO_ARCH= yes | |||||
USES= python | USES= python | ||||
USE_PYTHON= autoplist distutils | USE_PYTHON= autoplist distutils | ||||
TEST_ENV+= PYTHONPATH=${TEST_WRKSRC} | |||||
do-test: | |||||
@(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest) | |||||
Not Done Inline ActionsAs far as I'm aware pytest correctly sets up the PYTHONPATH to be the directory within which the tests are run. Id look at why this is required (and try to remove it) as it may be indicative of incorrectly running/invoking the tests koobs: As far as I'm aware pytest correctly sets up the PYTHONPATH to be the directory within which… | |||||
Not Done Inline ActionsIt runs tests in new subprocesses like this, most of them will fail if the port is not installed yet. pytest tries to reads the entry points in ${PYTHON_SITELIBDIR} to load the plugins. /usr/local/bin/python2.7 /usr/local/lib/python2.7/site-packages/pytest.py --basetemp=/tmp/pytest-of-root/pytest-1/testdir/test_fix_setup5/runpytest-0 --timeout=1 --timeout_method=thread loader: It runs tests in new subprocesses like this, most of them will fail if the port is not… | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> |
As far as I'm aware, := can result in unintended *_DEPENDS values. It has been recommended in the past to just duplicate TEST_DEPENDS entries ala: