forked from openvinotoolkit/telemetry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
45 lines (36 loc) · 1.26 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
#!/usr/bin/env python3
# Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
"""
Use this script to create a wheel with the telemetry library code:
$ python setup.py sdist bdist_wheel
"""
from setuptools import setup
from setuptools.command.build_py import build_py
class BuildCmd(build_py):
def find_package_modules(self, package, package_dir):
modules = super().find_package_modules(package, package_dir)
return [
(pkg, module, filename)
for (pkg, module, filename) in modules
if not filename.endswith('_test.py')
]
packages = ['openvino_telemetry', 'openvino_telemetry.backend', 'openvino_telemetry.utils']
setup(name='openvino-telemetry',
version='0.0.0',
author='Intel Corporation',
author_email='[email protected]',
url='https://github.com/openvinotoolkit/telemetry',
packages=packages,
package_dir={'openvino_telemetry': 'src'},
py_modules=[],
cmdclass={
'build_py': BuildCmd,
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
install_requires=['requests>=2.20.0'],
)