-
Notifications
You must be signed in to change notification settings - Fork 30
/
setup.py
68 lines (63 loc) · 2.14 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
#
# Copyright (c) 2020-2021 Arm Limited and Contributors. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
"""Package definition for PyPI."""
import os
from setuptools import setup, find_packages
PROJECT_SLUG = "mbed-tools"
SOURCE_DIR = "src/mbed_tools"
repository_dir = os.path.dirname(__file__)
# Use readme needed as long description in PyPI
with open(os.path.join(repository_dir, "README.md"), encoding="utf8") as fh:
long_description = fh.read()
setup(
author="Mbed team",
author_email="support@mbed.com",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Software Development :: Build Tools",
"Topic :: Software Development :: Embedded Systems",
],
description="Command line interface for Mbed OS.",
keywords="Arm Mbed OS MbedOS cli command line tools",
include_package_data=True,
install_requires=[
"python-dotenv",
"Click>=7.1,<9",
"GitPython",
"tqdm",
"tabulate",
"dataclasses; python_version<'3.7'",
"requests>=2.20",
"pywin32; platform_system=='Windows'",
"psutil; platform_system=='Linux'",
"pyudev; platform_system=='Linux'",
"typing-extensions",
"Jinja2",
"pyserial",
],
license="Apache 2.0",
long_description_content_type="text/markdown",
long_description=long_description,
name=PROJECT_SLUG,
package_dir={"": "src"},
packages=find_packages(where="src"),
python_requires=">=3.6,<4",
url=f"https://github.com/ARMmbed/{PROJECT_SLUG}",
entry_points={
"console_scripts": [
"mbedtools=mbed_tools.cli.main:cli",
"mbed-tools=mbed_tools.cli.main:cli",
"mbed_tools=mbed_tools.cli.main:cli",
]
},
)