-
Notifications
You must be signed in to change notification settings - Fork 93
/
setup.py
87 lines (78 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
87
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# Copyright 2017-2024, Digi International Inc. All Rights Reserved.
import os
import sys
from codecs import open
from setuptools import setup, find_namespace_packages
DEPENDENCIES = (
'pyserial>=3',
)
# 'setup.py build' shortcut.
if sys.argv[-1] == 'build':
os.system('python setup.py sdist bdist_wheel')
sys.exit()
# 'setup.py publish' shortcut, uses the .pypirc in your home directory.
if sys.argv[1] == 'publish':
repo = " -r %s" % sys.argv[2] if len(sys.argv) > 2 else ""
os.system('python setup.py sdist bdist_wheel')
os.system('twine upload%s dist/*' % repo)
sys.exit()
here = os.path.abspath(os.path.dirname(__file__))
about = {}
with open(os.path.join(here, 'digi', 'xbee', '__init__.py'), 'r', 'utf-8') as f:
exec(f.read(), about)
with open(os.path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name=about['__title__'],
namespace_packages=['digi'],
version=about['__version__'],
description=about['__description__'],
long_description=long_description,
long_description_content_type='text/x-rst',
url=about['__url__'],
author=about['__author__'],
author_email=about['__author_email__'],
packages=find_namespace_packages(include=['digi.*']),
package_data={'': ['LICENSE.txt']},
include_package_data=True,
keywords=['xbee', 'IOT', 'wireless', 'radio frequency'],
license=about['__license__'],
python_requires=">=3, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*",
install_requires=[
'pyserial>=3',
],
extras_require={
},
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Telecommunications Industry',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Home Automation',
'Topic :: Games/Entertainment',
'License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Operating System :: OS Independent',
],
project_urls={
'Documentation': 'https://xbplib.readthedocs.io',
'Source': about['__url__'],
'Tracker': '%s/issues' % about['__url__'],
'Changelog': '%s/blob/%s/CHANGELOG.rst' % (about['__url__'], about['__version__'])
},
)