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