diff options
author | koobs <koobs@FreeBSD.org> | 2017-07-15 16:23:24 +0800 |
---|---|---|
committer | koobs <koobs@FreeBSD.org> | 2017-07-15 16:23:24 +0800 |
commit | 56340e8fda914d72a2aa91a0481634ad98c848e2 (patch) | |
tree | 7e0367b34cf59cf6fe96877e9af6be4282a03d03 /net/py-tweepy | |
parent | 7fa6e54b389251e9698c0d0ae09c170d819e3b87 (diff) | |
download | freebsd-ports-gnome-56340e8fda914d72a2aa91a0481634ad98c848e2.tar.gz freebsd-ports-gnome-56340e8fda914d72a2aa91a0481634ad98c848e2.tar.zst freebsd-ports-gnome-56340e8fda914d72a2aa91a0481634ad98c848e2.zip |
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
Diffstat (limited to 'net/py-tweepy')
-rw-r--r-- | net/py-tweepy/Makefile | 22 | ||||
-rw-r--r-- | net/py-tweepy/distinfo | 5 | ||||
-rw-r--r-- | net/py-tweepy/files/patch-setup.py | 2 | ||||
-rw-r--r-- | net/py-tweepy/files/patch-test__requirements.txt | 12 |
4 files changed, 30 insertions, 11 deletions
diff --git a/net/py-tweepy/Makefile b/net/py-tweepy/Makefile index 83aa3fb780fe..0f1e23c6b8e5 100644 --- a/net/py-tweepy/Makefile +++ b/net/py-tweepy/Makefile @@ -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@FreeBSD.org COMMENT= Twitter API library for Python @@ -16,9 +16,25 @@ BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pip>0:devel/py-pip 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> diff --git a/net/py-tweepy/distinfo b/net/py-tweepy/distinfo index 3cb4eb400272..027d17ec86eb 100644 --- a/net/py-tweepy/distinfo +++ b/net/py-tweepy/distinfo @@ -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 diff --git a/net/py-tweepy/files/patch-setup.py b/net/py-tweepy/files/patch-setup.py index 6a7f90eda2c2..128ffbd70417 100644 --- a/net/py-tweepy/files/patch-setup.py +++ b/net/py-tweepy/files/patch-setup.py @@ -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,)) diff --git a/net/py-tweepy/files/patch-test__requirements.txt b/net/py-tweepy/files/patch-test__requirements.txt index ffe0ff724815..454ca40be618 100644 --- a/net/py-tweepy/files/patch-test__requirements.txt +++ b/net/py-tweepy/files/patch-test__requirements.txt @@ -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 |