Commits

Anonymous committed 71b54b8

updated setup.py: removed include_package_data, added test_suite

  • Participants
  • Parent commits 0f98678
  • Tags 0.3.1

Comments (0)

Files changed (3)

+^dist/
+^django_model_utils.egg-info/

model_utils/tests/runtests.py

 
 import os, sys
 
+os.environ['DJANGO_SETTINGS_MODULE'] = 'model_utils.tests.test_settings'
 parent = os.path.dirname(os.path.dirname(os.path.dirname(
             os.path.abspath(__file__))))
 
 sys.path.insert(0, parent)
 
-from django.core.management import setup_environ, call_command
-from model_utils.tests import test_settings
-setup_environ(test_settings, 'model_utils.tests.test_settings')
-call_command('test', 'tests')
+from django.test.utils import get_runner
+from django.conf import settings
+
+def runtests():
+    test_runner = get_runner(settings)
+    failures = test_runner([], verbosity=1, interactive=True)
+    sys.exit(failures)
+
+if __name__ == '__main__':
+    runtests()
  
 setup(
     name='django-model-utils',
-    version='0.3.0',
+    version='0.3.1',
     description='Django model mixins and utilities',
     long_description=open('README.txt').read(),
     author='Carl Meyer',
     author_email='carl@dirtcircle.com',
-    url='http://launchpad.net/django-model-utils',
+    url='http://bitbucket.org/carljm/django-model-utils/',
     packages=find_packages(),
     classifiers=[
-        'Development Status :: 3 - Alpha',
+        'Development Status :: 4 - Beta',
         'Environment :: Web Environment',
         'Intended Audience :: Developers',
         'License :: OSI Approved :: BSD License',
         'Programming Language :: Python',
         'Framework :: Django',
     ],
-    include_package_data=True,
     zip_safe=False,
-    setup_requires=['setuptools_bzr'],
+    test_suite='model_utils.tests.runtests.runtests'
 )