jezdez / django-discover-runner

A Django test runner based on unittest2's test discovery.
http://pypi.python.org/pypi/django-discover-runner
Other
132 stars 13 forks source link

Wheel file on PyPI is not correct #18

Closed oinopion closed 11 years ago

oinopion commented 11 years ago

Wheel uploaded to PyPI contains management command, that references non-existing TEST_DISCOVER_ROOT, so running ./manage.py test is not possible.

The source package does not have management command at all and everything works OK.

This is what I get when package is installed via wheel:

$ ./manage.py test
Traceback (most recent call last):
  File "./manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/home/paczkowski/.virtualenvs/itemizer/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 453, in execute_from_command_line
    utility.execute()
  File "/home/paczkowski/.virtualenvs/itemizer/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/paczkowski/.virtualenvs/itemizer/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 272, in fetch_command
    klass = load_command_class(app_name, subcommand)
  File "/home/paczkowski/.virtualenvs/itemizer/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 77, in load_command_class
    module = import_module('%s.management.commands.%s' % (app_name, name))
  File "/home/paczkowski/.virtualenvs/itemizer/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/home/paczkowski/.virtualenvs/itemizer/local/lib/python2.7/site-packages/discover_runner/management/commands/test.py", line 7, in <module>
    class Command(TestCommand):
  File "/home/paczkowski/.virtualenvs/itemizer/local/lib/python2.7/site-packages/discover_runner/management/commands/test.py", line 11, in Command
    default=settings.TEST_DISCOVER_ROOT,
AttributeError: 'module' object has no attribute 'TEST_DISCOVER_ROOT'
jezdez commented 11 years ago

Odd. Will look into it..

jezdez commented 11 years ago

Seems to have been a build cache issue with wheel, I've uploaded a new 1.0 file. Thanks for the notification!