forked from Lainports/freebsd-ports
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.
This commit is contained in:
parent
4bc9d6fd18
commit
da3ee207ba
4 changed files with 29 additions and 24 deletions
|
|
@ -2,28 +2,31 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTNAME= twitter
|
||||
PORTVERSION= 1.17.1
|
||||
PORTVERSION= 1.18.0
|
||||
DISTVERSIONPREFIX= ${PORTNAME}-
|
||||
CATEGORIES= net python
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
PKGNAMESUFFIX= -tools
|
||||
|
||||
MAINTAINER= koobs@FreeBSD.org
|
||||
COMMENT= Python API and command-line toolset for Twitter
|
||||
|
||||
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose@${PY_FLAVOR}
|
||||
COMMENT= API and command-line toolset for Twitter (twitter.com)
|
||||
|
||||
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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
17
net/py-twitter-tools/files/patch-setup.py
Normal file
17
net/py-twitter-tools/files/patch-setup.py
Normal file
|
|
@ -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'
|
||||
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
From 15ea270b76053effb114a3f423a2215506a4e24d Mon Sep 17 00:00:00 2001
|
||||
From: RouxRC <b.ooghe@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
|
||||
Loading…
Add table
Reference in a new issue