Lines 2-8
Link Here
|
2 |
# $FreeBSD: head/devel/py-tox/Makefile 455210 2017-11-30 15:50:30Z mat $ |
2 |
# $FreeBSD: head/devel/py-tox/Makefile 455210 2017-11-30 15:50:30Z mat $ |
3 |
|
3 |
|
4 |
PORTNAME= tox |
4 |
PORTNAME= tox |
5 |
PORTVERSION= 2.3.1 |
5 |
PORTVERSION= 3.0.0 |
6 |
CATEGORIES= devel python |
6 |
CATEGORIES= devel python |
7 |
MASTER_SITES= CHEESESHOP |
7 |
MASTER_SITES= CHEESESHOP |
8 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
8 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
Lines 13-33
Link Here
|
13 |
LICENSE= MIT |
13 |
LICENSE= MIT |
14 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
14 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
15 |
|
15 |
|
16 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}virtualenv>=1.11.2:devel/py-virtualenv@${FLAVOR} \ |
16 |
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>0:devel/py-setuptools_scm@${PY_FLAVOR} |
17 |
${PYTHON_PKGNAMEPREFIX}py>=1.4.17:devel/py-py@${FLAVOR} \ |
17 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}virtualenv>0:devel/py-virtualenv@${PY_FLAVOR} \ |
18 |
${PYTHON_PKGNAMEPREFIX}pluggy>0:devel/py-pluggy@${FLAVOR} |
18 |
${PYTHON_PKGNAMEPREFIX}pluggy>0:devel/py-pluggy@${PY_FLAVOR} \ |
19 |
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tox>0:devel/py-tox@${FLAVOR} \ |
19 |
${PYTHON_PKGNAMEPREFIX}py>0:devel/py-py@${PY_FLAVOR} \ |
20 |
${PYTHON_PKGNAMEPREFIX}pytest>=2.3.5:devel/py-pytest@${FLAVOR} \ |
20 |
${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} |
21 |
${PYTHON_PKGNAMEPREFIX}pytest-timeout>0:devel/py-pytest-timeout@${FLAVOR} |
21 |
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tox>0:devel/py-tox@${PY_FLAVOR} \ |
|
|
22 |
${PYTHON_PKGNAMEPREFIX}virtualenv>0:devel/py-virtualenv@${PY_FLAVOR} \ |
23 |
${PYTHON_PKGNAMEPREFIX}pluggy>0:devel/py-pluggy@${PY_FLAVOR} \ |
24 |
${PYTHON_PKGNAMEPREFIX}py>0:devel/py-py@${PY_FLAVOR} \ |
25 |
${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \ |
26 |
${PYTHON_PKGNAMEPREFIX}pytest-cov>0:devel/py-pytest-cov@${PY_FLAVOR} \ |
27 |
${PYTHON_PKGNAMEPREFIX}pytest-mock>0:devel/py-pytest-mock@${PY_FLAVOR} \ |
28 |
${PYTHON_PKGNAMEPREFIX}pytest-timeout>0:devel/py-pytest-timeout@${PY_FLAVOR} \ |
29 |
${PYTHON_PKGNAMEPREFIX}pytest-xdist>0:devel/py-pytest-xdist@${PY_FLAVOR} \ |
30 |
${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} |
22 |
|
31 |
|
23 |
USES= python |
32 |
USES= python |
24 |
USE_PYTHON= autoplist concurrent distutils |
33 |
USE_PYTHON= autoplist concurrent distutils |
25 |
|
34 |
|
26 |
NO_ARCH= yes |
35 |
NO_ARCH= yes |
|
|
36 |
PORTDOCS= * |
27 |
|
37 |
|
28 |
.include <bsd.port.pre.mk> |
38 |
OPTIONS_DEFINE= DOCS |
|
|
39 |
DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>0:textproc/py-sphinx@${PY_FLAVOR} \ |
40 |
${PYTHON_PKGNAMEPREFIX}pluggy>0:devel/py-pluggy@${PY_FLAVOR} \ |
41 |
${PYTHON_PKGNAMEPREFIX}py>0:devel/py-py@${PY_FLAVOR} |
42 |
DOCS_VARS= PYDISTUTILS_BUILD_TARGET+="build_sphinx -a -E" |
43 |
|
44 |
TOX_CMD= ${LOCALBASE}/bin/tox-${PYTHON_VER} |
45 |
TOX_TESTS= ${PY_FLAVOR} coverage |
46 |
TOX_PARAMS= -e ${TOX_TESTS:C/\ /,/Wg} |
47 |
|
48 |
post-install-DOCS-on: |
49 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
50 |
@(cd ${WRKSRC}/doc/build/html && \ |
51 |
${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} \ |
52 |
"! -name .buildinfo -and ! -name objects.inv") |
29 |
|
53 |
|
30 |
do-test: |
54 |
do-test: |
31 |
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test |
55 |
@cd ${WRKSRC} && ${TOX_CMD} ${TOX_PARAMS} |
32 |
|
56 |
|
33 |
.include <bsd.port.post.mk> |
57 |
.include <bsd.port.mk> |