Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Jul 2015 10:20:33 +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: r391498 - in head/net/py-tweepy: . files
Message-ID:  <201507071020.t67AKXU9098683@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: koobs
Date: Tue Jul  7 10:20:32 2015
New Revision: 391498
URL: https://svnweb.freebsd.org/changeset/ports/391498

Log:
  net/py-tweepy: Update to 3.3.0, Enable Python 3
  
  - Update to 3.3.0
  - Take MAINTAINER'ship
  - Switch to GITHUB to get access to the tests & test suite
  - Allow building with Python 3 (now supported)
  - Update BUILD_DEPENDS and RUN_DEPENDS
  - Sort USE_PYTHON values
  - Patch setup.py to correctly set test dependencies and hook in the setuptools
    test command
  - Patch out unnecessary (tox) test dependency.
  
  Changes:
  
    https://github.com/tweepy/tweepy/blob/v3.3.0/CHANGELOG.md
  
  First part of:
  
  PR:		200621
  Reported by:	Patrick P. <freebsdbug patpro net>

Added:
  head/net/py-tweepy/files/
  head/net/py-tweepy/files/patch-setup.py   (contents, props changed)
  head/net/py-tweepy/files/patch-test__requirements.txt   (contents, props changed)
Modified:
  head/net/py-tweepy/Makefile
  head/net/py-tweepy/distinfo

Modified: head/net/py-tweepy/Makefile
==============================================================================
--- head/net/py-tweepy/Makefile	Tue Jul  7 09:36:02 2015	(r391497)
+++ head/net/py-tweepy/Makefile	Tue Jul  7 10:20:32 2015	(r391498)
@@ -2,17 +2,23 @@
 # $FreeBSD$
 
 PORTNAME=	tweepy
-PORTVERSION=	2.3.0
+PORTVERSION=	3.3.0
 CATEGORIES=	net python
-MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTVERSIONPREFIX=	v
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	koobs@FreeBSD.org
 COMMENT=	Twitter API library for Python!
 
 LICENSE=	MIT
 
-USES=		python:2
-USE_PYTHON=	distutils autoplist
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pip>0:${PORTSDIR}/devel/py-pip
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}requests>=2.4.3:${PORTSDIR}/www/py-requests \
+		${PYTHON_PKGNAMEPREFIX}requests-oauthlib>=0.4.1:${PORTSDIR}/www/py-requests-oauthlib \
+		${PYTHON_PKGNAMEPREFIX}six>=1.7.3:${PORTSDIR}/devel/py-six
+
+USES=		python
+USE_GITHUB=	yes
+USE_PYTHON=	autoplist distutils
 
 .include <bsd.port.mk>

Modified: head/net/py-tweepy/distinfo
==============================================================================
--- head/net/py-tweepy/distinfo	Tue Jul  7 09:36:02 2015	(r391497)
+++ head/net/py-tweepy/distinfo	Tue Jul  7 10:20:32 2015	(r391498)
@@ -1,2 +1,2 @@
-SHA256 (tweepy-2.3.0.tar.gz) = f7672fcfe9e17361adc7293ca6c98ad1517174267e917a5ec898e515c42b9271
-SIZE (tweepy-2.3.0.tar.gz) = 25273
+SHA256 (tweepy-tweepy-v3.3.0_GH0.tar.gz) = 96ac826401dafd30b1b05137cccd7e36d075a71869b64656075feaebb4e1536d
+SIZE (tweepy-tweepy-v3.3.0_GH0.tar.gz) = 599995

Added: head/net/py-tweepy/files/patch-setup.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/py-tweepy/files/patch-setup.py	Tue Jul  7 10:20:32 2015	(r391498)
@@ -0,0 +1,22 @@
+--- setup.py.orig	2015-02-21 19:28:08 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',

Added: head/net/py-tweepy/files/patch-test__requirements.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/py-tweepy/files/patch-test__requirements.txt	Tue Jul  7 10:20:32 2015	(r391498)
@@ -0,0 +1,7 @@
+--- test_requirements.txt.orig	2015-07-05 15:09:04 UTC
++++ test_requirements.txt
+@@ -1,4 +1,3 @@
+-tox>=1.7.2
+ vcrpy==1.1.2
+ mock==1.0.1
+ unittest2   # Comment this line out if using Python 3.



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