Fix: remove superfluous disk name formatting in io.py
[deliverable/lttng-analyses.git] / setup.py
CommitLineData
56936af2
MJ
1#
2# Copyright (C) 2015 - Michael Jeanson <mjeanson@efficios.com>
3#
4# Permission is hereby granted, free of charge, to any person obtaining a copy
5# of this software and associated documentation files (the "Software"), to deal
6# in the Software without restriction, including without limitation the rights
7# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8# copies of the Software, and to permit persons to whom the Software is
9# furnished to do so, subject to the following conditions:
10#
11# The above copyright notice and this permission notice shall be included in
12# all copies or substantial portions of the Software.
13#
14# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20# SOFTWARE.
21
22"""LTTnganalyses setup script"""
23
24from setuptools import setup
25import versioneer
26import sys
27
28if sys.version_info[0:2] < (3, 4):
29 raise RuntimeError("Python version >= 3.4 required.")
30
31if 'install' in sys.argv:
32 try:
33 __import__('babeltrace')
34 except ImportError:
35 print('lttnganalysescli needs the babeltrace package.\n \
36 See https://www.efficios.com/babeltrace for more info.\n',
37 file=sys.stderr)
38 sys.exit(1)
39
40
41def read_file(filename):
42 """Read all contents of ``filename``."""
43 with open(filename, encoding='utf-8') as source:
44 return source.read()
45
46setup(
47 name='lttnganalyses',
48 version=versioneer.get_version(),
49 cmdclass=versioneer.get_cmdclass(),
50
51 description='LTTng analyses',
8e82b2f4 52 long_description=read_file('README.rst'),
56936af2
MJ
53
54 url='https://github.com/lttng/lttng-analyses',
55
56 author='Julien Desfossez',
57 author_email='jdesfossez@efficios.com',
58
59 license='MIT',
60
61 classifiers=[
62 'Development Status :: 4 - Beta',
63
64 'Intended Audience :: Developers',
65 'Intended Audience :: System Administrators',
66 'Topic :: System :: Monitoring',
67
68 'License :: OSI Approved :: MIT License',
69
70 'Programming Language :: Python :: 3.4',
71 ],
72
73 keywords='lttng tracing',
74
75 packages=[
76 'lttnganalyses',
77 'lttnganalyses.core',
78 'lttnganalyses.cli',
79 'lttnganalyses.linuxautomaton',
80 'lttnganalyses.ascii_graph'
81 ],
82
83 entry_points={
84 'console_scripts': [
85 'lttng-cputop = lttnganalyses.cli.cputop:run',
86 'lttng-iolatencyfreq = lttnganalyses.cli.io:runfreq',
87 'lttng-iolatencystats = lttnganalyses.cli.io:runstats',
88 'lttng-iolatencytop = lttnganalyses.cli.io:runlatencytop',
89 'lttng-iolog = lttnganalyses.cli.io:runlog',
90 'lttng-iousagetop = lttnganalyses.cli.io:runusage',
91 'lttng-irqfreq = lttnganalyses.cli.irq:runfreq',
92 'lttng-irqlog = lttnganalyses.cli.irq:runlog',
93 'lttng-irqstats = lttnganalyses.cli.irq:runstats',
94 'lttng-memtop = lttnganalyses.cli.memtop:run',
95 'lttng-syscallstats = lttnganalyses.cli.syscallstats:run',
96 ],
97 },
98
99 scripts=[
100 'lttng-analyses-record',
101 'lttng-track-process'
102 ],
103
104 extras_require={
105 'progressbar': ["progressbar"]
106 }
107)
This page took 0.028518 seconds and 5 git commands to generate.