forked from karanlyons/django-save-the-change
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
45 lines (39 loc) · 1.39 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
# -*- coding: utf-8 -*-
import save_the_change
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
tests_require = []
for line in open('test_requirements.txt', 'rU').readlines():
if line and line not in '\n' and not line.startswith(('#', '-')):
tests_require.append(line.replace('\n', ''))
setup(
name="django-save-the-change",
version=save_the_change.__version__,
description="Automatically save only changed model data.",
long_description="\n\n".join([open('README.rst', 'rU').read(), open('HISTORY.rst', 'rU').read()]),
author=save_the_change.__author__,
author_email=save_the_change.__contact__,
url=save_the_change.__homepage__,
license=open('LICENSE', 'rU').read(),
packages=['save_the_change'],
package_dir={'save_the_change': 'save_the_change'},
package_data={'': ['README.rst', 'HISTORY.rst', 'LICENSE']},
include_package_data=True,
tests_require=tests_require,
zip_safe=False,
classifiers=(
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
),
test_suite='tests.test.run_tests',
)