Commits

Poul Sysolyatin committed 0172363

Fixed setup.py

Comments (0)

Files changed (2)

russian_admin/__init__.py

-VERSION = (0, 1, 0, "alpha", 2)
+VERSION = (0, 1, 0, "alpha", 3)
 
 def get_version():
     version = '%s.%s' % (VERSION[0], VERSION[1])
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
-from distutils.core import setup
+from setuptools import setup, find_packages
 from russian_admin import get_version
 
-for cmd in ('egg_info', 'develop'):
-    import sys
-    if cmd in sys.argv:
-        from setuptools import setup
-
 setup(
     name = 'django-russian-admin',
-    version = get_version(),
     author='Nikolay Osaulenko, Mikhail Korobov',
     author_email='kmike84@gmail.com',
     url='http://bitbucket.org/kmike/django-russian-admin/',
     long_description = open('README.rst').read(),
 
     license = 'MIT license',
-    packages = ['russian_admin',
-                'russian_admin.dashboard',
-                'russian_admin.templatetags',
-               ],
-
-    package_data={
-        'russian_admin': [
-            'templates/russian_admin/admin/*.html',
-            'templates/russian_admin/menu/*.html',
-            'templates/russian_admin/dashboard/modules/*.html',
-            'templates/admin/*.html',
-#            'locale/ru/LC_MESSAGES/*'
-        ]
-    },
+    version = get_version(),
+    packages = find_packages(exclude=['test_project']),
+    include_package_data=True,
 
     requires = ['pymorphy (>=0.5.4)', 'admin_tools (>= 0.4)'],