svn commit: r445856 - in head/net/py-tweepy: . files
Kubilay Kocak
koobs at FreeBSD.org
Sat Jul 15 08:23:26 UTC 2017
Author: koobs
Date: Sat Jul 15 08:23:24 2017
New Revision: 445856
URL: https://svnweb.freebsd.org/changeset/ports/445856
Log:
net/py-tweepy: Update to 3.5.0
While I'm here,
* Add TEST_DEPENDS and test target
* Sort DISTVERSIONPREFIX (pet portlint)
* Update test_requirements.txt patch
Changelog:
https://github.com/tweepy/tweepy/releases/tag/v3.5.0
Modified:
head/net/py-tweepy/Makefile
head/net/py-tweepy/distinfo
head/net/py-tweepy/files/patch-setup.py
head/net/py-tweepy/files/patch-test__requirements.txt
Modified: head/net/py-tweepy/Makefile
==============================================================================
--- head/net/py-tweepy/Makefile Sat Jul 15 08:21:07 2017 (r445855)
+++ head/net/py-tweepy/Makefile Sat Jul 15 08:23:24 2017 (r445856)
@@ -2,10 +2,10 @@
# $FreeBSD$
PORTNAME= tweepy
-PORTVERSION= 3.3.0
+PORTVERSION= 3.5.0
+DISTVERSIONPREFIX= v
CATEGORIES= net python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
-DISTVERSIONPREFIX= v
MAINTAINER= koobs at FreeBSD.org
COMMENT= Twitter API library for Python
@@ -16,9 +16,25 @@ BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pip>0:devel/py-p
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>=2.4.3:www/py-requests \
${PYTHON_PKGNAMEPREFIX}requests-oauthlib>=0.4.1:www/py-requests-oauthlib \
${PYTHON_PKGNAMEPREFIX}six>=1.7.3:devel/py-six
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose \
+ ${PYTHON_PKGNAMEPREFIX}mock>=1.0.1:devel/py-mock \
+ ${PYTHON_PKGNAMEPREFIX}vcrpy>=1.1.2:devel/py-vcrpy
USES= python
USE_GITHUB= yes
USE_PYTHON= autoplist distutils
-.include <bsd.port.mk>
+NO_ARCH= yes
+
+TEST_ENV= USE_REPLAY=1
+
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 3000
+TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}unittest2>0:devel/py-unittest2
+.endif
+
+do-test:
+ @cd ${WRKSRC} && ${SETENV} ${TEST_ENV} nosetests-${PYTHON_VER} -v tests.test_cursors tests.test_api tests.test_utils
+
+.include <bsd.port.post.mk>
Modified: head/net/py-tweepy/distinfo
==============================================================================
--- head/net/py-tweepy/distinfo Sat Jul 15 08:21:07 2017 (r445855)
+++ head/net/py-tweepy/distinfo Sat Jul 15 08:23:24 2017 (r445856)
@@ -1,2 +1,3 @@
-SHA256 (tweepy-tweepy-v3.3.0_GH0.tar.gz) = 96ac826401dafd30b1b05137cccd7e36d075a71869b64656075feaebb4e1536d
-SIZE (tweepy-tweepy-v3.3.0_GH0.tar.gz) = 599995
+TIMESTAMP = 1500106920
+SHA256 (tweepy-tweepy-v3.5.0_GH0.tar.gz) = 156748432e71e3f3258d109ef06638c32d2591aa98e480eb321a2c226f4ac47d
+SIZE (tweepy-tweepy-v3.5.0_GH0.tar.gz) = 602727
Modified: head/net/py-tweepy/files/patch-setup.py
==============================================================================
--- head/net/py-tweepy/files/patch-setup.py Sat Jul 15 08:21:07 2017 (r445855)
+++ head/net/py-tweepy/files/patch-setup.py Sat Jul 15 08:23:24 2017 (r445856)
@@ -1,4 +1,4 @@
---- setup.py.orig 2015-02-21 19:28:08 UTC
+--- setup.py.orig 2015-11-20 05:42:25 UTC
+++ setup.py
@@ -15,7 +15,10 @@ else:
raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))
Modified: head/net/py-tweepy/files/patch-test__requirements.txt
==============================================================================
--- head/net/py-tweepy/files/patch-test__requirements.txt Sat Jul 15 08:21:07 2017 (r445855)
+++ head/net/py-tweepy/files/patch-test__requirements.txt Sat Jul 15 08:23:24 2017 (r445856)
@@ -1,7 +1,9 @@
---- test_requirements.txt.orig 2015-07-05 15:09:04 UTC
+--- test_requirements.txt.orig 2015-11-20 05:42:25 UTC
+++ test_requirements.txt
-@@ -1,4 +1,3 @@
+@@ -1,4 +1,2 @@
-tox>=1.7.2
- vcrpy==1.1.2
- mock==1.0.1
- unittest2 # Comment this line out if using Python 3.
+-vcrpy==1.1.2
+-mock==1.0.1
+-unittest2 # Comment this line out if using Python 3.
++vcrpy>=1.1.2
++mock>=1.0.1
More information about the svn-ports-head
mailing list