From: W. Trevor King Date: Sat, 4 Oct 2014 00:09:41 +0000 (-0700) Subject: dev-python/django-configurations: Add this Raven test dependency X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=refs%2Fheads%2Fdev-python%2Fdjango-configurations;p=wtk-overlay.git dev-python/django-configurations: Add this Raven test dependency The django-cache-url dependency avoids the following test failure: Traceback (most recent call last): File "/.../configurations/utils.py", line 32, in import_by_path module = import_module(module_path) File "/usr/lib64/python3.3/importlib/__init__.py", line 90, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1584, in _gcd_import File "", line 1565, in _find_and_load File "", line 1529, in _find_and_load_unlocked ImportError: No module named 'django_cache_url' The dj-database-url dependency avoids the following test failure: Traceback (most recent call last): File "/.../configurations/utils.py", line 32, in import_by_path module = import_module(module_path) File "/usr/lib64/python3.3/importlib/__init__.py", line 90, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1584, in _gcd_import File "", line 1565, in _find_and_load File "", line 1529, in _find_and_load_unlocked ImportError: No module named 'dj_database_url' The dj-email-url dependency avoids the following test failure: Traceback (most recent call last): File "/.../configurations/utils.py", line 32, in import_by_path module = import_module(module_path) File "/usr/lib64/python3.3/importlib/__init__.py", line 90, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1584, in _gcd_import File "", line 1565, in _find_and_load File "", line 1529, in _find_and_load_unlocked ImportError: No module named 'dj_email_url' The dj-search-url dependency avoids the following test failure: Traceback (most recent call last): File "/.../configurations/utils.py", line 32, in import_by_path module = import_module(module_path) File "/usr/lib64/python3.3/importlib/__init__.py", line 90, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1584, in _gcd_import File "", line 1565, in _find_and_load File "", line 1529, in _find_and_load_unlocked ImportError: No module named 'dj_search_url' --- 399d136117b55568ebb96f50bd4f0106dceafed3 diff --git a/django-configurations-9999.ebuild b/django-configurations-9999.ebuild new file mode 100644 index 0000000..26175c5 --- /dev/null +++ b/django-configurations-9999.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 +PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy ) + +inherit distutils-r1 + +if [[ "${PV}" == "9999" ]]; then + inherit git-2 + EGIT_REPO_URI="git://github.com/jezdez/${PN}.git" + SRC_URI="" +else + SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" +fi + +DESCRIPTION="A helper for organizing Django project settings" +HOMEPAGE="http://django-configurations.readthedocs.org/ https://pypi.python.org/pypi/django-configurations" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND=" + dev-python/dj-database-url[${PYTHON_USEDEP}] + dev-python/dj-email-url[${PYTHON_USEDEP}] + dev-python/django[${PYTHON_USEDEP}] + dev-python/django-cache-url[${PYTHON_USEDEP}] + " +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + ${RDEPEND} + )" + +python_test() { + "${EPYTHON}" manage.py test -v2 --failfast +}