Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/kombu/
Date: Tue, 27 Oct 2015 09:04:18
Message-Id: 1445936644.366712b7e4b46de62d03cbe6237cbea771a10bbe.jlec@gentoo
1 commit: 366712b7e4b46de62d03cbe6237cbea771a10bbe
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 27 08:20:34 2015 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 27 09:04:04 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=366712b7
7
8 dev-python/kombu: Version Bump
9
10 Package-Manager: portage-2.2.23
11 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
12
13 dev-python/kombu/Manifest | 1 +
14 dev-python/kombu/kombu-3.0.29.ebuild | 107 +++++++++++++++++++++++++++++++++++
15 2 files changed, 108 insertions(+)
16
17 diff --git a/dev-python/kombu/Manifest b/dev-python/kombu/Manifest
18 index 389ed10..7eeef39 100644
19 --- a/dev-python/kombu/Manifest
20 +++ b/dev-python/kombu/Manifest
21 @@ -3,3 +3,4 @@ DIST kombu-3.0.23.tar.gz 343923 SHA256 448c3e3ce671a10f00ee03979ba3c7866b4bfce49
22 DIST kombu-3.0.24.tar.gz 374539 SHA256 b9ff0437607113aea701fd5122c2afa40c05dff6f1da4f58b2f1ea18d9f2bf8d SHA512 fdc42073d37c0888f564ae3feec517212e3cadd534cae2a0893f799c6fea7c217aa979617ec73b63466a7b5a3dbb836b57422ce514087d4e4821e88eec5e4ffa WHIRLPOOL 8513cbe9df4337fe3545cc2a2ff3cec3c9f28b60f200aff5395b2acb484c6b75fe710b5227df6eb3fd41a6faeb49a0aaf968618e66594e9e87c20c448475d27c
23 DIST kombu-3.0.26.tar.gz 375553 SHA256 1f565abd44c4b7dfaa4dd543d52f982d2f006aba0a2b3830542b4d25a801fe09 SHA512 71656cc8f44101700c5489e0b0a66918a00cf8ff39e65feab1090865e3c8d50b6dd2458f95d48fb58cc4387de954530fe27a5713838509d51123bac7009631a2 WHIRLPOOL d706dcd752e24eebc3a1091a8a2ba91a0b6adf30fa9be4d9d1a95b5c008f8036eb518f03ccb1d3393502488120c9ad2ad2f2e01c41b59beb3576389b3f9c000f
24 DIST kombu-3.0.28.tar.gz 377706 SHA256 c22af35c4e7bbb7441b789b9b8c1baf73a8c481eaa93d00a63fa85bddc6b1ab1 SHA512 1409966edef345565f371cfa705fc643ca9b0e5ef46426f4b41859461f1c326e2c6c754ff51c337f42c42039af678d3dda0b333a2d70bbbcaa5e6c050a4d1ce9 WHIRLPOOL 780233337a574fafc187f9b4d68f17c9e68ee6e9fa7276ece859081573ace3b981dcbed2ff89b885bd7e0f8995dab42e0c34d6f47b6c0fb7dd053505a6f78d31
25 +DIST kombu-3.0.29.tar.gz 378270 SHA256 970a55ec65e668403c3e6ef4aa2213362568387885f5cc0ff8429abd44a6dca8 SHA512 1093826ec4ba8234f8f8a1082252df20e600f0b58fc46c5c5b3ee6ef3b2582e2c986f997edfa13d4c85b9473236f3cca902375109266a809d33fd76c6eb45c35 WHIRLPOOL 9e4909c02ed2be14235861d2838278d71ab90da20f59c4b02123d9ce84212c0e93cc8b162e2ef8df45d224ed0166c022fca849a6cb39143fd6554e6a00b71893
26
27 diff --git a/dev-python/kombu/kombu-3.0.29.ebuild b/dev-python/kombu/kombu-3.0.29.ebuild
28 new file mode 100644
29 index 0000000..373244c
30 --- /dev/null
31 +++ b/dev-python/kombu/kombu-3.0.29.ebuild
32 @@ -0,0 +1,107 @@
33 +# Copyright 1999-2015 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +# $Id$
36 +
37 +EAPI=5
38 +
39 +PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
40 +
41 +inherit distutils-r1
42 +
43 +DESCRIPTION="AMQP Messaging Framework for Python"
44 +HOMEPAGE="https://pypi.python.org/pypi/kombu https://github.com/celery/kombu"
45 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
46 +
47 +LICENSE="BSD"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~x86"
50 +IUSE="amqplib doc examples msgpack sqs test"
51 +
52 +# couchdb backend support possible via dev-python/couchdb-python
53 +# ditto dev-python/kazoo(>=1.3.1) and dev-python/beanstalkc
54 +PY27_GEN_USEDEP=$(python_gen_usedep python2_7)
55 +PYPY_GEN_USEDEP=$(python_gen_usedep python2_7 pypy)
56 +RDEPEND="
57 + >=dev-python/anyjson-0.3.3[${PYTHON_USEDEP}]
58 + >=dev-python/py-amqp-1.4.7[${PYTHON_USEDEP}]
59 + <dev-python/py-amqp-2.0[${PYTHON_USEDEP}]
60 + dev-python/pyro:4[${PYTHON_USEDEP}]
61 + $(python_gen_cond_dep '>=dev-python/pyzmq-13.1.0[${PYTHON_USEDEP}]' python2_7 python{3_3,3_4})
62 + amqplib? ( >=dev-python/amqplib-1.0.2[${PYTHON_USEDEP}] )
63 + sqs? ( >=dev-python/boto-2.13.3[${PY27_GEN_USEDEP}] )
64 + msgpack? ( >=dev-python/msgpack-0.3.0[${PYTHON_USEDEP}] )"
65 +# Fix to https://github.com/celery/kombu/issues/474 obliges dev-python/pymongo to >=-3.0.2
66 +DEPEND="${RDEPEND}
67 + >=dev-python/setuptools-0.7[${PYTHON_USEDEP}]
68 + test? (
69 + >=dev-python/unittest2-0.5.0[${PYTHON_USEDEP}]
70 + dev-python/nose[${PYTHON_USEDEP}]
71 + dev-python/nose-cover3[${PYTHON_USEDEP}]
72 + >=dev-python/coverage-3.0[${PYTHON_USEDEP}]
73 + >=dev-python/mock-0.7.0[${PYPY_GEN_USEDEP}]
74 + dev-python/django[${PYTHON_USEDEP}]
75 + >=dev-python/redis-py-2.10.3[${PYTHON_USEDEP}]
76 + >=dev-python/pymongo-3.0.2[${PYTHON_USEDEP}]
77 + >=dev-python/pyyaml-3.10[${PYTHON_USEDEP}] )
78 + doc? (
79 + dev-python/sphinx[${PYTHON_USEDEP}]
80 + dev-python/django[${PYTHON_USEDEP}]
81 + dev-python/beanstalkc[${PY27_GEN_USEDEP}]
82 + dev-python/couchdb-python[${PYTHON_USEDEP}]
83 + >=dev-python/sphinxcontrib-issuetracker-0.9[${PYTHON_USEDEP}] )"
84 +
85 +# kazoo and sqlalchemy are optional packages for tests.
86 +# Refrain for now, no established demand for it from users
87 +
88 +# Req'd for test phase
89 +DISTUTILS_IN_SOURCE_BUILD=1
90 +
91 +PY27_REQUSE="$(python_gen_useflags 'python2.7')"
92 +REQUIRED_USE="
93 + sqs? ( ${PY27_REQUSE} )
94 + doc? ( ${PY27_REQUSE} amqplib sqs )" # 2 deps in doc build are py2 capable only
95 +
96 +PATCHES=(
97 + "${FILESDIR}"/${PN}-NA-tests-fix.patch
98 + )
99 +
100 +python_prepare_all() {
101 + https://github.com/celery/kombu/issues/246
102 + sed -e 's:kombu.transports:kombu.transport:' -i funtests/tests/test_django.py
103 + distutils-r1_python_prepare_all
104 +}
105 +
106 +python_compile_all() {
107 + # Doc build must be done by py2.7
108 + # Doc build misses and skips only content re librabbitmq which is not in portage
109 + if use doc; then
110 + emake -C docs html || die "kombu docs failed installation"
111 + fi
112 +}
113 +
114 +python_test() {
115 + export DJANGO_SETTINGS_MODULE="django.conf"
116 + # https://github.com/celery/kombu/issues/474
117 + # tests need </pymongo-3.0; known to cause some breakage
118 + if python_is_python3; then
119 + 2to3 --no-diffs -w build/lib/kombu/transport/
120 + nosetests --py3where=build/lib kombu/tests || die "Tests failed under ${EPYTHON}"
121 + else
122 + nosetests "${S}"/kombu/tests || die "Tests failed under ${EPYTHON}"
123 + # funtests appears to be coded only for py2, a kind of 2nd tier. pypy fails 6.
124 + # https://github.com/celery/kombu/issues/411
125 + # Fix to https://github.com/celery/kombu/issues/474 breaks the
126 + # funtests under >=dev-python/pymongo-3.0.2
127 +# if [[ "${EPYTHON}" == python2.7 ]]; then
128 +# pushd funtests > /dev/null
129 +# esetup.py test
130 +# popd > /dev/null
131 +# fi
132 + fi
133 +}
134 +
135 +python_install_all() {
136 + use examples && local EXAMPLES=( examples/. )
137 + use doc && local HTML_DOCS=( docs/.build/html/. )
138 + distutils-r1_python_install_all
139 +}