diff options
author | Corentin Chary <iksaif@gentoo.org> | 2013-01-08 21:47:09 +0000 |
---|---|---|
committer | Corentin Chary <iksaif@gentoo.org> | 2013-01-08 21:47:09 +0000 |
commit | f74a8c34cf7b3c3b1b4cfa8b5de18d10e11d4eca (patch) | |
tree | 9827eda559a6e6d836f3c97c3a6c54c3f59363b0 /dev-python/py-amqp | |
parent | whitespace (diff) | |
download | gentoo-2-f74a8c34cf7b3c3b1b4cfa8b5de18d10e11d4eca.tar.gz gentoo-2-f74a8c34cf7b3c3b1b4cfa8b5de18d10e11d4eca.tar.bz2 gentoo-2-f74a8c34cf7b3c3b1b4cfa8b5de18d10e11d4eca.zip |
Add py-amqp
(Portage version: 2.1.11.33/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'dev-python/py-amqp')
-rw-r--r-- | dev-python/py-amqp/ChangeLog | 10 | ||||
-rw-r--r-- | dev-python/py-amqp/files/py-amqp-1.0.6_disable_socket_tests.patch | 23 | ||||
-rw-r--r-- | dev-python/py-amqp/metadata.xml | 17 | ||||
-rw-r--r-- | dev-python/py-amqp/py-amqp-1.0.6.ebuild | 58 |
4 files changed, 108 insertions, 0 deletions
diff --git a/dev-python/py-amqp/ChangeLog b/dev-python/py-amqp/ChangeLog new file mode 100644 index 000000000000..f667488c965d --- /dev/null +++ b/dev-python/py-amqp/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-python/py-amqp +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/py-amqp/ChangeLog,v 1.1 2013/01/08 21:47:09 iksaif Exp $ + +*py-amqp-1.0.6 (08 Jan 2013) + + 08 Jan 2013; Corentin Chary <iksaif@gentoo.org> + +files/py-amqp-1.0.6_disable_socket_tests.patch, +metadata.xml, + +py-amqp-1.0.6.ebuild: + Add py-amqp diff --git a/dev-python/py-amqp/files/py-amqp-1.0.6_disable_socket_tests.patch b/dev-python/py-amqp/files/py-amqp-1.0.6_disable_socket_tests.patch new file mode 100644 index 000000000000..424b8bbe4032 --- /dev/null +++ b/dev-python/py-amqp/files/py-amqp-1.0.6_disable_socket_tests.patch @@ -0,0 +1,23 @@ + funtests/run_all.py | 6 +----- + 1 file changed, 1 insertion(+), 5 deletions(-) + +diff --git a/funtests/run_all.py b/funtests/run_all.py +index b5b7cb6..febe6ad 100755 +--- a/funtests/run_all.py ++++ b/funtests/run_all.py +@@ -27,11 +27,7 @@ import settings + TEST_NAMES = [ + 'test_exceptions', + 'test_serialization', +- 'test_basic_message', +- 'test_connection', +- 'test_channel', +- 'test_with', +- ] ++ 'test_basic_message'] + + def main(): + suite = unittest.TestLoader().loadTestsFromNames(TEST_NAMES) +-- +1.7.10.4 + diff --git a/dev-python/py-amqp/metadata.xml b/dev-python/py-amqp/metadata.xml new file mode 100644 index 000000000000..531a03cde6c5 --- /dev/null +++ b/dev-python/py-amqp/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>python</herd> + <maintainer> + <email>iksaif@gentoo.org</email> + <name>Corentin Chary</name> + </maintainer> + <use> + <flag name="extras">Install extra tools to generate initial Python mod + from an AMQP XML file</flag> + </use> + <upstream> + <remote-id type="pypi">amqp</remote-id> + <remote-id type="github">celery/py-amqp</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/py-amqp/py-amqp-1.0.6.ebuild b/dev-python/py-amqp/py-amqp-1.0.6.ebuild new file mode 100644 index 000000000000..7fc7db87122a --- /dev/null +++ b/dev-python/py-amqp/py-amqp-1.0.6.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/py-amqp/py-amqp-1.0.6.ebuild,v 1.1 2013/01/08 21:47:09 iksaif Exp $ + +EAPI="5" + +PYTHON_TESTS_RESTRICTED_ABIS="3.*" +PYTHON_DEPEND="2 3" +SUPPORT_PYTHON_ABIS="1" + +inherit distutils eutils + +MY_PN="amqp" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Low-level AMQP client for Python (fork of amqplib)" +HOMEPAGE="https://github.com/celery/py-amqp http://pypi.python.org/pypi/amqp/" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" + +S="${WORKDIR}/${MY_P}" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="examples extras test" + +RDEPEND="" +DEPEND="${RDEPEND}" + +src_prepare() { + if use test; then + epatch "${FILESDIR}/${P}_disable_socket_tests.patch" + fi +} + +src_test() { + + testing() { + PYTHONPATH="build-${PYTHON_ABI}/lib" python \ + "funtests/run_all.py" + } + + python_execute_function testing +} + +src_install() { + distutils_src_install + + dodoc docs/* + if use examples; then + docinto examples + dodoc demo/* || die "dodoc failed" + fi + if use extras; then + insinto /usr/share/${PF} + doins -r extra || die "doins failed" + fi +} |