Gentoo Archives: gentoo-commits

From: "Ian Delaney (idella4)" <idella4@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/kombu: kombu-3.0.18.ebuild ChangeLog
Date: Sat, 07 Jun 2014 12:27:16
Message-Id: 20140607122711.6C2CF2004E@flycatcher.gentoo.org
1 idella4 14/06/07 12:27:11
2
3 Modified: ChangeLog
4 Added: kombu-3.0.18.ebuild
5 Log:
6 bump, adjust test phase according to new failaures
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
9
10 Revision Changes Path
11 1.35 dev-python/kombu/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/kombu/ChangeLog?rev=1.35&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/kombu/ChangeLog?rev=1.35&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/kombu/ChangeLog?r1=1.34&r2=1.35
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/kombu/ChangeLog,v
20 retrieving revision 1.34
21 retrieving revision 1.35
22 diff -u -r1.34 -r1.35
23 --- ChangeLog 1 Jun 2014 14:40:08 -0000 1.34
24 +++ ChangeLog 7 Jun 2014 12:27:11 -0000 1.35
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-python/kombu
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/kombu/ChangeLog,v 1.34 2014/06/01 14:40:08 idella4 Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/kombu/ChangeLog,v 1.35 2014/06/07 12:27:11 idella4 Exp $
30 +
31 +*kombu-3.0.18 (07 Jun 2014)
32 +
33 + 07 Jun 2014; Ian Delaney <idella4@g.o> +kombu-3.0.18.ebuild:
34 + bump, adjust test phase according to new failaures
35
36 *kombu-3.0.16 (01 Jun 2014)
37
38
39
40
41 1.1 dev-python/kombu/kombu-3.0.18.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/kombu/kombu-3.0.18.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/kombu/kombu-3.0.18.ebuild?rev=1.1&content-type=text/plain
45
46 Index: kombu-3.0.18.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-python/kombu/kombu-3.0.18.ebuild,v 1.1 2014/06/07 12:27:11 idella4 Exp $
51
52 EAPI=5
53
54 PYTHON_COMPAT=( python{2_7,3_3,3_4} )
55
56 inherit distutils-r1
57
58 DESCRIPTION="AMQP Messaging Framework for Python"
59 HOMEPAGE="http://pypi.python.org/pypi/kombu https://github.com/celery/kombu"
60 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
61
62 LICENSE="BSD"
63 SLOT="0"
64 KEYWORDS="~amd64 ~x86"
65 IUSE="amqplib doc examples msgpack sqs test"
66
67 PY27_GEN_USEDEP=$(python_gen_usedep python2_7)
68 RDEPEND=">=dev-python/anyjson-0.3.3[${PYTHON_USEDEP}]
69 >=dev-python/py-amqp-1.4.5[${PYTHON_USEDEP}]
70 <dev-python/py-amqp-2.0[${PYTHON_USEDEP}]
71 amqplib? ( >=dev-python/amqplib-1.0.2[${PYTHON_USEDEP}] )
72 sqs? ( >=dev-python/boto-2.13.3[${PY27_GEN_USEDEP}] )
73 msgpack? ( >=dev-python/msgpack-0.2.0[${PYTHON_USEDEP}] )"
74
75 DEPEND="${RDEPEND}
76 >=dev-python/setuptools-0.7[${PYTHON_USEDEP}]
77 test? ( dev-python/nose[${PYTHON_USEDEP}]
78 dev-python/nose-cover3[${PYTHON_USEDEP}]
79 >=dev-python/mock-0.7[${PYTHON_USEDEP}]
80 dev-python/django[${PYTHON_USEDEP}]
81 dev-python/redis-py[${PYTHON_USEDEP}]
82 dev-python/pymongo[${PYTHON_USEDEP}]
83 >=dev-python/unittest2-0.5.0[${PYTHON_USEDEP}] )
84 doc? ( dev-python/sphinx[${PYTHON_USEDEP}]
85 dev-python/django[${PYTHON_USEDEP}]
86 dev-python/beanstalkc[${PY27_GEN_USEDEP}]
87 dev-python/couchdb-python[${PY27_GEN_USEDEP}]
88 >=dev-python/sphinxcontrib-issuetracker-0.9[${PYTHON_USEDEP}] )"
89
90 # pyyaml is an optional package for tests, refrain for now
91 # Req'd for test phase
92 DISTUTILS_IN_SOURCE_BUILD=1
93
94 PY27_REQUSE="$(python_gen_useflags 'python2.7')"
95 REQUIRED_USE="sqs? ( ${PY27_REQUSE} )
96 doc? ( ${PY27_REQUSE} amqplib sqs )" # 2 deps in doc build are only py2 capable
97
98 python_prepare_all() {
99 https://github.com/celery/kombu/issues/246
100 sed -e 's:kombu.transports:kombu.transport:' -i funtests/tests/test_django.py
101 distutils-r1_python_prepare_all
102 }
103
104 python_compile_all() {
105 # Doc build must be done by py2.7
106 # Doc build misses and skips only content re librabbitmq which is not in portage
107 if use doc; then
108 emake -C docs html || die "kombu docs failed installation"
109 fi
110 }
111
112 python_test() {
113 export DJANGO_SETTINGS_MODULE="django.conf"
114 # https://github.com/celery/kombu/issues/364. Cleaner for now to ignore the whole test_ file
115 if python_is_python3; then
116 2to3 --no-diffs -w build/lib/kombu/transport/
117 nosetests --py3where=build/lib kombu/tests -I test_amqplib.py || die "Tests failed under ${EPYTHON}"
118 else
119 # funtests appears to be coded only for py2, a kind of 2nd tier.
120 nosetests "${S}"/kombu/tests -I test_amqplib.py || die "Tests failed under ${EPYTHON}"
121 pushd funtests > /dev/null
122 # For now, use nosetests manually, return to esetup.py on fixing of issues/364
123 nosetests -I test_amqplib.py || die "Tests failed under ${EPYTHON}"
124 popd > /dev/null
125 fi
126 }
127
128 python_install_all() {
129 use examples && local EXAMPLES=( examples/. )
130 use doc && local HTML_DOCS=( docs/.build/html/. )
131 distutils-r1_python_install_all
132 }