FreeBSD Bugzilla – Attachment 172731 Details for
Bug 211174
www/py-flask-restplus: make test does nothing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
fix: extra distfile version
py-flask-restplus.make-test.diff (text/plain), 5.28 KB, created by
Jan Beich
on 2016-07-19 18:45:21 UTC
(
hide
)
Description:
fix: extra distfile version
Filename:
MIME Type:
Creator:
Jan Beich
Created:
2016-07-19 18:45:21 UTC
Size:
5.28 KB
patch
obsolete
>commit bf7e13c >Author: Jan Beich <jbeich@FreeBSD.org> >Date: Mon Jul 18 17:52:36 2016 +0000 > > www/py-flask-restplus{,08}: fix |make test| > > Invoke pytest and make sure all tests pass by including > tests/postman-v1.schema.json which is missing in PyPI tarball. > > PR: 211174 > Approved by: ? >--- > www/py-flask-restplus/Makefile | 27 +++++++++++++++++++-------- > www/py-flask-restplus/distinfo | 2 ++ > www/py-flask-restplus08/Makefile | 27 +++++++++++++++++++-------- > www/py-flask-restplus08/distinfo | 2 ++ > 4 files changed, 42 insertions(+), 16 deletions(-) > >diff --git www/py-flask-restplus/Makefile www/py-flask-restplus/Makefile >index 9d9ec3d..71c39cd 100644 >--- www/py-flask-restplus/Makefile >+++ www/py-flask-restplus/Makefile >@@ -3,8 +3,12 @@ > PORTNAME= flask-restplus > PORTVERSION= 0.9.2 > CATEGORIES= www python >-MASTER_SITES= CHEESESHOP >+MASTER_SITES= CHEESESHOP \ >+ https://raw.githubusercontent.com/noirbizarre/${PORTNAME}/9bef667/tests/:json > PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} >+DISTFILES= ${EXTRACT_ONLY} \ >+ postman-v1.schema.json:json >+EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} > > MAINTAINER= andrej@ebert.su > COMMENT= Extension for Flask that adds support for quickly building REST APIs >@@ -17,12 +21,9 @@ 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 > >@@ -30,7 +31,17 @@ USES= python > USE_PYTHON= autoplist distutils > NO_ARCH= yes > >+.include <bsd.port.pre.mk> >+ >+.if ${PYTHON_REL} < 3300 >+TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock >+.endif >+ >+post-extract: >+ @${LN} -fs ${_DISTDIR}/postman-v1.schema.json ${WRKSRC}/tests/ >+ > do-test: >- @(cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test) >+ @${RM} -fr ${TEST_WRKSRC}/build/lib/tests >+ @(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest) > >-.include <bsd.port.mk> >+.include <bsd.port.post.mk> >diff --git www/py-flask-restplus/distinfo www/py-flask-restplus/distinfo >index a60bc2f..f974ad6 100644 >--- www/py-flask-restplus/distinfo >+++ www/py-flask-restplus/distinfo >@@ -1,3 +1,5 @@ > TIMESTAMP = 1468167697 > SHA256 (flask-restplus-0.9.2.tar.gz) = c4313097a673ef2cffabceb44b6fdd03132ee5e7ab34d0289c37af12a3d11186 > SIZE (flask-restplus-0.9.2.tar.gz) = 868988 >+SHA256 (postman-v1.schema.json) = 9b444fc527bf9b58ac7d4ef903285f658c600f8328e1009d6f398ae15871f8e6 >+SIZE (postman-v1.schema.json) = 35411 >diff --git www/py-flask-restplus08/Makefile www/py-flask-restplus08/Makefile >index 7bf3c2c..ccde3b6 100644 >--- www/py-flask-restplus08/Makefile >+++ www/py-flask-restplus08/Makefile >@@ -3,9 +3,13 @@ > PORTNAME= flask-restplus > PORTVERSION= 0.8.6 > CATEGORIES= www python >-MASTER_SITES= CHEESESHOP >+MASTER_SITES= CHEESESHOP \ >+ https://raw.githubusercontent.com/noirbizarre/${PORTNAME}/9bef667/tests/:json > PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} > PKGNAMESUFFIX= 08 >+DISTFILES= ${EXTRACT_ONLY} \ >+ postman-v1.schema.json:json >+EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} > > MAINTAINER= andrej@ebert.su > COMMENT= Extension for Flask that adds support for quickly building REST APIs >@@ -18,12 +22,9 @@ 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 >@@ -32,7 +33,17 @@ USES= python > USE_PYTHON= autoplist distutils > NO_ARCH= yes > >+.include <bsd.port.pre.mk> >+ >+.if ${PYTHON_REL} < 3300 >+TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock >+.endif >+ >+post-extract: >+ @${LN} -fs ${_DISTDIR}/postman-v1.schema.json ${WRKSRC}/tests/ >+ > do-test: >- @(cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test) >+ @${RM} -fr ${TEST_WRKSRC}/build/lib/tests >+ @(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest) > >-.include <bsd.port.mk> >+.include <bsd.port.post.mk> >diff --git www/py-flask-restplus08/distinfo www/py-flask-restplus08/distinfo >index f308c7d..1a19b56 100644 >--- www/py-flask-restplus08/distinfo >+++ www/py-flask-restplus08/distinfo >@@ -1,3 +1,5 @@ > TIMESTAMP = 1468851260 > SHA256 (flask-restplus-0.8.6.tar.gz) = 3bb76cc156b9a09da62396d82b29fa31e4f27cccf79528538fe7155cf2785593 > SIZE (flask-restplus-0.8.6.tar.gz) = 1077073 >+SHA256 (postman-v1.schema.json) = 9b444fc527bf9b58ac7d4ef903285f658c600f8328e1009d6f398ae15871f8e6 >+SIZE (postman-v1.schema.json) = 35411
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
jbeich
:
maintainer-approval?
(
andrej
)
Actions:
View
|
Diff
Attachments on
bug 211174
:
172608
|
172609
|
172675
| 172731 |
172732