diff options
author | Ian Delaney <idella4@gentoo.org> | 2013-05-08 18:14:17 +0000 |
---|---|---|
committer | Ian Delaney <idella4@gentoo.org> | 2013-05-08 18:14:17 +0000 |
commit | c9983682a6651c83b32175154c4ecbdee7dc1841 (patch) | |
tree | 976d649259b15a490c7db5c62f43c1b0b0ab2c55 /dev-python/pyzmq | |
parent | Apply upstream fix for systemd-sleep, bug 468998 by Paul Volkov. (diff) | |
download | gentoo-2-c9983682a6651c83b32175154c4ecbdee7dc1841.tar.gz gentoo-2-c9983682a6651c83b32175154c4ecbdee7dc1841.tar.bz2 gentoo-2-c9983682a6651c83b32175154c4ecbdee7dc1841.zip |
Add IUSE green to enable gevent support, re-added py3 support accordingly, adjusted pydeps for cffi, tidied test phase
(Portage version: 2.1.11.62/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
Diffstat (limited to 'dev-python/pyzmq')
-rw-r--r-- | dev-python/pyzmq/ChangeLog | 7 | ||||
-rw-r--r-- | dev-python/pyzmq/metadata.xml | 3 | ||||
-rw-r--r-- | dev-python/pyzmq/pyzmq-13.1.0.ebuild | 27 |
3 files changed, 20 insertions, 17 deletions
diff --git a/dev-python/pyzmq/ChangeLog b/dev-python/pyzmq/ChangeLog index c3d3138bc24f..d45687f1e6af 100644 --- a/dev-python/pyzmq/ChangeLog +++ b/dev-python/pyzmq/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-python/pyzmq # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pyzmq/ChangeLog,v 1.32 2013/05/08 08:22:04 idella4 Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/pyzmq/ChangeLog,v 1.33 2013/05/08 18:14:17 idella4 Exp $ + + 08 May 2013; Ian Delaney <idella4@gentoo.org> metadata.xml, + pyzmq-13.1.0.ebuild, pyzmq-2.2.0.1-r1.ebuild: + Add IUSE green to enable gevent support, re-added py3 support accordingly, + adjusted pydeps for cffi, tidied test phase 08 May 2013; Ian Delaney <idella4@gentoo.org> pyzmq-13.1.0.ebuild, pyzmq-2.2.0.1-r1.ebuild: diff --git a/dev-python/pyzmq/metadata.xml b/dev-python/pyzmq/metadata.xml index 1eddb7dc2c03..f110ed7f9f6c 100644 --- a/dev-python/pyzmq/metadata.xml +++ b/dev-python/pyzmq/metadata.xml @@ -2,6 +2,9 @@ <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <herd>python</herd> + <use> + <flag name="green">Enable gevent compatibility with zeromq</flag> + </use> <upstream> <remote-id type="pypi">pyzmq</remote-id> </upstream> diff --git a/dev-python/pyzmq/pyzmq-13.1.0.ebuild b/dev-python/pyzmq/pyzmq-13.1.0.ebuild index 2603c867715d..0abbebfa4951 100644 --- a/dev-python/pyzmq/pyzmq-13.1.0.ebuild +++ b/dev-python/pyzmq/pyzmq-13.1.0.ebuild @@ -1,10 +1,9 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pyzmq/pyzmq-13.1.0.ebuild,v 1.2 2013/05/08 08:22:04 idella4 Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/pyzmq/pyzmq-13.1.0.ebuild,v 1.3 2013/05/08 18:14:17 idella4 Exp $ EAPI=5 -# Need hold off pypy support until https://bugs.pypy.org/issue1480 has a fix, also makes py3 incapable -PYTHON_COMPAT=( python{2_6,2_7} ) +PYTHON_COMPAT=( python{2_6,2_7,3_1,3_2,3_3} ) inherit distutils-r1 @@ -15,16 +14,17 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="LGPL-3" SLOT="0" KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux" -IUSE="examples test" +IUSE="examples green test" PY2_USEDEP=$(python_gen_usedep 'python2*') RDEPEND=">=net-libs/zeromq-2.1.9 - dev-python/gevent[${PY2_USEDEP}]" + green? ( dev-python/gevent[${PY2_USEDEP}] )" DEPEND="${RDEPEND} test? ( - !arm? ( dev-python/cffi[${PY2_USEDEP}] ) + !arm? ( dev-python/cffi[${PYTHON_USEDEP}] ) dev-python/nose[${PY2_USEDEP}] + dev-python/gevent[${PY2_USEDEP}] dev-python/cython[${PY2_USEDEP}] )" @@ -35,16 +35,11 @@ DISTUTILS_IN_SOURCE_BUILD=1 REQUIRED_USE="test? ( !arm )" python_test() { -# local test - nosetests -svw build/lib* || die "Tests fail with ${EPYTHON}" - # For pypy capable; avoids nosetests trawling wrong files triggering erroneous error under pypy -# for test in build/lib/zmq/tests/test_*.py; do -# if "${PYTHON}" ${test}; then -# einfo "Passed ${test}" -# else -# die "testsuite failed ${test} under ${EPYTHON}" -# fi -# done + if [[ "${EPYTHON}" == python3* ]]; then + einfo "Skipping python3 due to many incompatibilities" + else + nosetests -svw build/lib/ || die "Tests fail with ${EPYTHON}" + fi } python_install_all() { |