summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2015-07-28 15:00:17 +0000
committerJustin Lecher <jlec@gentoo.org>2015-07-28 15:00:17 +0000
commitef64759e15b408d7f047bede565f711169eae71c (patch)
treefce18bf2d622d384c40f22ee4f64df3ab20d118a /dev-python
parentDon't isntall examples into sidedir, bug #555038; Version Bump (diff)
downloadgentoo-2-ef64759e15b408d7f047bede565f711169eae71c.tar.gz
gentoo-2-ef64759e15b408d7f047bede565f711169eae71c.tar.bz2
gentoo-2-ef64759e15b408d7f047bede565f711169eae71c.zip
Don't isntall examples into sidedir, bug #555038; Version Bump
(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key E9402A79B03529A2!)
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/tweepy/ChangeLog8
-rw-r--r--dev-python/tweepy/tweepy-2.3.ebuild8
-rw-r--r--dev-python/tweepy/tweepy-3.3.0.ebuild48
3 files changed, 60 insertions, 4 deletions
diff --git a/dev-python/tweepy/ChangeLog b/dev-python/tweepy/ChangeLog
index 42f1fc8d8c19..90ee375124b9 100644
--- a/dev-python/tweepy/ChangeLog
+++ b/dev-python/tweepy/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-python/tweepy
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/tweepy/ChangeLog,v 1.12 2015/06/07 16:25:05 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/tweepy/ChangeLog,v 1.13 2015/07/28 15:00:17 jlec Exp $
+
+*tweepy-3.3.0 (28 Jul 2015)
+
+ 28 Jul 2015; Justin Lecher <jlec@gentoo.org> +tweepy-3.3.0.ebuild,
+ tweepy-2.3.ebuild:
+ Don't isntall examples into sidedir, bug #555038; Version Bump
07 Jun 2015; Justin Lecher <jlec@gentoo.org> metadata.xml:
Add github to remote-id in metadata.xml
diff --git a/dev-python/tweepy/tweepy-2.3.ebuild b/dev-python/tweepy/tweepy-2.3.ebuild
index a730d487cfde..f9a56fb3c6c1 100644
--- a/dev-python/tweepy/tweepy-2.3.ebuild
+++ b/dev-python/tweepy/tweepy-2.3.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/tweepy/tweepy-2.3.ebuild,v 1.1 2014/12/09 07:30:42 idella4 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/tweepy/tweepy-2.3.ebuild,v 1.2 2015/07/28 15:00:17 jlec Exp $
EAPI=5
@@ -23,7 +23,9 @@ DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
python_prepare_all() {
# Required to avoid file collisions at install
- sed -e "s:find_packages():find_packages(exclude=['tests','tests.*']):" -i setup.py || die
+ sed \
+ -e "/find_packages/s:]:,'tests.*','examples']:g" \
+ -i setup.py || die
distutils-r1_python_prepare_all
}
diff --git a/dev-python/tweepy/tweepy-3.3.0.ebuild b/dev-python/tweepy/tweepy-3.3.0.ebuild
new file mode 100644
index 000000000000..de1bb303c608
--- /dev/null
+++ b/dev-python/tweepy/tweepy-3.3.0.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/tweepy/tweepy-3.3.0.ebuild,v 1.1 2015/07/28 15:00:17 jlec Exp $
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 python3_{3,4} )
+
+inherit distutils-r1
+
+DESCRIPTION="A Python library for accessing the Twitter API "
+HOMEPAGE="http://tweepy.github.com/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc examples test"
+
+RESTRICT="test" #missing in tarball
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND="
+ >=dev-python/requests-2.4.3[${PYTHON_USEDEP}]
+ >=dev-python/requests-oauthlib-0.4.1[${PYTHON_USEDEP}]
+ >=dev-python/six-1.7.3[${PYTHON_USEDEP}]
+"
+python_prepare_all() {
+ # Required to avoid file collisions at install
+ sed \
+ -e "/find_packages/s:]:,'tests.*','examples']:g" \
+ -i setup.py || die
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ "${PYTHON}" -m tests || die "Tests failed"
+}
+
+python_compile_all() {
+ use doc && emake -C docs html
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS=( docs/_build/html/. )
+ use examples && local EXAMPLES=( examples/. )
+ distutils-r1_python_install_all
+}