-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·51 lines (43 loc) · 1.36 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
#!/usr/bin/env python
# coding: utf-8
from setuptools import setup, find_packages
import os
def read_file(filename):
try:
with open(os.path.join(CWD, filename)) as fp:
return fp.read()
except (OSError, IOError):
return ''
def get_long_description():
return "{README}\n\n{CHANGELOG}".format(
README=read_file('README.rst'),
CHANGELOG=read_file('CHANGELOG.rst')
)
CWD = os.path.dirname(__file__)
VERSION = __import__('django_comments_threaded').get_version()
REQUIREMENTS = [
'Django>=1.7',
'django-mptt',
'django-generic-helpers',
]
CLASSIFIERS = [
'Operating System :: OS Independent',
'Environment :: Web Environment',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Framework :: Django'
]
setup(name='django-comments-threaded',
author='Mikhail Porokhovnichenko',
version=VERSION,
author_email='[email protected]',
description='An application that implements threaded comments',
long_description=get_long_description(),
license='MIT license',
classifiers=CLASSIFIERS,
install_requires=REQUIREMENTS,
packages=find_packages(exclude=['example_project', 'example_project.*']),
test_suite='tests.main',
include_package_data=True,
zip_safe=False)