From: W. Trevor King Date: Tue, 7 Oct 2014 18:25:22 +0000 (-0700) Subject: pytest-django-9999.ebuild: Add a 'test' flag to IUSE X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=refs%2Fheads%2Fdev-python%2Fpytest-django--test;p=wtk-overlay.git pytest-django-9999.ebuild: Add a 'test' flag to IUSE This doesn't work, and I'm even having problems with 'make test' in a fresh checkout: ERROR collecting lib64/python3.3/site-packages/setuptools/tests/test_egg_info.py lib64/python3.3/site-packages/setuptools/tests/test_egg_info.py:9: in ENTRIES_V10 = pkg_resources.resource_string(__name__, 'entries-v10') lib/python3.3/site-packages/pkg_resources.py:957: in resource_string self, resource_name lib/python3.3/site-packages/pkg_resources.py:1409: in get_resource_string return self._get(self._fn(self.module_path, resource_name)) lib/python3.3/site-packages/pkg_resources.py:1536: in _get stream = open(path, 'rb') E FileNotFoundError: [Errno 2] No such file or directory: '/.../pytest-django/lib64/python3.3/site-packages/setuptools/tests/entries-v10' ________ ERROR at setup of ModelBackendTest.test_authentication_timing _________ request = > _django_cursor_wrapper = @pytest.fixture(autouse=True) def _django_setup_unittest(request, _django_cursor_wrapper): """Setup a django unittest, internal to pytest-django""" if django_settings_is_configured() and is_django_unittest(request.node): request.getfuncargvalue('_django_test_environment') > request.getfuncargvalue('_django_db_setup') pytest_django/plugin.py:273: And on and on. 'make test >/tmp/test 2>&1' dropped 273 MB of errors into /tmp/test ;). --- diff --git a/pytest-django-9999.ebuild b/pytest-django-9999.ebuild index ab612ba..510b275 100644 --- a/pytest-django-9999.ebuild +++ b/pytest-django-9999.ebuild @@ -26,4 +26,15 @@ IUSE="test" RDEPEND=">=dev-python/pytest-2.5[${PYTHON_USEDEP}]" DEPEND=" dev-python/setuptools[${PYTHON_USEDEP}] - " + test? ( + ${RDEPEND} + >=dev-python/pytest-2.5.2[${PYTHON_USEDEP}] + >=dev-python/pytest-xdist-1.10[${PYTHON_USEDEP}] + >=dev-python/django-1.3.7[${PYTHON_USEDEP}] + >=dev-python/django-configurations-0.8[${PYTHON_USEDEP}] + >=dev-python/south-1.0[${PYTHON_USEDEP}] + )" + +python_test() { + py.test --ds=pytest_django_test.settings_sqlite --strict -r fEsxXw +}