svn commit: r499985 - in head/net/py-twitter-tools: . files
Kubilay Kocak
koobs at FreeBSD.org
Thu Apr 25 10:59:38 UTC 2019
Author: koobs
Date: Thu Apr 25 10:59:36 2019
New Revision: 499985
URL: https://svnweb.freebsd.org/changeset/ports/499985
Log:
net/py-twitter-tools: Update to 1.18.0
- Remove tests patch (upstreamed/released)
This release adds Python 3 support. A changelog could not be found.
Added:
head/net/py-twitter-tools/files/patch-setup.py (contents, props changed)
Deleted:
head/net/py-twitter-tools/files/patch-tests_test__sanity.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 Thu Apr 25 10:50:18 2019 (r499984)
+++ head/net/py-twitter-tools/Makefile Thu Apr 25 10:59:36 2019 (r499985)
@@ -2,27 +2,30 @@
# $FreeBSD$
PORTNAME= twitter
-PORTVERSION= 1.17.1
+PORTVERSION= 1.18.0
DISTVERSIONPREFIX= ${PORTNAME}-
CATEGORIES= net python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
PKGNAMESUFFIX= -tools
MAINTAINER= koobs at FreeBSD.org
-COMMENT= Python API and command-line toolset for Twitter
+COMMENT= API and command-line toolset for Twitter (twitter.com)
-TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose@${PY_FLAVOR}
-
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-USES= python:2.7
-USE_PYTHON= distutils concurrent autoplist
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose@${PY_FLAVOR}
+
+USES= python
USE_GITHUB= yes
+USE_PYTHON= distutils concurrent autoplist
GH_ACCOUNT= sixohsix
NO_ARCH= yes
+
+# A number of test failures are (still) present in test_util
+# https://github.com/sixohsix/twitter/issues/166
do-test:
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
Modified: head/net/py-twitter-tools/distinfo
==============================================================================
--- head/net/py-twitter-tools/distinfo Thu Apr 25 10:50:18 2019 (r499984)
+++ head/net/py-twitter-tools/distinfo Thu Apr 25 10:59:36 2019 (r499985)
@@ -1,2 +1,3 @@
-SHA256 (sixohsix-twitter-twitter-1.17.1_GH0.tar.gz) = 7a1e0cc35f137b95f235ea89b2949db8985fb47fef47223acae74176d39335e7
-SIZE (sixohsix-twitter-twitter-1.17.1_GH0.tar.gz) = 45992
+TIMESTAMP = 1556188728
+SHA256 (sixohsix-twitter-twitter-1.18.0_GH0.tar.gz) = 561483b319aa153f94b334266341351c4dee9934835db976a030906a5d931567
+SIZE (sixohsix-twitter-twitter-1.18.0_GH0.tar.gz) = 47400
Added: head/net/py-twitter-tools/files/patch-setup.py
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net/py-twitter-tools/files/patch-setup.py Thu Apr 25 10:59:36 2019 (r499985)
@@ -0,0 +1,17 @@
+# Fix UnicodeDecodeError: 'ascii' codec can't decode error
+
+--- setup.py.orig 2019-04-25 10:41:18 UTC
++++ setup.py
+@@ -1,11 +1,7 @@
+ from setuptools import setup, find_packages
+ import sys, os
+
+-try:
+- import pypandoc
+- long_description = pypandoc.convert('README', 'rst', format='md')
+-except ImportError:
+- long_description = open('./README', 'r').read()
++long_description = open('./README', 'rb').read().decode("utf-8")
+
+ version = '1.18.0'
+
More information about the svn-ports-head
mailing list