summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2018-02-23 06:47:47 +0000
committerPatrick Lauer <patrick@gentoo.org>2018-02-23 06:47:47 +0000
commitbf8ce5af8b2b9c677a22c314b6b3334fe33e241b (patch)
tree28f1b621b2bb11b7b329b7e182c45c5150c1ba48 /dev-python/astor
parentmedia-plugins/gst-plugins-meta: bump to 1.12.4 (diff)
downloadgentoo-bf8ce5af8b2b9c677a22c314b6b3334fe33e241b.tar.gz
gentoo-bf8ce5af8b2b9c677a22c314b6b3334fe33e241b.tar.bz2
gentoo-bf8ce5af8b2b9c677a22c314b6b3334fe33e241b.zip
dev-python/astor: Bump
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'dev-python/astor')
-rw-r--r--dev-python/astor/Manifest1
-rw-r--r--dev-python/astor/astor-0.6.ebuild28
2 files changed, 29 insertions, 0 deletions
diff --git a/dev-python/astor/Manifest b/dev-python/astor/Manifest
index 099a5d88cb01..52ae63501231 100644
--- a/dev-python/astor/Manifest
+++ b/dev-python/astor/Manifest
@@ -1 +1,2 @@
DIST astor-0.5.tar.gz 10999 BLAKE2B 278bf193003dd9f8f2d5c6a33229e3f4013bcf0618dee1d8cc3891ffea031f63ad4f795a3b66e87986bcf377b5f81eb6992d3c47c2234357487443a049d45d31 SHA512 7c940371a6c3ddbc4a6691edb6ee17eef61436912bb873c5c0cba4f3865c9d4f8e077674b14ccc7e319b749898782aaf87e085eedd9ba7f8638130deb67f549b
+DIST astor-0.6.tar.gz 28684 BLAKE2B 372314e0d92721d3cbb7fe0fe8bc42635e023ca590c4845c8e7c499bc947c3de0a3679fff51a07085d26bca37e83301ef9c0b66548b929a8f018760c8370319c SHA512 4f9598229f8a77901573fa1841716cc810ec8e108b155d8c7c50ab477d794f8ecd1784df66a1272a2739cc968d8eb6632f62b4d6ef067682db05233f127be409
diff --git a/dev-python/astor/astor-0.6.ebuild b/dev-python/astor/astor-0.6.ebuild
new file mode 100644
index 000000000000..c71904c78448
--- /dev/null
+++ b/dev-python/astor/astor-0.6.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy )
+
+inherit distutils-r1
+
+DESCRIPTION="Read/rewrite/write Python ASTs"
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
+HOMEPAGE="https://pypi.python.org/pypi/astor"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+
+python_prepare_all() {
+ #avoid file collisions picked up by the eclass
+ sed -e s":find_packages():find_packages(exclude=['tests']):" -i setup.py || die
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ "${PYTHON}" -m unittest discover || die "tests failed under ${EPYTHON}"
+}