-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
59 lines (53 loc) · 1.73 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/usr/bin/env python
# coding: utf-8
import sys, itertools
version = __import__('django_resubmit').__version__
description = __import__('django_resubmit').__doc__.split('\n')[0]
long_description = open('README.rst', 'r').read()
install_requires = filter(None,
itertools.takewhile(lambda x: x != '# testing',
open('requirements.txt').read().split('\n')))
setup_data = {
'name': 'django-resubmit',
'version': version,
'description': description,
'long_description': long_description,
'license': 'BSD',
'packages': [
'django_resubmit',
'django_resubmit.thumbnailer'],
'package_data': {
'django_resubmit': [
'static/django_resubmit/*',
'templates/django_resubmit/*',
]
},
'install_requires': install_requires,
'platforms': "All",
'classifiers': [
'Development Status :: 4 - Beta',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.2',
'Topic :: Software Development :: Libraries :: Python Modules',
],
}
setuptools_extensions = {
'zip_safe': True,
'test_suite': "runtests.runtests",
#'include_package_data': True,
}
if 'develop' in sys.argv:
setup_data['scripts'] = ['runtests.py']
try:
from setuptools import setup
setup_data.update(setuptools_extensions)
except ImportError:
print("Cannot load setuptool, revert to distutils")
from distutils.core import setup
setup(**setup_data)