#!/usr/bin/env python
from setuptools import setup, find_packages

# Dynamically calculate the version based on mptt.VERSION
version_tuple = __import__('mptt').VERSION
version = ".".join([str(v) for v in version_tuple])

setup(
    name = 'django-mptt',
    description = '''Utilities for implementing Modified Preorder Tree Traversal
        with your Django Models and working with trees of Model instances.''',
    version = version,
    author = 'Craig de Stigter',
    author_email = 'craig.ds@gmail.com',
    url = 'http://github.com/django-mptt/django-mptt',
    test_suite="mptt.tests.test_runner.run_tests",
    packages=find_packages(exclude=['mptt.tests']),
    package_data={'mptt': ['templates/admin/*']},
    classifiers = ['Development Status :: 4 - Beta',
                   'Environment :: Web Environment',
                   'Framework :: Django',
                   'Intended Audience :: Developers',
                   'License :: OSI Approved :: BSD License',
                   'Operating System :: OS Independent',
                   'Programming Language :: Python',
                   'Topic :: Utilities'],
)

#!/usr/bin/env python
from distutils.core import setup

# Dynamically calculate the version based on mptt.VERSION
version_tuple = __import__('mptt').VERSION
version = ".".join([str(v) for v in version_tuple])

setup(
    name = 'django-mptt',
    description = '''Utilities for implementing Modified Preorder Tree Traversal
        with your Django Models and working with trees of Model instances.''',
    version = version,
    author = 'Craig de Stigter',
    author_email = 'craig.ds@gmail.com',
    url = 'http://github.com/django-mptt/django-mptt',
    packages=['mptt', 'mptt.templatetags'],
    package_data={'mptt': ['templates/admin/*']},
    classifiers = ['Development Status :: 4 - Beta',
                   'Environment :: Web Environment',
                   'Framework :: Django',
                   'Intended Audience :: Developers',
                   'License :: OSI Approved :: BSD License',
                   'Operating System :: OS Independent',
                   'Programming Language :: Python',
                   'Topic :: Utilities'],
)

use distutils instead of setuptools, it installs flat instead of in an egg. possibly fixes GH-23