Lines 1-12
Link Here
|
1 |
PORTNAME= pytest-mock |
1 |
PORTNAME= pytest-mock |
2 |
PORTVERSION= 1.10.4 |
2 |
PORTVERSION= 3.8.2 |
3 |
CATEGORIES= devel python |
3 |
CATEGORIES= devel python |
4 |
MASTER_SITES= CHEESESHOP |
4 |
MASTER_SITES= CHEESESHOP |
5 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
5 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
6 |
|
6 |
|
7 |
PATCH_SITES= https://github.com/pytest-dev/${PORTNAME}/commit/ |
|
|
8 |
PATCHFILES= b3badafebedea3605c90eb22a68adff2885a8bb0.patch:-p1 |
9 |
|
10 |
MAINTAINER= olgeni@FreeBSD.org |
7 |
MAINTAINER= olgeni@FreeBSD.org |
11 |
COMMENT= Thin wrapper around the mock package for easier use with py.test |
8 |
COMMENT= Thin wrapper around the mock package for easier use with py.test |
12 |
|
9 |
|
Lines 15-27
LICENSE_FILE= ${WRKSRC}/LICENSE
Link Here
|
15 |
|
12 |
|
16 |
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=0:devel/py-setuptools_scm@${PY_FLAVOR} |
13 |
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=0:devel/py-setuptools_scm@${PY_FLAVOR} |
17 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=2.7:devel/py-pytest@${PY_FLAVOR} |
14 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=2.7:devel/py-pytest@${PY_FLAVOR} |
|
|
15 |
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}coverage>0:devel/py-coverage@${PY_FLAVOR} \ |
16 |
${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR} \ |
17 |
${PYTHON_PKGNAMEPREFIX}pytest-asyncio>0:devel/py-pytest-asyncio@${PY_FLAVOR} |
18 |
|
18 |
|
19 |
USES= python:3.6+ |
19 |
USES= python:3.6+ |
20 |
USE_PYTHON= autoplist concurrent distutils |
20 |
USE_PYTHON= autoplist concurrent distutils |
21 |
|
|
|
22 |
NO_ARCH= yes |
21 |
NO_ARCH= yes |
23 |
|
22 |
|
24 |
do-test: |
23 |
do-test: |
25 |
@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs test_pytest_mock.py |
24 |
@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs -o addopts= --assert=plain |
26 |
|
25 |
|
27 |
.include <bsd.port.mk> |
26 |
.include <bsd.port.mk> |