This repository has been archived by the owner on Nov 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
68 lines (56 loc) · 2.28 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
#!/usr/bin/env python
import itertools as it, operator as op, functools as ft
from glob import iglob
import os, sys
from setuptools import setup, find_packages
pkg_root = os.path.dirname(__file__)
entry_points = dict(console_scripts=['harvestd = graphite_metrics.harvestd:main'])
entry_points.update(
('graphite_metrics.{}'.format(ep_type), list(
'{0} = graphite_metrics.{1}.{0}'\
.format(os.path.basename(fn)[:-3], ep_type)
for fn in iglob(os.path.join(
pkg_root, 'graphite_metrics', ep_type, '[!_]*.py' )) ))
for ep_type in ['collectors', 'processors', 'sinks', 'loops'] )
# Error-handling here is to allow package to be built w/o README included
try: readme = open(os.path.join(pkg_root, 'README.txt')).read()
except IOError: readme = ''
setup(
name = 'graphite-metrics',
version = '15.7.0',
author = 'Mike Kazantsev',
author_email = '[email protected]',
license = 'WTFPL',
keywords = 'graphite sysstat systemd cgroups metrics proc',
url = 'http://github.com/mk-fg/graphite-metrics',
description = 'Standalone Graphite metric data collectors for'
' various stuff thats not (or poorly) handled by other monitoring daemons',
long_description = readme,
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: No Input/Output (Daemon)',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Intended Audience :: Telecommunications Industry',
'License :: OSI Approved',
'Operating System :: POSIX',
'Operating System :: Unix',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 2 :: Only',
'Topic :: Internet',
'Topic :: Internet :: Log Analysis',
'Topic :: System :: Monitoring',
'Topic :: System :: Networking :: Monitoring',
'Topic :: System :: Operating System Kernels :: Linux' ],
install_requires = ['layered-yaml-attrdict-config', 'setuptools'],
extras_require = {
'collectors.cgacct': ['dbus-python'],
'collectors.cron_log': ['xattr', 'iso8601'],
'collectors.sysstat': ['xattr'],
'sinks.librato_metrics': ['requests'],
'sinks.librato_metrics.async': ['gevent'] },
packages = find_packages(),
package_data = {'': ['README.txt'], 'graphite_metrics': ['harvestd.yaml']},
exclude_package_data = {'': ['README.*']},
entry_points = entry_points )