Control: tag -1 + confirmed
The package fails to build with Django 1.7:
debian/rules override_dh_auto_test
make[1]: Entering directory '/«PKGBUILDDIR»'
pyversions: missing X(S)-Python-Version in control file, fall back to
debian/pyversions
pyversions: missing debian/pyversions file, fall back to supported versions
dh /usr/share/openstack-pkg-tools/pkgos.make --buildsystem=python_distutils
--with python2,sphinxdoc
dh: Unknown sequence /usr/share/openstack-pkg-tools/pkgos.make (choose from:
binary binary-arch binary-indep build build-arch build-indep cl
ean install install-arch install-indep)
set -e && for pyvers in 2.7; do \
python$pyvers setup.py test ; \
done
running test
running egg_info
writing requirements to django_bootstrap_form.egg-info/requires.txt
writing django_bootstrap_form.egg-info/PKG-INFO
writing top-level names to django_bootstrap_form.egg-info/top_level.txt
writing dependency_links to django_bootstrap_form.egg-info/dependency_links.txt
reading manifest file 'django_bootstrap_form.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'django_bootstrap_form.egg-info/SOURCES.txt'
running build_ext
test_basic_form (tests.BootstrapTemplateTagTests) ... ERROR
test_horizontal_form (tests.BootstrapTemplateTagTests) ... ERROR
======================================================================
ERROR: test_basic_form (tests.BootstrapTemplateTagTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/«PKGBUILDDIR»/tests/__init__.py", line 40, in setUp
call_command('syncdb', interactive=False)
File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 93, in call_command
app_name = get_commands()[name]
File "/usr/lib/python2.7/dist-packages/django/utils/lru_cache.py", line 101,
in wrapper
result = user_function(*args, **kwds)
File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 73, in get_commands
for app_config in reversed(list(apps.get_app_configs())):
File "/usr/lib/python2.7/dist-packages/django/apps/registry.py", line 137, in
get_app_configs
self.check_apps_ready()
File "/usr/lib/python2.7/dist-packages/django/apps/registry.py", line 124, in
check_apps_ready
raise AppRegistryNotReady("Apps aren't loaded yet.")
AppRegistryNotReady: Apps aren't loaded yet.
======================================================================
ERROR: test_horizontal_form (tests.BootstrapTemplateTagTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/«PKGBUILDDIR»/tests/__init__.py", line 40, in setUp
call_command('syncdb', interactive=False)
File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 93, in call_command
app_name = get_commands()[name]
File "/usr/lib/python2.7/dist-packages/django/utils/lru_cache.py", line 101,
in wrapper
result = user_function(*args, **kwds)
File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 73, in get_commands
for app_config in reversed(list(apps.get_app_configs())):
File "/usr/lib/python2.7/dist-packages/django/apps/registry.py", line 137, in
get_app_configs
self.check_apps_ready()
File "/usr/lib/python2.7/dist-packages/django/apps/registry.py", line 124, in
check_apps_ready
raise AppRegistryNotReady("Apps aren't loaded yet.")
AppRegistryNotReady: Apps aren't loaded yet.
----------------------------------------------------------------------
Ran 2 tests in 0.007s
FAILED (errors=2)
make[1]: *** [override_dh_auto_test] Error 1
To get past this error you need to add this to your test script:
import django
if hasattr(django, 'setup'):
django.setup()
Cheers,
--
Raphaël Hertzog ◈ Debian Developer
Discover the Debian Administrator's Handbook:
→ http://debian-handbook.info/get/
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]