This repository has been archived by the owner on Jan 1, 2019. It is now read-only.
/
setup.py
116 lines (96 loc) · 3.21 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
gottwall
~~~~~~~~
GottWall is scalable realtime metrics collecting and aggregation platform and service
:copyright: (c) 2012 - 2013 by GottWall team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
:github: http://github.com/GottWall/GottWall
"""
import sys
import os
from setuptools import setup, find_packages
try:
readme_content = open(os.path.join(os.path.abspath(
os.path.dirname(__file__)), "README.rst")).read()
except Exception, e:
print(e)
readme_content = __doc__
VERSION = "0.5.0"
def run_tests():
from tests import suite
return suite()
py_ver = sys.version_info
#: Python 2.x?
is_py2 = (py_ver[0] == 2)
#: Python 3.x?
is_py3 = (py_ver[0] == 3)
install_requires = [
"tornado>=3.2.0",
"python-dateutil==2.1",
"commandor==0.1.6",
"SQLAlchemy==0.7.9",
"alembic==0.4.0",
"Jinja2==2.6",
"fast_utils==0.0.6",
"ujson==1.33"]
if not (is_py3 or (is_py2 and py_ver[1] >= 7)):
install_requires.append("importlib==1.0.2")
tests_require = [
'nose',
'mock==1.0.1'] + install_requires
PACKAGE_DATA = []
PROJECT = 'gottwall'
for folder in ['static', 'templates']:
for root, dirs, files in os.walk(os.path.join(PROJECT, folder)):
for filename in files:
PACKAGE_DATA.append("%s/%s" % (root[len(PROJECT) + 1:], filename))
setup(
name="gottwall",
version=VERSION,
description="GottWall is scalable realtime metrics collecting and aggregation platform and service",
long_description=readme_content,
author="Alex Lispython",
author_email="alex@obout.ru",
maintainer="Alexandr Lispython",
maintainer_email="alex@obout.ru",
url="https://github.com/GottWall/GottWall",
packages=find_packages(),
package_data={'': PACKAGE_DATA},
entry_points={
'console_scripts': [
'gottwall = gottwall.runner:main',
]},
install_requires=install_requires,
tests_require=tests_require,
license="BSD",
platforms = ['Linux', 'Mac'],
classifiers=[
"Environment :: Web Environment",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX",
"Topic :: Internet",
"Topic :: Software Development :: Libraries",
"Development Status :: 4 - Beta",
"Development Status :: 5 - Production/Stable",
"Topic :: System :: Installation/Setup",
"Topic :: System :: Logging",
"Topic :: System :: Monitoring",
"Topic :: System :: Networking",
"Intended Audience :: Customer Service",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"Topic :: Internet :: Log Analysis",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: System :: Networking",
"Topic :: System :: Networking :: Monitoring"
],
test_suite = '__main__.run_tests'
)