Control: tag -1 + confirmed

The package fails to build with Django 1.7:

   debian/rules override_dh_auto_test
make[1]: Entering directory '/«PKGBUILDDIR»'
set -e ;\
python /«PKGBUILDDIR»/setup.py test
running test
running egg_info
writing requirements to django_guardian.egg-info/requires.txt
writing django_guardian.egg-info/PKG-INFO
writing top-level names to django_guardian.egg-info/top_level.txt
writing dependency_links to django_guardian.egg-info/dependency_links.txt
reading manifest file 'django_guardian.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.json' under directory 'guardian/fixtures'
warning: no files found matching '*.html' under directory 
'guardian/tests/templates'
writing manifest file 'django_guardian.egg-info/SOURCES.txt'
running build_ext
System check identified some issues:

WARNINGS:
?: (1_7.W001) MIDDLEWARE_CLASSES is not set.
        HINT: Django 1.7 changed the global defaults for the 
MIDDLEWARE_CLASSES. django.contrib.sessions.middleware.SessionMiddleware, djang
o.contrib.auth.middleware.AuthenticationMiddleware, and 
django.contrib.messages.middleware.MessageMiddleware were removed from the 
defaults.
 If your project needs these middleware then you should configure this setting.
System check identified some issues:
[...]
Traceback (most recent call last):
  File "/«PKGBUILDDIR»/setup.py", line 54, in <module>
    **extra_kwargs
  File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.7/dist-packages/setuptools/command/test.py", line 142, 
in run
    self.with_project_on_sys_path(self.run_tests)
  File "/usr/lib/python2.7/dist-packages/setuptools/command/test.py", line 122, 
in with_project_on_sys_path
    func()
  File "/usr/lib/python2.7/dist-packages/setuptools/command/test.py", line 163, 
in run_tests
    testRunner=self._resolve_as_ep(self.test_runner),
  File "/usr/lib/python2.7/unittest/main.py", line 94, in __init__
    self.parseArgs(argv)
  File "/usr/lib/python2.7/unittest/main.py", line 149, in parseArgs
    self.createTests()
  File "/usr/lib/python2.7/unittest/main.py", line 158, in createTests
    self.module)
  File "/usr/lib/python2.7/unittest/loader.py", line 130, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib/python2.7/unittest/loader.py", line 115, in loadTestsFromName
    test = obj()
  File "/«PKGBUILDDIR»/tests.py", line 46, in main
    failures = run_tests(settings)
  File "/«PKGBUILDDIR»/tests.py", line 42, in run_tests
    failures = test_runner.run_tests(['auth', 'guardian', 'testapp'])
  File "/usr/lib/python2.7/dist-packages/django/test/runner.py", line 147, in 
run_tests
    old_config = self.setup_databases()
  File "/usr/lib/python2.7/dist-packages/django/test/runner.py", line 109, in 
setup_databases
    return setup_databases(self.verbosity, self.interactive, **kwargs)
  File "/usr/lib/python2.7/dist-packages/django/test/runner.py", line 299, in 
setup_databases
    serialize=connection.settings_dict.get("TEST_SERIALIZE", True),
  File "/usr/lib/python2.7/dist-packages/django/db/backends/creation.py", line 
374, in create_test_db
    test_flush=True,
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", 
line 115, in call_command
    return klass.execute(*args, **defaults)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 
337, in execute
    output = self.handle(*args, **options)
  File 
"/usr/lib/python2.7/dist-packages/django/core/management/commands/migrate.py", 
line 160, in handle
    executor.migrate(targets, plan, fake=options.get("fake", False))
  File "/usr/lib/python2.7/dist-packages/django/db/migrations/executor.py", 
line 63, in migrate
    self.apply_migration(migration, fake=fake)
  File "/usr/lib/python2.7/dist-packages/django/db/migrations/executor.py", 
line 91, in apply_migration
    if self.detect_soft_applied(migration):
  File "/usr/lib/python2.7/dist-packages/django/db/migrations/executor.py", 
line 135, in detect_soft_applied
    apps = project_state.render()
  File "/usr/lib/python2.7/dist-packages/django/db/migrations/state.py", line 
71, in render
    raise InvalidBasesError("Cannot resolve bases for %r\nThis can happen if 
you are inheriting models from an app with migrations (e.g. con
trib.auth)\n in an app with no migrations; see 
https://docs.djangoproject.com/en/1.7/topics/migrations/#dependencies for more" 
% new_unrende
red_models)
django.db.migrations.state.InvalidBasesError: Cannot resolve bases for 
[<ModelState: 'testapp.LogEntryWithGroup'>]
This can happen if you are inheriting models from an app with migrations (e.g. 
contrib.auth)
 in an app with no migrations; see 
https://docs.djangoproject.com/en/1.7/topics/migrations/#dependencies for more
make[1]: *** [override_dh_auto_test] Error 1


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]

Reply via email to