diff options
author | Justin Lecher <jlec@gentoo.org> | 2015-11-30 11:57:54 +0100 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2015-11-30 11:57:54 +0100 |
commit | c5e68da35b5ec52b8d4482ff4c7228a031603fe0 (patch) | |
tree | 77827524a7a6569600527dbc1eabe8cdef98bcdd /dev-python/django-celery/django-celery-3.1.17.ebuild | |
parent | dev-python/django-celery: Raise max django version to include latest sec update (diff) | |
download | gentoo-c5e68da35b5ec52b8d4482ff4c7228a031603fe0.tar.gz gentoo-c5e68da35b5ec52b8d4482ff4c7228a031603fe0.tar.bz2 gentoo-c5e68da35b5ec52b8d4482ff4c7228a031603fe0.zip |
dev-python/django-celery: Version Bump
Package-Manager: portage-2.2.25
Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'dev-python/django-celery/django-celery-3.1.17.ebuild')
-rw-r--r-- | dev-python/django-celery/django-celery-3.1.17.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/dev-python/django-celery/django-celery-3.1.17.ebuild b/dev-python/django-celery/django-celery-3.1.17.ebuild new file mode 100644 index 000000000000..41aef6b7da42 --- /dev/null +++ b/dev-python/django-celery/django-celery-3.1.17.ebuild @@ -0,0 +1,59 @@ +# 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_4} ) +PYTHON_REQ_USE="sqlite(+)" + +inherit distutils-r1 eutils + +DESCRIPTION="Celery Integration for Django" +HOMEPAGE="http://celeryproject.org/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc examples test" + +# Python testsuite fails when built against dev-python/django-1.8.5 +# with ValueError: save() prohibited to prevent data loss due to +# unsaved related object 'interval'. + +PY2_USEDEP=$(python_gen_usedep python2_7) +RDEPEND=">=dev-python/celery-3.1.15[${PYTHON_USEDEP}] + >dev-python/django-1.4[${PYTHON_USEDEP}] + <dev-python/django-1.9[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + dev-python/django-nose[${PYTHON_USEDEP}] + >=dev-python/coverage-3.0[${PYTHON_USEDEP}] + dev-python/nose-cover3[${PYTHON_USEDEP}] + dev-python/mock[${PY2_USEDEP}] + dev-python/python-memcached[${PY2_USEDEP}] ) + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/sphinxcontrib-issuetracker[${PY2_USEDEP}] + dev-python/python-memcached[${PY2_USEDEP}] + )" + +PY27_REQUSE="$(python_gen_useflags 'python2.7')" +REQUIRED_USE=" + doc? ( ${PY27_REQUSE} )" + +python_compile_all() { + use doc && emake -C docs html +} + +python_test() { + # https://github.com/celery/django-celery/issues/342 + "${PYTHON}" tests/manage.py test +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/.build/html/. ) + use examples && local EXAMPLES=( examples/. ) + distutils-r1_python_install_all +} |