1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00

net/py-twitter-tools: Update to 1.15.0

- Update to 1.15.0
- Add LICENSE_FILE
- Add TEST_DEPENDS and regression-test: target
- Remove GH_PROJECT (value is now the default)
- Patch tests_require and test_suite into setup.py, send upstream [1]

[1] https://github.com/sixohsix/twitter/pull/272
This commit is contained in:
Kubilay Kocak 2014-12-26 02:53:35 +00:00
parent bf6d784ae7
commit bc27736942
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=375613
3 changed files with 33 additions and 5 deletions

View File

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= twitter
PORTVERSION= 1.14.1
PORTVERSION= 1.15.0
CATEGORIES= net python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
PKGNAMESUFFIX= -tools
@ -10,14 +10,20 @@ PKGNAMESUFFIX= -tools
MAINTAINER= koobs@FreeBSD.org
COMMENT= Python API and command-line toolset for Twitter
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>0:${PORTSDIR}/devel/py-nose
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= python
USE_PYTHON= distutils autoplist
USE_GITHUB= yes
GH_ACCOUNT= sixohsix
GH_PROJECT= twitter
GH_TAGNAME= ${DISTNAME}
GH_COMMIT= 5712410
GH_COMMIT= bb26b5d
regression-test: build
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (twitter-1.14.1.tar.gz) = 8e20d4fe5c30d5f2d9a32b5a925a4426a8a43167b80e4e98404a05e8bb1210b6
SIZE (twitter-1.14.1.tar.gz) = 39459
SHA256 (twitter-1.15.0.tar.gz) = f0cf4d8ec60a26bbec9fb9a2455f037c8e47746c12e9a1bc9ce3f373014a1774
SIZE (twitter-1.15.0.tar.gz) = 41853

View File

@ -0,0 +1,22 @@
--- setup.py.orig 2014-12-26 02:42:01 UTC
+++ setup.py
@@ -9,6 +9,10 @@ install_requires = [
if sys.version_info < (2,7):
install_requires.append('argparse')
+tests_require = [
+ 'nose',
+]
+
setup(name='twitter',
version=version,
description="An API and command-line toolset for Twitter (twitter.com)",
@@ -39,6 +43,8 @@ setup(name='twitter',
include_package_data=True,
zip_safe=True,
install_requires=install_requires,
+ tests_require=tests_require,
+ test_suite = 'nose.collector',
entry_points="""
# -*- Entry points: -*-
[console_scripts]