svn commit: r409230 - in head/net/py-twitter-tools: . files

Kubilay Kocak koobs at FreeBSD.org
Sat Feb 20 10:45:30 UTC 2016


Author: koobs
Date: Sat Feb 20 10:45:28 2016
New Revision: 409230
URL: https://svnweb.freebsd.org/changeset/ports/409230

Log:
  net/py-twitter-tools: Update to 1.17.1
  
  - Update PORTVERSION and distinfo checksum (1.17.1) [1]
  - Update test target (modern convention)
  - Enable concurrent (Python version) installation
  - Enable architecture independence (NO_ARCH)
  - Remove patch to setup.py (upstreamed)
  - Backport commit 15ea270 to fix test_sanity tests
  
  A number of test failures are (still) present in test_util [2]
  
  [2] https://github.com/sixohsix/twitter/issues/166
  
  PR:		207365 [1]
  Submitted by:	bsam [1]

Added:
  head/net/py-twitter-tools/files/patch-tests_test__sanity.py   (contents, props changed)
Deleted:
  head/net/py-twitter-tools/files/patch-setup.py
Modified:
  head/net/py-twitter-tools/Makefile
  head/net/py-twitter-tools/distinfo

Modified: head/net/py-twitter-tools/Makefile
==============================================================================
--- head/net/py-twitter-tools/Makefile	Sat Feb 20 10:42:47 2016	(r409229)
+++ head/net/py-twitter-tools/Makefile	Sat Feb 20 10:45:28 2016	(r409230)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	twitter
-PORTVERSION=	1.15.0
+PORTVERSION=	1.17.1
 DISTVERSIONPREFIX=	${PORTNAME}-
 CATEGORIES=	net python
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -17,12 +17,14 @@ LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 USES=		python
-USE_PYTHON=	distutils autoplist
+USE_PYTHON=	distutils concurrent autoplist
 USE_GITHUB=	yes
 
 GH_ACCOUNT=	sixohsix
 
-regression-test: build
+NO_ARCH=	yes
+
+do-test:
 	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
 
 .include <bsd.port.mk>

Modified: head/net/py-twitter-tools/distinfo
==============================================================================
--- head/net/py-twitter-tools/distinfo	Sat Feb 20 10:42:47 2016	(r409229)
+++ head/net/py-twitter-tools/distinfo	Sat Feb 20 10:45:28 2016	(r409230)
@@ -1,2 +1,2 @@
-SHA256 (sixohsix-twitter-twitter-1.15.0_GH0.tar.gz) = 36d78af34fc01d695f4c45b23e9183852a57a950c79ddb12f9291f4a83285fce
-SIZE (sixohsix-twitter-twitter-1.15.0_GH0.tar.gz) = 41843
+SHA256 (sixohsix-twitter-twitter-1.17.1_GH0.tar.gz) = 7a1e0cc35f137b95f235ea89b2949db8985fb47fef47223acae74176d39335e7
+SIZE (sixohsix-twitter-twitter-1.17.1_GH0.tar.gz) = 45992

Added: head/net/py-twitter-tools/files/patch-tests_test__sanity.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/py-twitter-tools/files/patch-tests_test__sanity.py	Sat Feb 20 10:45:28 2016	(r409230)
@@ -0,0 +1,16 @@
+From 15ea270b76053effb114a3f423a2215506a4e24d Mon Sep 17 00:00:00 2001
+From: RouxRC <b.ooghe at gmail.com>
+Date: Mon, 23 Nov 2015 20:49:25 +0100
+Subject: [PATCH] adapt tests to now full https twitter
+
+--- tests/test_sanity.py.orig	2016-02-20 07:27:26 UTC
++++ tests/test_sanity.py
+@@ -52,7 +52,7 @@ def test_API_set_unicode_tweet():
+ 
+ 
+ def clean_link(text):
+-    pos = text.find(" http://t.co")
++    pos = text.find(" https://t.co")
+     if pos != -1:
+         return text[:pos]
+     return text


More information about the svn-ports-all mailing list