-
Notifications
You must be signed in to change notification settings - Fork 80
/
setup.py
58 lines (52 loc) · 1.95 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
import os
import re
from carbonate import __version__
from setuptools import setup, find_packages
from setuptools.command.install_scripts import install_scripts
class my_install_scripts(install_scripts):
def write_script(self, script_name, contents, mode="t", *ignored):
contents = re.sub("import sys",
"import sys\nsys.path.append('/opt/graphite/lib')",
contents)
install_scripts.write_script(self, script_name, contents,
mode="t", *ignored)
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name="carbonate",
version=__version__,
author="Scott Sanders",
author_email="[email protected]",
description=("Tools for managing federated carbon clusters."),
license="MIT",
keywords="graphite carbon",
url="https://github.com/jssjr/carbonate",
include_package_data=True,
packages=find_packages(),
long_description=read('README.md'),
long_description_content_type='text/markdown',
install_requires=[
"carbon",
"whisper",
],
cmdclass={'install_scripts': my_install_scripts},
entry_points={
'console_scripts': [
'carbon-lookup = carbonate.cli:carbon_lookup',
'carbon-sync = carbonate.cli:carbon_sync',
'carbon-sieve = carbonate.cli:carbon_sieve',
'carbon-list = carbonate.cli:carbon_list',
'carbon-hosts = carbonate.cli:carbon_hosts',
'carbon-path = carbonate.cli:carbon_path',
'carbon-stale = carbonate.cli:carbon_stale',
'whisper-fill = carbonate.cli:whisper_fill',
'whisper-aggregate = carbonate.cli:whisper_aggregate'
]
},
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
]
)