From 5c54dd564276ace410002449cdbc26ff6e511102 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Sat, 3 Mar 2018 00:50:58 -0300 Subject: [PATCH] python-tweepy: update to 3.6.0. Closes: #12062 [via git-merge-pr] --- srcpkgs/python-tweepy/template | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/srcpkgs/python-tweepy/template b/srcpkgs/python-tweepy/template index 9165c76cf94..61267874158 100644 --- a/srcpkgs/python-tweepy/template +++ b/srcpkgs/python-tweepy/template @@ -1,31 +1,34 @@ # Template file for 'python-tweepy' pkgname=python-tweepy -_pypiname=tweepy -version=3.5.0 +version=3.6.0 revision=1 -wrksrc="${pkgname#*-}-${version}" +wrksrc="tweepy-${version}" build_style=python-module hostmakedepends="python-setuptools python3-setuptools python-pip python3-pip" -depends="python-requests python-requests-oauthlib python-six" +depends="python-requests-oauthlib" +checkdepends="python3-requests-oauthlib" short_desc="Twitter library for python" maintainer="maxice8 " license="MIT" homepage="https://pypy.python.org/pypi/tweepy/3.5.0" -distfiles="${PYPI_SITE}/t/tweepy/tweepy-${version}.tar.gz https://raw.githubusercontent.com/tweepy/tweepy/920f5c49c059c4ea7f16c7c4f070c484161525c3/LICENSE>LICENSE.txt" -checksum="f00ccf5f48c30d559ce0b750dfe3b2df6668dc799d8ce276fd90bfaa68845a58 - deeeae0dcc22dbf108a801b8dc4e484bcc1bfb541b1a4f4615ab3e61def44fb5" +distfiles="https://github.com/tweepy/tweepy/archive/v${version}.tar.gz" +checksum=70f0c02b6249a3a7551328f731f1b90c822a780eb2fd15eaef4510a477c9f33c noarch=yes +do_check() { + python3 setup.py test +} + post_install() { - vlicense ../LICENSE.txt + vlicense LICENSE } python3-tweepy_package() { noarch=yes - depends="python3" + depends="python3-requests-oauthlib" short_desc="${short_desc/Python2/Python3}" pkg_install() { vmove usr/lib/python3* - vlicense ../LICENSE.txt + vlicense LICENSE } }