Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Mar 2016 11:51:57 +0000 (UTC)
From:      Kubilay Kocak <koobs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r410455 - in head/www/py-grequests: . files
Message-ID:  <201603061151.u26BpvYV061108@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: koobs
Date: Sun Mar  6 11:51:57 2016
New Revision: 410455
URL: https://svnweb.freebsd.org/changeset/ports/410455

Log:
  www/py-grequests: Update to 0.3.0, Modernize
  
  - Update PORTVERSION and distinfo checksum (0.3.0)
  - Update TEST_DEPENDS and test target to new framework
  - Remove TESTS option bits accordingly
  - Enable NO_ARCH (Architecture independent)
  - Remove unnecessary setup.py patch (upstreamed)
  - Remove patch for test_grequests.py (backport)
  - Backport patch for removing failing test [1]
  
  [1] https://github.com/kennethreitz/grequests/pull/83

Added:
  head/www/py-grequests/files/patch-2ffb8088   (contents, props changed)
Deleted:
  head/www/py-grequests/files/patch-setup.py
  head/www/py-grequests/files/patch-tests__test_grequests.py
Modified:
  head/www/py-grequests/Makefile
  head/www/py-grequests/distinfo

Modified: head/www/py-grequests/Makefile
==============================================================================
--- head/www/py-grequests/Makefile	Sun Mar  6 11:48:10 2016	(r410454)
+++ head/www/py-grequests/Makefile	Sun Mar  6 11:51:57 2016	(r410455)
@@ -2,9 +2,8 @@
 # $FreeBSD$
 
 PORTNAME=	grequests
-PORTVERSION=	0.2.0
+PORTVERSION=	0.3.0
 DISTVERSIONPREFIX=	v
-PORTREVISION=	2
 CATEGORIES=	www python
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
@@ -15,14 +14,8 @@ LICENSE=	BSD2CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}gevent>0:${PORTSDIR}/devel/py-gevent \
-		${PYTHON_PKGNAMEPREFIX}requests>=1.0.0:${PORTSDIR}/www/py-requests
-TEST_DEPENDS:=	${RUN_DEPENDS} \
-		${PYTHON_PKGNAMEPREFIX}nose>0:${PORTSDIR}/devel/py-nose
-
-OPTIONS_DEFINE=	TESTS
-
-TESTS_DESC=		Install test suite requirements
-TESTS_BUILD_DEPENDS=	${TEST_DEPENDS}
+		${PYTHON_PKGNAMEPREFIX}requests>0:${PORTSDIR}/www/py-requests
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}nose>0:${PORTSDIR}/devel/py-nose
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	kennethreitz
@@ -30,7 +23,9 @@ GH_ACCOUNT=	kennethreitz
 USES=		python
 USE_PYTHON=	autoplist distutils
 
-regression-test: build
+NO_ARCH=	yes
+
+do-test:
 	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
 
 .include <bsd.port.mk>

Modified: head/www/py-grequests/distinfo
==============================================================================
--- head/www/py-grequests/distinfo	Sun Mar  6 11:48:10 2016	(r410454)
+++ head/www/py-grequests/distinfo	Sun Mar  6 11:51:57 2016	(r410455)
@@ -1,2 +1,2 @@
-SHA256 (kennethreitz-grequests-v0.2.0_GH0.tar.gz) = 7e8972ee76b8914dd4cab60df8f63d1b2b7970c390c8f43325491754d3292800
-SIZE (kennethreitz-grequests-v0.2.0_GH0.tar.gz) = 4107
+SHA256 (kennethreitz-grequests-v0.3.0_GH0.tar.gz) = 9c53602bb15d02881d1e0bfa12d58ba53fc9741e8c9e68ad1249b8e9097fa3be
+SIZE (kennethreitz-grequests-v0.3.0_GH0.tar.gz) = 5449

Added: head/www/py-grequests/files/patch-2ffb8088
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-grequests/files/patch-2ffb8088	Sun Mar  6 11:51:57 2016	(r410455)
@@ -0,0 +1,33 @@
+From 2ffb8088f24039aabef574b2680cb373fdb4604a Mon Sep 17 00:00:00 2001
+From: Yuri Prezument <y@yprez.com>
+Date: Tue, 23 Feb 2016 13:05:14 +0200
+Subject: [PATCH] Remove failing test
+
+Remove test_map_timeout_exception_handler_returns_false() test.
+The functionality for this was removed in https://github.com/kennethreitz/grequests/commit/394cc
+---
+ tests.py | 11 -----------
+ 1 file changed, 11 deletions(-)
+
+diff --git a/tests.py b/tests.py
+index b3789e3..2b4ef0f 100644
+--- tests.py
++++ tests.py
+@@ -130,17 +130,6 @@ def test_map_timeout_no_exception_handler(self):
+         self.assertTrue(responses[1].ok)
+         self.assertEqual(len(responses), 2)
+ 
+-    def test_map_timeout_exception_handler_returns_false(self):
+-        """
+-        if you don't want your exceptions to show up in the map result
+-        """
+-        def exception_handler(request, exception):
+-            return False
+-        reqs = [grequests.get(httpbin('delay/1'), timeout=0.001), grequests.get(httpbin('/'))]
+-        responses = grequests.map(reqs, exception_handler=exception_handler)
+-        self.assertTrue(responses[0].ok)
+-        self.assertEqual(len(responses), 1)
+-
+     def test_map_timeout_exception_handler_no_return(self):
+         """
+         ensure default behaviour for a handler that returns None



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