mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-01 10:59:55 +00:00
www/py-flask-restplus{,08}: fix |make test| via pytest
- Switch to USE_GITHUB as postman-v1.schema.json isn't included in PyPI tarball PR: 211174 Approved by: Andrej Ebert <andrej@ebert.su> (maintainer)
This commit is contained in:
parent
31b51cfce4
commit
2e450c54c3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=418812
@ -3,7 +3,6 @@
|
||||
PORTNAME= flask-restplus
|
||||
PORTVERSION= 0.9.2
|
||||
CATEGORIES= www python
|
||||
MASTER_SITES= CHEESESHOP
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
||||
MAINTAINER= andrej@ebert.su
|
||||
@ -17,20 +16,27 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Flask>=0.8:www/py-flask \
|
||||
${PYTHON_PKGNAMEPREFIX}jsonschema>0:devel/py-jsonschema \
|
||||
${PYTHON_PKGNAMEPREFIX}pytz>0:devel/py-pytz \
|
||||
${PYTHON_PKGNAMEPREFIX}aniso8601>=0.82:devel/py-aniso8601
|
||||
|
||||
TEST_DEPENDS:= ${RUN_DEPENDS} \
|
||||
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}blinker>0:devel/py-blinker \
|
||||
${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose \
|
||||
${PYTHON_PKGNAMEPREFIX}rednose>0:devel/py-rednose \
|
||||
${PYTHON_PKGNAMEPREFIX}blinker>0:devel/py-blinker \
|
||||
${PYTHON_PKGNAMEPREFIX}tzlocal>0:devel/py-tzlocal
|
||||
${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest
|
||||
|
||||
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}flask-restplus08
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= noirbizarre
|
||||
|
||||
USES= python
|
||||
USE_PYTHON= autoplist distutils
|
||||
NO_ARCH= yes
|
||||
|
||||
do-test:
|
||||
@(cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test)
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.if ${PYTHON_REL} < 3300
|
||||
TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock
|
||||
.endif
|
||||
|
||||
do-test:
|
||||
@${RM} -fr ${TEST_WRKSRC}/build/lib/tests
|
||||
@(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest)
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1468167697
|
||||
SHA256 (flask-restplus-0.9.2.tar.gz) = c4313097a673ef2cffabceb44b6fdd03132ee5e7ab34d0289c37af12a3d11186
|
||||
SIZE (flask-restplus-0.9.2.tar.gz) = 868988
|
||||
SHA256 (noirbizarre-flask-restplus-0.9.2_GH0.tar.gz) = df87a84ec65e0b35cc9e4f98f21358087468761f45a27f2ca74583439bbb3114
|
||||
SIZE (noirbizarre-flask-restplus-0.9.2_GH0.tar.gz) = 255824
|
||||
|
@ -3,7 +3,6 @@
|
||||
PORTNAME= flask-restplus
|
||||
PORTVERSION= 0.8.6
|
||||
CATEGORIES= www python
|
||||
MASTER_SITES= CHEESESHOP
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
PKGNAMESUFFIX= 08
|
||||
|
||||
@ -18,21 +17,28 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Flask-RESTful>=0.3.2:www/py-flask-restful \
|
||||
${PYTHON_PKGNAMEPREFIX}jsonschema>0:devel/py-jsonschema \
|
||||
${PYTHON_PKGNAMEPREFIX}pytz>0:devel/py-pytz \
|
||||
${PYTHON_PKGNAMEPREFIX}aniso8601>=0.82:devel/py-aniso8601
|
||||
|
||||
TEST_DEPENDS:= ${RUN_DEPENDS} \
|
||||
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}blinker>0:devel/py-blinker \
|
||||
${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose \
|
||||
${PYTHON_PKGNAMEPREFIX}rednose>0:devel/py-rednose \
|
||||
${PYTHON_PKGNAMEPREFIX}blinker>0:devel/py-blinker \
|
||||
${PYTHON_PKGNAMEPREFIX}tzlocal>0:devel/py-tzlocal
|
||||
${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest
|
||||
|
||||
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}flask-restplus
|
||||
PORTSCOUT= limit:^0\.8
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= noirbizarre
|
||||
|
||||
USES= python
|
||||
USE_PYTHON= autoplist distutils
|
||||
NO_ARCH= yes
|
||||
|
||||
do-test:
|
||||
@(cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test)
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.if ${PYTHON_REL} < 3300
|
||||
TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock
|
||||
.endif
|
||||
|
||||
do-test:
|
||||
@${RM} -fr ${TEST_WRKSRC}/build/lib/tests
|
||||
@(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest)
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1468851260
|
||||
SHA256 (flask-restplus-0.8.6.tar.gz) = 3bb76cc156b9a09da62396d82b29fa31e4f27cccf79528538fe7155cf2785593
|
||||
SIZE (flask-restplus-0.8.6.tar.gz) = 1077073
|
||||
SHA256 (noirbizarre-flask-restplus-0.8.6_GH0.tar.gz) = 5f10e1391e99216f74cc5053c421bfed3ccdc2ef16569bf4a31c01bfebff74c6
|
||||
SIZE (noirbizarre-flask-restplus-0.8.6_GH0.tar.gz) = 100249
|
||||
|
Loading…
Reference in New Issue
Block a user