diff options
| author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
|---|---|---|
| committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
| commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
| tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-python/amqplib | |
| download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip | |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-python/amqplib')
| -rw-r--r-- | dev-python/amqplib/Manifest | 2 | ||||
| -rw-r--r-- | dev-python/amqplib/amqplib-0.6.1-r1.ebuild | 43 | ||||
| -rw-r--r-- | dev-python/amqplib/amqplib-1.0.2-r1.ebuild | 41 | ||||
| -rw-r--r-- | dev-python/amqplib/files/amqplib-0.6.1_disable_socket_tests.patch | 17 | ||||
| -rw-r--r-- | dev-python/amqplib/files/amqplib-1.0.2-unicode_tests_py3.patch | 63 | ||||
| -rw-r--r-- | dev-python/amqplib/metadata.xml | 16 |
6 files changed, 182 insertions, 0 deletions
diff --git a/dev-python/amqplib/Manifest b/dev-python/amqplib/Manifest new file mode 100644 index 000000000000..35fa5a096ebf --- /dev/null +++ b/dev-python/amqplib/Manifest @@ -0,0 +1,2 @@ +DIST amqplib-0.6.1.tgz 53680 SHA256 0f2618b74d95cd360a6d46a309a3fb1c37d881a237e269ac195a69a34e0e2f62 SHA512 ec97312e8fe8a297dff37057f7498ab72d1655aa3ac22453c84b6142db8469a51a29c676a359802be45a575b91e7f72f624233564a8e41aeeb987acbb1412954 WHIRLPOOL a75b19a1bd74d8d9a212d703c6a7b0a240ec0866cae4276e580a5f4abc5ad72224152f419b3dc37c12529d08dffc14c18107077ea4a93570fa5ff6341448a8d7 +DIST amqplib-1.0.2.tgz 58544 SHA256 843d69b681a60afd21fbf50f310404ec67fcdf9d13dfcf6e9d41f3b456217e5b SHA512 6c8c9fd7fd68fd6a1eb944962094e57f89525bc78dd002dc0dadd491b262293367a86569dfc52f0701723b4327b7c290150dc2e69e3ac1a28613578d9e0d0710 WHIRLPOOL f3584906a9f6407271335d838cd3b49d3d04b1ec9da04cbc0483272c6f3a73c7307f6bacd6ef8f4a6cf64a348eae631619c1ab09a951d0f3aaa69a1271964cb2 diff --git a/dev-python/amqplib/amqplib-0.6.1-r1.ebuild b/dev-python/amqplib/amqplib-0.6.1-r1.ebuild new file mode 100644 index 000000000000..f283aaf974c1 --- /dev/null +++ b/dev-python/amqplib/amqplib-0.6.1-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 eutils + +DESCRIPTION="Python client for the Advanced Message Queuing Procotol (AMQP)" +HOMEPAGE="http://code.google.com/p/py-amqplib/" +SRC_URI="http://py-amqplib.googlecode.com/files/${P}.tgz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="examples extras test" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +RDEPEND="" + +PATCHES=( + "${FILESDIR}/${P}_disable_socket_tests.patch" +) + +python_test() { + "${PYTHON}" tests/client_0_8/run_all.py \ + || die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + distutils-r1_python_install_all + + dodoc -r docs/. + if use examples; then + docinto examples + dodoc -r demo/. + fi + if use extras; then + insinto /usr/share/${PF} + doins -r extras + fi +} diff --git a/dev-python/amqplib/amqplib-1.0.2-r1.ebuild b/dev-python/amqplib/amqplib-1.0.2-r1.ebuild new file mode 100644 index 000000000000..cbb514b5b0c7 --- /dev/null +++ b/dev-python/amqplib/amqplib-1.0.2-r1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy ) + +inherit distutils-r1 + +DESCRIPTION="Python client for the Advanced Message Queuing Procotol (AMQP)" +HOMEPAGE="http://code.google.com/p/py-amqplib/" +SRC_URI="http://py-amqplib.googlecode.com/files/${P}.tgz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="examples extras test" + +PATCHES=( + "${FILESDIR}/${PN}-0.6.1_disable_socket_tests.patch" + "${FILESDIR}/${P}-unicode_tests_py3.patch" +) + +python_test() { + "${PYTHON}" tests/client_0_8/run_all.py \ + || die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + distutils-r1_python_install_all + + dodoc -r docs/. + if use examples; then + docinto examples + dodoc -r demo/. + fi + if use extras; then + insinto /usr/share/${PF} + doins -r extras + fi +} diff --git a/dev-python/amqplib/files/amqplib-0.6.1_disable_socket_tests.patch b/dev-python/amqplib/files/amqplib-0.6.1_disable_socket_tests.patch new file mode 100644 index 000000000000..c92e3cba64f4 --- /dev/null +++ b/dev-python/amqplib/files/amqplib-0.6.1_disable_socket_tests.patch @@ -0,0 +1,17 @@ +diff -uNr amqplib-0.6.1.org/tests/client_0_8/run_all.py amqplib-0.6.1/tests/client_0_8/run_all.py +--- amqplib-0.6.1.org/tests/client_0_8/run_all.py 2011-07-06 16:21:22.000000000 -0400 ++++ amqplib-0.6.1/tests/client_0_8/run_all.py 2011-07-06 16:21:38.000000000 -0400 +@@ -28,13 +28,8 @@ + 'test_exceptions', + 'test_serialization', + 'test_basic_message', +- 'test_connection', +- 'test_channel', + ] + +-if sys.version_info >= (2, 5): +- TEST_NAMES.append('test_with') +- + def main(): + suite = unittest.TestLoader().loadTestsFromNames(TEST_NAMES) + unittest.TextTestRunner(**settings.test_args).run(suite) diff --git a/dev-python/amqplib/files/amqplib-1.0.2-unicode_tests_py3.patch b/dev-python/amqplib/files/amqplib-1.0.2-unicode_tests_py3.patch new file mode 100644 index 000000000000..14252a678203 --- /dev/null +++ b/dev-python/amqplib/files/amqplib-1.0.2-unicode_tests_py3.patch @@ -0,0 +1,63 @@ +--- a/tests/client_0_8/test_serialization.py 2011-07-18 00:11:48.000000000 -0400 ++++ b/tests/client_0_8/test_serialization.py 2012-03-02 16:54:35.000000000 -0500 +@@ -32,6 +32,18 @@ + # Python 2.5 and lower + bytes = str + ++#Unicode Strings for py3 tests ++uni_strings = { ++ 'u0100' : '\u0100', ++ 'hello' : 'hello', ++ 'a' : 'a', ++ 'another' : 'And something in unicode' ++} ++ ++if hasattr(str, 'decode'): ++ for wk, wv in uni_strings.iteritems(): ++ uni_strings[wk] = wv.decode("utf-8") ++ + import settings + + from amqplib.client_0_8.serialization import AMQPReader, AMQPWriter, GenericContent +@@ -232,12 +244,12 @@ + + def test_shortstr_unicode(self): + w = AMQPWriter() +- w.write_shortstr(u'hello') ++ w.write_shortstr(uni_strings['hello']) + s = w.getvalue() + self.assertEqualBinary(s, '\x05hello') + + r = AMQPReader(s) +- self.assertEqual(r.read_shortstr(), u'hello') ++ self.assertEqual(r.read_shortstr(),uni_strings['hello']) + + def test_long_shortstr(self): + w = AMQPWriter() +@@ -245,7 +257,7 @@ + + def test_long_shortstr_unicode(self): + w = AMQPWriter() +- self.assertRaises(ValueError, w.write_shortstr, u'\u0100' * 128) ++ self.assertRaises(ValueError, w.write_shortstr, uni_strings['u0100'] * 128) + + + # +@@ -273,7 +285,7 @@ + self.assertEqual(r.read_longstr(), str(val)) + + def test_longstr_unicode(self): +- val = u'a' * 512 ++ val = uni_strings['a'] * 512 + w = AMQPWriter() + w.write_longstr(val) + s = w.getvalue() +@@ -324,7 +336,7 @@ + 'foo': 7, + 'bar': Decimal('123345.1234'), + 'baz': 'this is some random string I typed', +- 'ubaz': u'And something in unicode', ++ 'ubaz': uni_strings['another'], + 'dday_aniv': datetime(1994, 6, 6), + 'more': { + 'abc': -123, diff --git a/dev-python/amqplib/metadata.xml b/dev-python/amqplib/metadata.xml new file mode 100644 index 000000000000..c021a58ce6e8 --- /dev/null +++ b/dev-python/amqplib/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>python</herd> + <maintainer> + <email>neurogeek@gentoo.org</email> + <name>Jesus Rivero</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="google-code">py-amqplib</remote-id> + </upstream> +</pkgmetadata> |
