forked from espressif/esp-rainmaker-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
85 lines (71 loc) · 2.51 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
#-!/usr/bin/env python3
# SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0
import os
import sys
def get_install_requires():
with open(os.path.realpath('requirements.txt')) as f:
required = f.read().splitlines()
return required
try:
from setuptools import find_packages, setup
except ImportError:
print(
"Package setuptools is missing from your Python installation. "
"Please see the installation section in the esp-matter-mfg-tool "
"documentation for instructions on how to install it."
)
exit(1)
VERSION = "1.0.0"
long_description = """
=================
esp-rainmaker-cli
=================
ESP RainMaker command-line interface (CLI) utility, python utility to perform host based claiming.
Source code for `esp-rainmaker-cli` is
`hosted on github <https://github.com/espressif/esp-rainmaker-cli>`_.
Documentation
-------------
Visit online `RainMaker CLI setup and usage guide <https://rainmaker.espressif.com/docs/cli-setup>`_.
Or run `esp-rainmaker-cli -h`.
License
-------
The License for the project can be found
`here <https://github.com/espressif/esp-rainmaker-cli/tree/master/LICENSE>`_
"""
setup(
name = "esp-rainmaker-cli",
version = VERSION,
description = "A python utility to perform host based claiming",
long_description = long_description,
long_description_content_type = 'text/x-rst',
url = "https://github.com/espressif/esp-rainmaker-cli",
project_urls = {
"Documentation": "https://rainmaker.espressif.com/docs/cli-setup",
"Source": "https://github.com/espressif/esp-rainmaker-cli",
},
author = "Espressif Systems",
author_email = "",
license = "Apache-2.0",
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Intended Audience :: Developers",
"Natural Language :: English",
"Operating System :: POSIX",
"Operating System :: MacOS :: MacOS X",
"Topic :: Software Development :: Embedded Systems",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
python_requires = ">=3.9",
setup_requires = (["wheel"] if "bdist_wheel" in sys.argv else []),
install_requires = get_install_requires(),
include_package_data = True,
packages = find_packages(),
entry_points={
'console_scripts': [
'esp-rainmaker-cli = rainmaker.rainmaker:main',
],
},
)