Lines 3-11
Link Here
|
3 |
PORTNAME= flask-restplus |
3 |
PORTNAME= flask-restplus |
4 |
PORTVERSION= 0.8.6 |
4 |
PORTVERSION= 0.8.6 |
5 |
CATEGORIES= www python |
5 |
CATEGORIES= www python |
6 |
MASTER_SITES= CHEESESHOP |
6 |
MASTER_SITES= CHEESESHOP \ |
|
|
7 |
https://raw.githubusercontent.com/noirbizarre/${PORTNAME}/9bef667/tests/:json |
7 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
8 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
8 |
PKGNAMESUFFIX= 08 |
9 |
PKGNAMESUFFIX= 08 |
|
|
10 |
DISTFILES= ${EXTRACT_ONLY} \ |
11 |
postman-v1.schema.json:json |
12 |
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} |
9 |
|
13 |
|
10 |
MAINTAINER= andrej@ebert.su |
14 |
MAINTAINER= andrej@ebert.su |
11 |
COMMENT= Extension for Flask that adds support for quickly building REST APIs |
15 |
COMMENT= Extension for Flask that adds support for quickly building REST APIs |
Lines 18-29
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Flask-RESTful>=0.3.2:www/py-flask-restful \
Link Here
|
18 |
${PYTHON_PKGNAMEPREFIX}jsonschema>0:devel/py-jsonschema \ |
22 |
${PYTHON_PKGNAMEPREFIX}jsonschema>0:devel/py-jsonschema \ |
19 |
${PYTHON_PKGNAMEPREFIX}pytz>0:devel/py-pytz \ |
23 |
${PYTHON_PKGNAMEPREFIX}pytz>0:devel/py-pytz \ |
20 |
${PYTHON_PKGNAMEPREFIX}aniso8601>=0.82:devel/py-aniso8601 |
24 |
${PYTHON_PKGNAMEPREFIX}aniso8601>=0.82:devel/py-aniso8601 |
21 |
|
25 |
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}blinker>0:devel/py-blinker \ |
22 |
TEST_DEPENDS:= ${RUN_DEPENDS} \ |
|
|
23 |
${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose \ |
26 |
${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose \ |
24 |
${PYTHON_PKGNAMEPREFIX}rednose>0:devel/py-rednose \ |
27 |
${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest |
25 |
${PYTHON_PKGNAMEPREFIX}blinker>0:devel/py-blinker \ |
|
|
26 |
${PYTHON_PKGNAMEPREFIX}tzlocal>0:devel/py-tzlocal |
27 |
|
28 |
|
28 |
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}flask-restplus |
29 |
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}flask-restplus |
29 |
PORTSCOUT= limit:^0\.8 |
30 |
PORTSCOUT= limit:^0\.8 |
Lines 32-38
USES= python
Link Here
|
32 |
USE_PYTHON= autoplist distutils |
33 |
USE_PYTHON= autoplist distutils |
33 |
NO_ARCH= yes |
34 |
NO_ARCH= yes |
34 |
|
35 |
|
|
|
36 |
.include <bsd.port.pre.mk> |
37 |
|
38 |
.if ${PYTHON_REL} < 3300 |
39 |
TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock |
40 |
.endif |
41 |
|
42 |
post-extract: |
43 |
@${LN} -fs ${_DISTDIR}/postman-v1.schema.json ${WRKSRC}/tests/ |
44 |
|
35 |
do-test: |
45 |
do-test: |
36 |
@(cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test) |
46 |
@${RM} -fr ${TEST_WRKSRC}/build/lib/tests |
|
|
47 |
@(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest) |
37 |
|
48 |
|
38 |
.include <bsd.port.mk> |
49 |
.include <bsd.port.post.mk> |