From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- dev-python/py-amqp/Manifest | 2 + .../files/py-amqp-1.0.6_disable_socket_tests.patch | 23 ++++++++ .../files/py-amqp-1.3.3-disable_socket_tests.patch | 15 +++++ dev-python/py-amqp/metadata.xml | 13 +++++ dev-python/py-amqp/py-amqp-1.4.5.ebuild | 66 ++++++++++++++++++++++ dev-python/py-amqp/py-amqp-1.4.6.ebuild | 66 ++++++++++++++++++++++ 6 files changed, 185 insertions(+) create mode 100644 dev-python/py-amqp/Manifest create mode 100644 dev-python/py-amqp/files/py-amqp-1.0.6_disable_socket_tests.patch create mode 100644 dev-python/py-amqp/files/py-amqp-1.3.3-disable_socket_tests.patch create mode 100644 dev-python/py-amqp/metadata.xml create mode 100644 dev-python/py-amqp/py-amqp-1.4.5.ebuild create mode 100644 dev-python/py-amqp/py-amqp-1.4.6.ebuild (limited to 'dev-python/py-amqp') diff --git a/dev-python/py-amqp/Manifest b/dev-python/py-amqp/Manifest new file mode 100644 index 000000000000..2ac37c799409 --- /dev/null +++ b/dev-python/py-amqp/Manifest @@ -0,0 +1,2 @@ +DIST amqp-1.4.5.tar.gz 77748 SHA256 534c807c0081ce9c2d517615e724cb6e9df17f79cd6cd4929653ea1ea60edb60 SHA512 33cc0df95786afbd7861585a5fad4c9ec3d28709aaafdba6a7b2b8e2b36b79a129e320ce945ef59f87ccb4e83bdf68ca9bf54b4759dc2e6ba2f131777398d702 WHIRLPOOL 471731462bfa2104f0abbffbe870f47420813e8f1a20ec901414313f34105d1a5e2e9e2ef990b1e7ce09a3442af6fd6b4a4e25f293ae3d834f9953e63caab630 +DIST amqp-1.4.6.tar.gz 77902 SHA256 ebcfc867de5a68f9f5ba14d11dbad88e6aff8435a8d39339d5ceb0e5b06de640 SHA512 fe5cd7cafd9d6a4b8c1ab88a2757db440cd7b415b29c608f51052662d4c7d9e3fae81895ea09ec88f74e83ae9615c5f60b5857417b5d645086f88fc93527758c WHIRLPOOL 599dac45d24ac56407f9fbc1e00cc49884fa3717c3cbf8f7a9b59cfb78a5d9506341169f174cb7a1278e8e6745ae04aa14b6448a5250e5c40843a50f82d01d95 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/files/py-amqp-1.3.3-disable_socket_tests.patch b/dev-python/py-amqp/files/py-amqp-1.3.3-disable_socket_tests.patch new file mode 100644 index 000000000000..67353e3b8ae0 --- /dev/null +++ b/dev-python/py-amqp/files/py-amqp-1.3.3-disable_socket_tests.patch @@ -0,0 +1,15 @@ +diff -ur amqp-1.3.3.orig/funtests/run_all.py amqp-1.3.3/funtests/run_all.py +--- funtests/run_all.py 2013-11-10 08:53:13.000000000 +0800 ++++ funtests/run_all.py 2013-12-18 21:10:54.050283404 +0800 +@@ -23,10 +23,7 @@ + TEST_NAMES = [ + 'test_exceptions', + 'test_serialization', +- 'test_basic_message', +- 'test_connection', +- 'test_channel', +- 'test_with', ++ 'test_basic_message' + ] + + diff --git a/dev-python/py-amqp/metadata.xml b/dev-python/py-amqp/metadata.xml new file mode 100644 index 000000000000..46b58f8ceb3c --- /dev/null +++ b/dev-python/py-amqp/metadata.xml @@ -0,0 +1,13 @@ + + + + python + + Install extra tools to generate initial Python mod + from an AMQP XML file + + + amqp + celery/py-amqp + + diff --git a/dev-python/py-amqp/py-amqp-1.4.5.ebuild b/dev-python/py-amqp/py-amqp-1.4.5.ebuild new file mode 100644 index 000000000000..16159fd4f497 --- /dev/null +++ b/dev-python/py-amqp/py-amqp-1.4.5.ebuild @@ -0,0 +1,66 @@ +# 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 + +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="~amd64 ~x86" +IUSE="doc examples extras test" + +RDEPEND="" +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( + dev-python/sphinx[${PYTHON_USEDEP}] + >=dev-python/sphinxcontrib-issuetracker-0.9[${PYTHON_USEDEP}] + ) + test? ( + dev-python/nose[${PYTHON_USEDEP}] + dev-python/nose-cover3[${PYTHON_USEDEP}] + >=dev-python/coverage-3.0[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + ) +" + +# Same tests from before require a socket connection +PATCHES=( "${FILESDIR}"/${PN}-1.3.3-disable_socket_tests.patch ) + +python_compile_all() { + use doc && emake -C docs html +} + +python_test() { + cp -r -l funtests "${BUILD_DIR}"/lib/ || die + cd "${BUILD_DIR}"/lib || die + if [[ ${EPYTHON:6:1} == 3 ]]; then + # -n causes Python to write into hardlinked files + 2to3 --no-diffs -w funtests || die + fi + "${PYTHON}" funtests/run_all.py || die "Tests failed under ${EPYTHON}" + rm -rf funtests/ || die +} + +python_install_all() { + use examples && local EXAMPLES=( demo/. ) + use doc && local HTML_DOCS=( docs/.build/html/. ) + if use extras; then + insinto /usr/share/${PF}/extras + doins -r extra + fi + distutils-r1_python_install_all +} diff --git a/dev-python/py-amqp/py-amqp-1.4.6.ebuild b/dev-python/py-amqp/py-amqp-1.4.6.ebuild new file mode 100644 index 000000000000..fbc97f2b27e4 --- /dev/null +++ b/dev-python/py-amqp/py-amqp-1.4.6.ebuild @@ -0,0 +1,66 @@ +# 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 + +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="amd64 x86" +IUSE="doc examples extras test" + +RDEPEND="" +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( + dev-python/sphinx[${PYTHON_USEDEP}] + >=dev-python/sphinxcontrib-issuetracker-0.9[${PYTHON_USEDEP}] + ) + test? ( + dev-python/nose[${PYTHON_USEDEP}] + dev-python/nose-cover3[${PYTHON_USEDEP}] + >=dev-python/coverage-3.0[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + ) +" + +# Same tests from before require a socket connection +PATCHES=( "${FILESDIR}"/${PN}-1.3.3-disable_socket_tests.patch ) + +python_compile_all() { + use doc && emake -C docs html +} + +python_test() { + cp -r -l funtests "${BUILD_DIR}"/lib/ || die + cd "${BUILD_DIR}"/lib || die + if [[ ${EPYTHON:6:1} == 3 ]]; then + # -n causes Python to write into hardlinked files + 2to3 --no-diffs -w funtests || die + fi + "${PYTHON}" funtests/run_all.py || die "Tests failed under ${EPYTHON}" + rm -rf funtests/ || die +} + +python_install_all() { + use examples && local EXAMPLES=( demo/. ) + use doc && local HTML_DOCS=( docs/.build/html/. ) + if use extras; then + insinto /usr/share/${PF}/extras + doins -r extra + fi + distutils-r1_python_install_all +} -- cgit v1.2.3-65-gdbad