Index: head/net/py-tweepy/Makefile =================================================================== --- head/net/py-tweepy/Makefile (revision 445855) +++ head/net/py-tweepy/Makefile (revision 445856) @@ -1,24 +1,40 @@ # Created by: Cheng-Lung Sung # $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 LICENSE= MIT 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 +NO_ARCH= yes + +TEST_ENV= USE_REPLAY=1 + +.include + +.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 Index: head/net/py-tweepy/distinfo =================================================================== --- head/net/py-tweepy/distinfo (revision 445855) +++ head/net/py-tweepy/distinfo (revision 445856) @@ -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 Index: head/net/py-tweepy/files/patch-setup.py =================================================================== --- head/net/py-tweepy/files/patch-setup.py (revision 445855) +++ head/net/py-tweepy/files/patch-setup.py (revision 445856) @@ -1,22 +1,22 @@ ---- 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,)) install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1()) +test_reqs = parse_requirements('test_requirements.txt', session=uuid.uuid1()) + reqs = [str(req.req) for req in install_reqs] +treqs = [str(req.req) for req in test_reqs] setup(name="tweepy", version=version, @@ -26,6 +29,8 @@ setup(name="tweepy", url="http://github.com/tweepy/tweepy", packages=find_packages(exclude=['tests']), install_requires=reqs, + tests_require=treqs, + test_suite='nose.collector', keywords="twitter library", classifiers=[ 'Development Status :: 4 - Beta', Index: head/net/py-tweepy/files/patch-test__requirements.txt =================================================================== --- head/net/py-tweepy/files/patch-test__requirements.txt (revision 445855) +++ head/net/py-tweepy/files/patch-test__requirements.txt (revision 445856) @@ -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