forked from kernelci/kernelci-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
91 lines (83 loc) · 2.38 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
# SPDX-License-Identifier: LGPL-2.1-or-later
#
# Copyright (C) 2020-2023 Collabora Limited
# Author: Guillaume Tucker <[email protected]>
"""Python package setup"""
import fnmatch
import os
import setuptools
import kernelci
def _list_files(path, match):
all_files = []
for root, _, files in os.walk(path):
dir_files = []
for fname in fnmatch.filter(files, match):
dir_files.append(os.path.join(root, fname))
all_files.append((root, dir_files))
return all_files
def _load_readme():
with open('README.md', 'rb') as readme:
return readme.read().decode('utf8')
setuptools.setup(
name='kernelci',
version=kernelci.__version__,
description="KernelCI core functions",
author="kernelci.org",
author_email="[email protected]",
url="https://github.com/kernelci/kernelci-core",
packages=[
"kernelci",
"kernelci.api",
"kernelci.cli",
"kernelci.config",
"kernelci.db",
"kernelci.legacy",
"kernelci.legacy.lava",
"kernelci.runtime",
"kernelci.runtime.legacy",
"kernelci.storage",
],
scripts=[
'kci',
'kci_build',
'kci_test',
'kci_rootfs',
'kci_data',
'kci_bisect',
'scripts/kci-bisect-lava-v2-callback',
'scripts/kci-bisect-push-results',
],
long_description=_load_readme(),
long_description_content_type='text/markdown',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)', # noqa pylint: disable=line-too-long
'Operating System :: OS Independent',
'Operating System :: POSIX :: Linux',
'Programming Language :: C',
'Programming Language :: Python',
'Programming Language :: Python :: 3.7',
'Topic :: Software Development :: Build Tools',
'Topic :: Software Development :: Testing',
],
python_requires='>=3.7',
install_requires=[
"cloudevents",
"jinja2",
"kubernetes",
"paramiko",
"pyelftools",
"pytest",
"pyyaml",
"requests",
"scp",
],
extras_require={
'dev': [
'pycodestyle',
'pylint',
]
}
)