This repository has been archived by the owner on Mar 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.py
74 lines (65 loc) · 2.16 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import sys
import re
from setuptools import setup, find_packages
name = 'baobab'
sys.path.append(os.path.abspath(os.path.dirname(__file__)))
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.md')).read()
CHANGES = open(os.path.join(here, 'CHANGELOG')).read()
with open(os.path.join(here, name, '__init__.py')) as v_file:
version = re.compile(r".*__version__ = '(.*?)'",
re.S).match(v_file.read()).group(1)
# django-tastypie < 0.10.0 if django < 1.5
# Django 1.6:
# - the way to do test has changed and might not be compatible
# - BooleanField no longer default to False:
# - need to add explicit default value in the models
# - or always set a value for all the fields
# Django 1.7: South is already integrated
# Should be compatilbe util 'irc<10' but will also need 'jaraco.util<10.8'
# WARNING: the db has to handle the COALESCE function
requires = ['Django<1.6',
'South<=0.8.4',
'django-tastypie<0.10.0',
'pytz',
'oauth2',
'markdown',
'irc<8.9.1'
]
extras_require = {
'test': ['mock' ],
}
tests_requires = requires + extras_require['test']
setup(
name=name,
version=version,
description="Gandi's status web site",
long_description=README + '\n\n' + CHANGES,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Operating System :: Unix',
'Programming Language :: Python :: 2.7',
'Framework :: Django :: 1.4',
'Framework :: Django :: 1.5',
],
author='Gandi',
author_email='[email protected]',
url='http://gandi.net/',
license='GPL-3',
include_package_data=True,
install_requires=requires,
extras_require=extras_require,
tests_require=tests_requires,
packages=find_packages(),
entry_points={
'console_scripts': [
'baobab = baobab.bin.cmd_baobab:main',
],
}
)