dev-python/django-configurations: Add this Raven test dependency dev-python/django-configurations
authorW. Trevor King <wking@tremily.us>
Sat, 4 Oct 2014 00:09:41 +0000 (17:09 -0700)
committerW. Trevor King <wking@tremily.us>
Mon, 6 Oct 2014 16:59:46 +0000 (09:59 -0700)
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 "<frozen importlib._bootstrap>", line 1584, in _gcd_import
    File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
    File "<frozen importlib._bootstrap>", 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 "<frozen importlib._bootstrap>", line 1584, in _gcd_import
    File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
    File "<frozen importlib._bootstrap>", 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 "<frozen importlib._bootstrap>", line 1584, in _gcd_import
    File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
    File "<frozen importlib._bootstrap>", 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 "<frozen importlib._bootstrap>", line 1584, in _gcd_import
    File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
    File "<frozen importlib._bootstrap>", line 1529, in _find_and_load_unlocked
  ImportError: No module named 'dj_search_url'

django-configurations-9999.ebuild [new file with mode: 0644]

diff --git a/django-configurations-9999.ebuild b/django-configurations-9999.ebuild
new file mode 100644 (file)
index 0000000..26175c5
--- /dev/null
@@ -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
+}