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/celery/files/, dev-python/celery/
Date: Tue, 27 Oct 2015 09:04:18
Message-Id: 1445936644.2c1d645b9505fed87d022714d1f1831d6a2ae47f.jlec@gentoo
1 commit: 2c1d645b9505fed87d022714d1f1831d6a2ae47f
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 27 08:36:14 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=2c1d645b
7
8 dev-python/celery: Version Bump
9
10 Package-Manager: portage-2.2.23
11 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
12
13 dev-python/celery/Manifest | 1 +
14 dev-python/celery/celery-3.1.19.ebuild | 109 +++++++++++++++++++++++
15 dev-python/celery/files/celery-3.1.19-test.patch | 16 ++++
16 3 files changed, 126 insertions(+)
17
18 diff --git a/dev-python/celery/Manifest b/dev-python/celery/Manifest
19 index bf6365d..d144acd 100644
20 --- a/dev-python/celery/Manifest
21 +++ b/dev-python/celery/Manifest
22 @@ -1,2 +1,3 @@
23 DIST celery-3.1.17.tar.gz 1297008 SHA256 cfe2b653268bd586e2d08a75e886f7be3be55ba372f72e2f5747aeb76c470362 SHA512 f45f92161c134f528719768ad863df6b49fa69e022b47ea801e590de8579c24c6a5ec9dd88f712e180ed7d23f4510cecf4f17a959c3338d4bad79f8d7d202453 WHIRLPOOL c0f4ddab40eab2afe579c88bc9e47d46a650a73212abb7cb1d343d7ba72c1d96913c1c04a6e9920789bd6f9bf6907c09e6326aa08e6ba3cf68545e44432b95de
24 DIST celery-3.1.18.tar.gz 1298756 SHA256 0924f94070c6fc57d408b169848c5b38832668fffe060e48b4803fb23e0e3eaf SHA512 219291a64c72a0c95a2b184903e491d5b6b1396b4b519d54503bb059af305c2f118865b71510d5685b8f5946135596c9d80d6ca10162a938ed90baaf4c3c48c3 WHIRLPOOL 0d27eda95fea5b6235afd7d5f90de249eec6d7c58a7563afb0cc73d29b84cb6903eced4b9515fe574206111fc4a304c5f24d3c476b4315416b441f324f2ebfa5
25 +DIST celery-3.1.19.tar.gz 1302241 SHA256 bd6a21290c822ecf78947a7dbc8b2270d88a5fa08a7a2bfcd908bb3d5ed66b71 SHA512 47aef118fb4178a4874608a8e9370d6f81d5594aba6d25e679a78bd530b57f0566a27db4fdb50786a237b1747dfc2b662462f107230d0653da28ac1d4b64b703 WHIRLPOOL 37076e3d414cdd74e4b2d2145189a11380da58f77fe1acd44d190f8de1744b909512d895c00ec2c0252c23d9300b7b011f06b388a45526d9573fa00bc71986d7
26
27 diff --git a/dev-python/celery/celery-3.1.19.ebuild b/dev-python/celery/celery-3.1.19.ebuild
28 new file mode 100644
29 index 0000000..e746f2b
30 --- /dev/null
31 +++ b/dev-python/celery/celery-3.1.19.ebuild
32 @@ -0,0 +1,109 @@
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=( python2_7 python3_{3,4} )
40 +
41 +inherit distutils-r1 bash-completion-r1
42 +
43 +DESCRIPTION="Open source asynchronous task queue/job queue based on distributed message passing"
44 +HOMEPAGE="http://celeryproject.org/ https://pypi.python.org/pypi/celery"
45 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
46 +
47 +LICENSE="BSD"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~x86"
50 +# There are a number of other optional 'extras' which overlap with those of kombu, however
51 +# there has been no apparent expression of interest or demand by users for them. See requires.txt
52 +IUSE="doc examples redis sqs test yaml zeromq"
53 +
54 +RDEPEND="
55 + <dev-python/kombu-3.1[${PYTHON_USEDEP}]
56 + >=dev-python/kombu-3.0.29[${PYTHON_USEDEP}]
57 + >=dev-python/anyjson-0.3.3[${PYTHON_USEDEP}]
58 + >=dev-python/billiard-3.3.0.21[${PYTHON_USEDEP}]
59 + <dev-python/billiard-3.4[${PYTHON_USEDEP}]
60 + dev-python/pytz[${PYTHON_USEDEP}]
61 + dev-python/greenlet[${PYTHON_USEDEP}]
62 +"
63 +
64 +DEPEND="
65 + dev-python/setuptools[${PYTHON_USEDEP}]
66 + test? ( ${RDEPEND}
67 + dev-python/gevent[$(python_gen_usedep python2_7)]
68 + >=dev-python/mock-1.0.1[${PYTHON_USEDEP}]
69 + dev-python/nose-cover3[${PYTHON_USEDEP}]
70 + >=dev-python/pymongo-2.6.2[${PYTHON_USEDEP}]
71 + dev-python/pyopenssl[${PYTHON_USEDEP}]
72 + >=dev-python/python-dateutil-2.1[${PYTHON_USEDEP}]
73 + dev-python/sqlalchemy[${PYTHON_USEDEP}]
74 + dev-python/redis-py[${PYTHON_USEDEP}]
75 + >=dev-db/redis-2.8.0
76 + >=dev-python/boto-2.13.3[${PYTHON_USEDEP}]
77 + >=dev-python/pyzmq-13.1.0[${PYTHON_USEDEP}]
78 + >=dev-python/pyyaml-3.10[${PYTHON_USEDEP}]
79 + )
80 + doc? (
81 + dev-python/docutils[${PYTHON_USEDEP}]
82 + dev-python/sphinx[${PYTHON_USEDEP}]
83 + dev-python/jinja[${PYTHON_USEDEP}]
84 + dev-python/sqlalchemy[${PYTHON_USEDEP}]
85 + )"
86 +
87 +PATCHES=(
88 + "${FILESDIR}"/celery-docs.patch
89 + "${FILESDIR}"/${P}-test.patch
90 +)
91 +
92 +# testsuite needs it own source
93 +DISTUTILS_IN_SOURCE_BUILD=1
94 +
95 +python_compile_all() {
96 + if use doc; then
97 + mkdir docs/.build || die
98 + emake -C docs html
99 + fi
100 +}
101 +
102 +python_test() {
103 + nosetests --verbose || die "Tests failed with ${EPYTHON}"
104 +}
105 +
106 +python_install_all() {
107 + # Main celeryd init.d and conf.d
108 + newinitd "${FILESDIR}/celery.initd-r2" celery
109 + newconfd "${FILESDIR}/celery.confd-r2" celery
110 +
111 + use examples && local EXAMPLES=( examples/. )
112 +
113 + use doc && local HTML_DOCS=( docs/.build/html/. )
114 +
115 + newbashcomp extra/bash-completion/celery.bash ${PN}
116 +
117 + distutils-r1_python_install_all
118 +}
119 +
120 +pkg_postinst() {
121 + optfeature "zookeper support" dev-python/kazoo
122 + optfeature "msgpack support" dev-python/msgpack
123 + #optfeature "rabbitmq support" dev-python/librabbitmq
124 + #optfeature "slmq support" dev-python/softlayer_messaging
125 + optfeature "eventlet support" dev-python/eventlet
126 + #optfeature "couchbase support" dev-python/couchbase
127 + optfeature "redis support" dev-db/redis dev-python/redis-py
128 + optfeature "couchdb support" dev-db/couchdb dev-python/couchdb-python
129 + optfeature "gevent support" dev-python/gevent
130 + optfeature "auth support" dev-python/pyopenssl
131 + optfeature "pyro support" dev-python/pyro:4
132 + optfeature "yaml support" dev-python/pyyaml
133 + optfeature "beanstalk support" dev-python/beanstalkc
134 + optfeature "memcache support" dev-python/pylibmc
135 + #optfeature "threads support" dev-python/threadpool
136 + optfeature "mongodb support" dev-python/pymongo
137 + optfeature "zeromq support" dev-python/pyzmq
138 + optfeature "sqlalchemy support" dev-python/sqlalchemy
139 + optfeature "sqs support" dev-python/boto
140 + #optfeature "cassandra support" dev-python/pycassa
141 +}
142
143 diff --git a/dev-python/celery/files/celery-3.1.19-test.patch b/dev-python/celery/files/celery-3.1.19-test.patch
144 new file mode 100644
145 index 0000000..25b4145
146 --- /dev/null
147 +++ b/dev-python/celery/files/celery-3.1.19-test.patch
148 @@ -0,0 +1,16 @@
149 +https://github.com/celery/celery/commit/fb48b1f357f7a416d1413d0056158a74191185af.diff
150 +diff --git a/celery/tests/backends/test_mongodb.py b/celery/tests/backends/test_mongodb.py
151 +index f7546d3..a32d9ed 100644
152 +--- a/celery/tests/backends/test_mongodb.py
153 ++++ b/celery/tests/backends/test_mongodb.py
154 +@@ -253,8 +253,8 @@ def test_restore_group(self, mock_get_database):
155 + mock_collection.find_one.assert_called_once_with(
156 + {'_id': sentinel.taskset_id})
157 + self.assertItemsEqual(
158 +- ['date_done', 'result', 'task_id'],
159 +- list(ret_val.keys()),
160 ++ list(sorted(['date_done', 'result', 'task_id'])),
161 ++ list(sorted(ret_val.keys())),
162 + )
163 +
164 + @patch('celery.backends.mongodb.MongoBackend._get_database')