-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
executable file
·45 lines (40 loc) · 1.51 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env python
from __future__ import unicode_literals
from mptt import VERSION
requires = ()
try:
from setuptools import setup
kwargs = {str('install_requires'): requires}
except ImportError:
from distutils.core import setup
kwargs = {str('requires'): requires}
# Dynamically calculate the version based on mptt.VERSION
version_tuple = VERSION
version = ".".join([str(v) for v in version_tuple])
# on py3, all these are text strings
# on py2, they're all byte strings.
# ... and that's how setuptools likes it.
setup(
name=str('django-mptt'),
description=str('''Utilities for implementing Modified Preorder Tree Traversal
with your Django Models and working with trees of Model instances.'''),
version=version,
author=str('Craig de Stigter'),
author_email=str('[email protected]'),
url=str('http://github.com/django-mptt/django-mptt'),
packages=[str('mptt'), str('mptt.templatetags')],
package_data={str('mptt'): [str('templates/admin/*'), str('locale/*/*/*.*')]},
classifiers=[
str('Development Status :: 4 - Beta'),
str('Environment :: Web Environment'),
str('Framework :: Django'),
str('Intended Audience :: Developers'),
str('License :: OSI Approved :: MIT License'),
str('Operating System :: OS Independent'),
str('Programming Language :: Python'),
str('Programming Language :: Python :: 2'),
str('Programming Language :: Python :: 3'),
str('Topic :: Utilities'),
],
**kwargs
)