/[gentoo-x86]/dev-python/celery/celery-2.5.5.ebuild
Gentoo

Contents of /dev-python/celery/celery-2.5.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Aug 14 07:23:41 2012 UTC (9 months, 1 week ago) by iksaif
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Remove old version.

(Portage version: 2.1.11.10/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/celery/celery-2.5.5.ebuild,v 1.1 2012/07/17 15:10:59 iksaif Exp $
4
5 EAPI="4"
6
7 # Not broken but unsupported; dev-python/redis-py doesn't
8 # support python3 which is a dep in tests. pypy fails just 1 test
9 PYTHON_TESTS_RESTRICTED_ABIS="3.* 2.7-pypy-*"
10 PYTHON_DEPEND="*:2.7"
11 RESTRICT_PYTHON_ABIS="2.[5-6]"
12 SUPPORT_PYTHON_ABIS="1"
13 DISTUTILS_SRC_TEST="nosetests"
14
15 inherit distutils eutils
16
17 DESCRIPTION="Celery is an open source asynchronous task queue/job queue based on distributed message passing."
18 HOMEPAGE="http://celeryproject.org/ http://pypi.python.org/pypi/celery"
19 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
20
21 LICENSE="BSD"
22 SLOT="0"
23 KEYWORDS="~amd64 ~x86"
24 IUSE="doc examples sql test"
25
26 # jython would need: threadpool, simplejson
27 # python2.5 would need: ordereddict, test? unittest2
28 # python2.6 would need: multiprocessing, test? simplejson
29 RDEPEND=">=dev-python/kombu-2.1.1
30 <dev-python/kombu-2.2.5
31 sql? ( dev-python/sqlalchemy )
32 dev-python/python-dateutil
33 >=dev-python/anyjson-0.3.1
34 dev-python/pyparsing
35 "
36 DEPEND="${RDEPEND}
37 test? (
38 >=dev-python/mock-0.7.0
39 dev-python/pyopenssl
40 dev-python/nose-cover3
41 dev-python/sqlalchemy
42 dev-python/pymongo
43 dev-python/cl
44 dev-python/redis-py
45 dev-db/redis
46 )
47 doc? (
48 dev-python/docutils
49 dev-python/sphinx
50 dev-python/jinja
51 dev-python/sphinxcontrib-issuetracker
52 dev-python/sqlalchemy
53 )
54 dev-python/setuptools"
55
56 src_prepare() {
57 # Get tests to pass
58 # For some reason uses import pymongo.binary but system has bson.binary
59 sed -e 's:from pymongo import binary:from bson import binary:' \
60 -i celery/tests/test_backends/test_mongodb.py || die
61 sed -e 's:pymongo.binary:bson.binary:' -i celery/backends/mongodb.py || die
62 }
63
64 src_test() {
65 testing() {
66 nosetests --py3where build-${PYTHON_ABI}/lib/celery/tests
67 }
68 python_execute_function testing
69 }
70
71 src_compile() {
72 distutils_src_compile
73 dodocs() {
74 if [[ "${PYTHON_ABI}" == "2.7" ]]; then
75 mkdir docs/.build || die
76 PYTHONPATH="${S}/doc:${S}/build-${PYTHON_ABI}"/lib emake -C docs html
77 fi
78 }
79 use doc && python_execute_function dodocs
80 }
81
82 src_install() {
83 distutils_src_install --install-scripts="/usr/bin"
84
85 # Main celeryd init.d and conf.d
86 newinitd "${FILESDIR}/celery.initd" celery
87 newconfd "${FILESDIR}/celery.confd" celery
88
89 if use examples; then
90 insinto usr/share/doc/${P}/
91 doins -r examples
92 fi
93 use doc && dohtml -r docs/.build/html/
94 }

  ViewVC Help
Powered by ViewVC 1.1.13