-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathsetup.py
63 lines (56 loc) · 1.33 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
#!/usr/bin/python
#coding:utf-8
import os
from setuptools import setup, find_packages
from eru import __VERSION__
# package meta info
NAME = "eru"
VERSION = __VERSION__
DESCRIPTION = "Eru, the god"
AUTHOR = "CMGS"
AUTHOR_EMAIL = "[email protected]"
LICENSE = "BSD"
URL = "http://git.hunantv.com"
KEYWORDS = "docker redis borg eru"
ENTRY_POINTS = {
'console_scripts':['eru=eru.app:main',]
}
INSTALL_REQUIRES = [
'influxdb',
'gevent-websocket',
'MySQL-python',
'PyYAML',
'requests',
'paramiko',
'Flask-Testing',
'docker-py',
'Flask-SQLAlchemy',
'gunicorn',
'netaddr',
'more_itertools',
'retrying',
'pygit2',
]
here = os.path.abspath(os.path.dirname(__file__))
def read_long_description(filename):
path = os.path.join(here, filename)
if os.path.exists(path):
with open(path, 'r') as f:
return f.read()
return ""
setup(
name=NAME,
version=VERSION,
description=DESCRIPTION,
long_description=read_long_description('README.rst'),
author=AUTHOR,
author_email=AUTHOR_EMAIL,
license=LICENSE,
url=URL,
keywords=KEYWORDS,
packages = find_packages(exclude=['tests.*', 'tests', 'examples.*', 'examples', 'scripts']),
install_package_data=True,
zip_safe=False,
entry_points=ENTRY_POINTS,
install_requires=INSTALL_REQUIRES,
)