forked from nxp-mcuxpresso/spsdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
86 lines (79 loc) · 3.03 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
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
#
# Copyright 2019-2022 NXP
#
# SPDX-License-Identifier: BSD-3-Clause
import os
from setuptools import find_packages, setup # type: ignore
with open("requirements.txt") as req_file:
requirements = req_file.read().splitlines()
with open("README.md", "r") as f:
long_description = f.read()
# extract version info indirectly
version_info = {}
base_dir = os.path.dirname(__file__)
with open(os.path.join(base_dir, "spsdk", "__version__.py")) as f:
exec(f.read(), version_info)
setup(
name="spsdk",
version=version_info["__version__"],
description="Open Source Secure Provisioning SDK for NXP MCU/MPU",
url="https://github.com/NXPmicro/spsdk",
project_urls={
"Code": "https://github.com/NXPmicro/spsdk",
"Issue tracker": "https://github.com/NXPmicro/spsdk/issues",
"Documentation": "https://spsdk.readthedocs.io",
},
author="NXP",
author_email="michal.starecek@nxp.com",
license="BSD-3-Clause",
long_description=long_description,
long_description_content_type="text/markdown",
platforms="Windows, Linux, Mac OSX",
python_requires=">=3.7",
setup_requires=["setuptools>=40.0"],
install_requires=requirements,
include_package_data=True,
classifiers=[
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS :: MacOS X",
"License :: OSI Approved :: BSD License",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Embedded Systems",
"Topic :: System :: Hardware",
"Topic :: Utilities",
],
packages=find_packages(exclude=["tests.*", "tests", "examples.*", "examples"]),
entry_points={
"console_scripts": [
"elftosb=spsdk.apps.elftosb:safe_main",
"pfr=spsdk.apps.pfr:safe_main",
"pfrc=spsdk.apps.pfrc:safe_main",
"blhost=spsdk.apps.blhost:safe_main",
"sdphost=spsdk.apps.sdphost:safe_main",
"sdpshost=spsdk.apps.sdpshost:safe_main",
"spsdk=spsdk.apps.spsdk_apps:safe_main",
"nxpkeygen=spsdk.apps.nxpkeygen:safe_main",
"nxpdebugmbox=spsdk.apps.nxpdebugmbox:safe_main",
"nxpcertgen=spsdk.apps.nxpcertgen:safe_main",
"nxpcrypto=spsdk.apps.nxpcrypto:safe_main",
"nxpdevscan=spsdk.apps.nxpdevscan:safe_main",
"nxpdevhsm=spsdk.apps.nxpdevhsm:safe_main",
"nxpimage=spsdk.apps.nxpimage:safe_main",
"shadowregs=spsdk.apps.shadowregs:safe_main",
"tpconfig=spsdk.apps.tpconfig:safe_main",
"tphost=spsdk.apps.tphost:safe_main",
],
},
extras_require={
"tp": ["pyscard==2.0.2"],
},
)