blob: b3a93ddba8c5fdce3eb6be3a6860c668fd284da8 [file] [log] [blame]
Kapileshwar Singh9c4a49f2015-09-02 17:55:42 +01001#!/usr/bin/env python
Brendan Jackmane81fdcb2017-01-04 17:10:29 +00002# Copyright 2015-2017 ARM Limited
Kapileshwar Singh9c4a49f2015-09-02 17:55:42 +01003#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16from setuptools import setup, find_packages
17
18
Javi Merino712e6f92016-06-16 15:29:02 +010019execfile("trappy/version.py")
Kapileshwar Singh9c4a49f2015-09-02 17:55:42 +010020
21LONG_DESCRIPTION = """TRAPpy is a framework written in python for
22analysing and plotting FTrace data by converting it into standardised
23PANDAS DataFrames (tabular times series data representation).The goal is to
24allow developers easy and systematic access to FTrace data and leverage
25the flexibility of PANDAS for the analysis.
26
27TRAPpy also provides functionality to build complex statistical analysis
28based on the underlying FTrace data.
29"""
30REQUIRES = [
Javi Merino88dd0cf2015-12-07 15:19:18 +000031 "numpy",
32 "pyparsing",
Kapileshwar Singh9c4a49f2015-09-02 17:55:42 +010033 "pandas>=0.13.1",
Kapileshwar Singh9c4a49f2015-09-02 17:55:42 +010034]
35
Javi Merinoa365cf02015-12-07 15:15:45 +000036EXTRAS = {
37 "notebook": ["matplotlib>=1.3.1",
38 "ipython>=3.0.0",
39 "jupyter>=1.0.0",
40 ],
41}
42
Javi Merino95fecb52015-09-23 11:45:10 +010043data_files = {"trappy.plotter": ["js/EventPlot.js",
44 "js/ILinePlot.js",
45 "css/EventPlot.css",
Javi Merino8469c312016-01-05 17:01:32 +000046 "css/EventPlot_help.jpg",
Javi Merino95fecb52015-09-23 11:45:10 +010047 ]
48}
49
Kapileshwar Singh9c4a49f2015-09-02 17:55:42 +010050setup(name='TRAPpy',
Javi Merino712e6f92016-06-16 15:29:02 +010051 version=__version__,
Kapileshwar Singh9c4a49f2015-09-02 17:55:42 +010052 license="Apache v2",
53 author="ARM-TRAPPY",
54 author_email="trappy@arm.com",
55 description="Trace Analysis and Plotting",
56 long_description=LONG_DESCRIPTION,
57 url="http://arm-software.github.io/trappy",
58 packages=find_packages(),
Javi Merino95fecb52015-09-23 11:45:10 +010059 package_data=data_files,
Kapileshwar Singh9c4a49f2015-09-02 17:55:42 +010060 scripts=["scripts/publish_interactive_plots.py"],
61 classifiers=[
62 "Development Status :: 5 - Production/Stable",
63 "Environment :: Web Environment",
64 "Environment :: Console",
65 "License :: OSI Approved :: Apache Software License",
66 "Operating System :: POSIX :: Linux",
67 "Programming Language :: Python :: 2.7",
68 # As we depend on trace data from the Linux Kernel/FTrace
69 "Topic :: System :: Operating System Kernels :: Linux",
70 "Topic :: Scientific/Engineering :: Visualization"
71 ],
Javi Merinoa365cf02015-12-07 15:15:45 +000072 install_requires=REQUIRES,
Javi Merinob9d37552016-01-05 15:57:07 +000073 extras_require=EXTRAS
Kapileshwar Singh9c4a49f2015-09-02 17:55:42 +010074 )