Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Jul 2016 19:12:42 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r418812 - in head/www: py-flask-restplus py-flask-restplus08
Message-ID:  <201607191912.u6JJCgc6025975@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Tue Jul 19 19:12:42 2016
New Revision: 418812
URL: https://svnweb.freebsd.org/changeset/ports/418812

Log:
  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)

Modified:
  head/www/py-flask-restplus/Makefile   (contents, props changed)
  head/www/py-flask-restplus/distinfo   (contents, props changed)
  head/www/py-flask-restplus08/Makefile   (contents, props changed)
  head/www/py-flask-restplus08/distinfo   (contents, props changed)

Modified: head/www/py-flask-restplus/Makefile
==============================================================================
--- head/www/py-flask-restplus/Makefile	Tue Jul 19 19:06:03 2016	(r418811)
+++ head/www/py-flask-restplus/Makefile	Tue Jul 19 19:12:42 2016	(r418812)
@@ -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}Flas
 		${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
 
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 3300
+TEST_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock
+.endif
+
 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>

Modified: head/www/py-flask-restplus/distinfo
==============================================================================
--- head/www/py-flask-restplus/distinfo	Tue Jul 19 19:06:03 2016	(r418811)
+++ head/www/py-flask-restplus/distinfo	Tue Jul 19 19:12:42 2016	(r418812)
@@ -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

Modified: head/www/py-flask-restplus08/Makefile
==============================================================================
--- head/www/py-flask-restplus08/Makefile	Tue Jul 19 19:06:03 2016	(r418811)
+++ head/www/py-flask-restplus08/Makefile	Tue Jul 19 19:12:42 2016	(r418812)
@@ -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}Flas
 		${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
 
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 3300
+TEST_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock
+.endif
+
 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>

Modified: head/www/py-flask-restplus08/distinfo
==============================================================================
--- head/www/py-flask-restplus08/distinfo	Tue Jul 19 19:06:03 2016	(r418811)
+++ head/www/py-flask-restplus08/distinfo	Tue Jul 19 19:12:42 2016	(r418812)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201607191912.u6JJCgc6025975>