diff options
author | Ian Delaney <della5@iinet.com.au> | 2012-05-21 00:35:11 +0800 |
---|---|---|
committer | Ian Delaney <della5@iinet.com.au> | 2012-05-21 00:35:11 +0800 |
commit | 704abe03c7f069a2240b74980acb4ca0f1a66357 (patch) | |
tree | cfdcecda79ccf1f3802c5b6bb4ccd1e4b95fbcb8 | |
parent | [dev-python/testfixtures] final cleanup(sed) (diff) | |
download | improvise-704abe03c7f069a2240b74980acb4ca0f1a66357.tar.gz improvise-704abe03c7f069a2240b74980acb4ca0f1a66357.tar.bz2 improvise-704abe03c7f069a2240b74980acb4ca0f1a66357.zip |
[dev-python/workerpoo] New ebuild
-rw-r--r-- | dev-python/workerpool/Manifest | 1 | ||||
-rw-r--r-- | dev-python/workerpool/metadata.xml (renamed from dev-python/xlutils/metadata.xml) | 0 | ||||
-rw-r--r-- | dev-python/workerpool/workerpool-0.9.2.ebuild | 61 | ||||
-rw-r--r-- | dev-python/xlutils/Manifest | 1 | ||||
-rw-r--r-- | dev-python/xlutils/xlutils-1.5.2.ebuild | 41 |
5 files changed, 62 insertions, 42 deletions
diff --git a/dev-python/workerpool/Manifest b/dev-python/workerpool/Manifest new file mode 100644 index 0000000..a81e394 --- /dev/null +++ b/dev-python/workerpool/Manifest @@ -0,0 +1 @@ +DIST workerpool-0.9.2.tar.gz 7747 SHA256 ab2eaf05e236140c62c7411d13ecc4ddedc365966282719a35afc53043c00f82 SHA512 d5ce36ff48b297adb40baf40a53823cc8b6e39b0c7eb880541dffb5ea1d0849e50c344e63f1ac3089d51fc1fe6e73ff2a26df03f9d68f24980222fe3ef7f01c5 WHIRLPOOL 093221fb442abe017591fa79b85abbd1824b63ec89aaf62eb87cb50975dd5164cd3a1ef36c51336e2dcb97aef3fdd18695691e73bfaaa168077172bcc5a49db3 diff --git a/dev-python/xlutils/metadata.xml b/dev-python/workerpool/metadata.xml index 5f2cb6b..5f2cb6b 100644 --- a/dev-python/xlutils/metadata.xml +++ b/dev-python/workerpool/metadata.xml diff --git a/dev-python/workerpool/workerpool-0.9.2.ebuild b/dev-python/workerpool/workerpool-0.9.2.ebuild new file mode 100644 index 0000000..6d3720c --- /dev/null +++ b/dev-python/workerpool/workerpool-0.9.2.ebuild @@ -0,0 +1,61 @@ +#Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: + +EAPI="4" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="*-jython" +DISTUTILS_SRC_TEST=nosetests +# package supports python3, tests don't +#PYTHON_TESTS_RESTRICTED_ABIS="3.*" +inherit distutils + +DESCRIPTION="Module for distributing jobs to a pool of worker threads." +HOMEPAGE="http://github.com/shazow/workerpool" +SRC_URI="http://pypi.python.org/packages/source/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test examples" + +RDEPEND="" +DEPEND="${RDEPEND} + dev-python/setuptool" + +src_prepare() { + # python3 can be used but not with tests + checkabi() { + local exit_status=0 + if use test && [[ $(python_get_version --major) == 3 ]]; then + # Green from einfo more readable than in red from eerror. + einfo "" + einfo "tests do not support python3" + einfo "tests can be run with python2" + einfo "" + exit_status=1 + return $exit_status + fi + } + python_execute_function checkabi + distutils_src_prepare +} + +src_compile() { + distutils_src_compile +} + +src_test() { + # point distutils_src_test to tests + distutils_src_test -v test +} + +src_install() { + distutils_src_install + + if use examples; then + docompress -x usr/share/doc/${P}/samples + insinto usr/share/doc/${P}/ + doins -r samples + fi +} diff --git a/dev-python/xlutils/Manifest b/dev-python/xlutils/Manifest deleted file mode 100644 index 9e88b96..0000000 --- a/dev-python/xlutils/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST xlutils-1.5.2.tar.gz 48579 SHA256 5b8f2bc41983722a63009c0ab6216227d6bbc0a0f945c9cab33cd1ebac7666d0 SHA512 5611b08516ebcfc08f43b7b5a793c0d53c9e0dfe12b597ea318f10e794d323f87b07df0f96f58b1d4542feb7339ab7c6527c956c7a7af7d8554e41dad85c63d8 WHIRLPOOL 7a1cc3ac03fbcd1c768de6a259adaaf33ca7827af8afc3d11fe03ba462797c0e173071214fbb791d497afb6ffe6577c9eca7a41577da2c51acdc88014d4587d4 diff --git a/dev-python/xlutils/xlutils-1.5.2.ebuild b/dev-python/xlutils/xlutils-1.5.2.ebuild deleted file mode 100644 index 510cc71..0000000 --- a/dev-python/xlutils/xlutils-1.5.2.ebuild +++ /dev/null @@ -1,41 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=4 -PYTHON_DEPEND="2" -SUPPORT_PYTHON_ABIS=1 -RESTRICT_PYTHON_ABIS="3.*" -PYTHON_TESTS_RESTRICTED_ABIS="*-pypy-*" -DISTUTILS_SRC_TEST=py.test -inherit distutils - -DESCRIPTION="provides a collection of utilities for working with Excel files" -HOMEPAGE="http://pypi.python.org/pypi/xlutils" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -KEYWORDS="~amd64" -IUSE="" - -LICENSE="MIT" -SLOT="0" - -DOCS=( xlutils/readme.txt xlutils/docs/*.txt ) - -RDEPEND=">=dev-python/xlwt-0.7.3 - >=dev-python/xlrd-0.7.3" -DEPEND="${RDEPEND} - test? ( dev-python/errorhandler - dev-python/mock - >=dev-python/testfixtures-1.6.1 )" - -src_test() { - # Point distutils_src_test to tests - distutils_src_test xlutils/tests -} - -src_install() { - distutils_src_install -# docompress -x usr/share/doc/${P}/ Option - dodoc ${DOCS[@]} -} |