forked from ARM-software/lisa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·132 lines (115 loc) · 3.89 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
#! /usr/bin/env python3
# SPDX-License-Identifier: Apache-2.0
#
# Copyright (C) 2018, Arm Limited and contributors.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
import sys
import itertools
from setuptools import setup, find_namespace_packages
with open('README.rst', 'r') as f:
long_description = f.read()
with open('LICENSE.txt', 'r') as f:
license_txt = f.read()
with open("lisa/version.py") as f:
version_globals = dict()
exec(f.read(), version_globals)
lisa_version = version_globals['__version__']
packages = find_namespace_packages(where='lisa', include=['lisa*'])
package_data = {
package: ['*']
for package in packages
if package.startswith('lisa.assets.')
}
package_data['lisa.assets'] = ['*']
extras_require={
"notebook": [
"jupyterlab",
"ipympl", # For %matplotlib widget under jupyter lab
"sphobjinv", # To open intersphinx inventories
],
"test": [
"pytest",
],
"wa": [
"wlauto",
],
}
extras_require["doc"] = [
"sphinx >= 1.8",
"sphinx_rtd_theme",
"sphinxcontrib-plantuml",
"nbsphinx",
# Add all the other optional dependencies to ensure all modules from lisa
# can safely be imported
*itertools.chain.from_iterable(extras_require.values())
]
setup(
name='LISA',
license=license_txt,
version=lisa_version,
author='Arm Ltd',
# TODO: figure out which email to put here
# author_email=
packages=packages,
url='https://github.com/ARM-software/lisa',
project_urls={
"Bug Tracker": "https://github.com/ARM-software/lisa/issues",
"Documentation": "https://lisa-linux-integrated-system-analysis.readthedocs.io/",
"Source Code": "https://github.com/ARM-software/lisa",
},
description='A stick to probe the kernel with',
long_description=long_description,
python_requires='>= 3.6',
install_requires=[
"psutil >= 4.4.2",
# Figure.savefig() (without pyplot) does not work in matplotlib <
# 3.1.0, and that is used for non-interactive plots when building the
# doc.
"matplotlib >= 3.1.0",
# Pandas >= 1.0.0 has support for new nullable dtypes
# Pandas 1.2.0 has broken barplots:
# https://github.com/pandas-dev/pandas/issues/38947
"pandas >= 1.0.0",
"numpy",
"scipy",
# Earlier versions have broken __slots__ deserialization
"ruamel.yaml >= 0.16.6",
# For the HTML output of analysis plots
"docutils",
# For pandas.to_parquet() dataframe storage
"pyarrow",
"ipython",
"ipywidgets",
"mplcursors",
# Depdendencies that are shipped as part of the LISA repo as
# subtree/submodule
"devlib",
],
extras_require=extras_require,
package_data=package_data,
classifiers=[
"Programming Language :: Python :: 3 :: Only",
# This is not a standard classifier, as there is nothing defined for
# Apache 2.0 yet:
# https://pypi.org/classifiers/
"License :: OSI Approved :: Apache Software License 2.0 (Apache-2.0)",
# It has not been tested under any other OS
"Operating System :: POSIX :: Linux",
"Topic :: System :: Operating System Kernels :: Linux",
"Topic :: Software Development :: Testing",
"Intended Audience :: Developers",
],
)
# vim :set tabstop=4 shiftwidth=4 textwidth=80 expandtab