-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
60 lines (53 loc) · 1.79 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
#!/usr/bin/env python
# Copyright (c) 2019 Martin Olejar
#
# SPDX-License-Identifier: BSD-3-Clause
# The BSD-3-Clause license for this file can be found in the LICENSE file included with this distribution
# or at https://spdx.org/licenses/BSD-3-Clause.html#licenseText
from os import path
from setuptools import setup, find_packages
from mboot import __version__, __license__, __author__, __contact__
def get_long_description():
with open(path.join(path.dirname(path.abspath(__file__)), 'README.md'), encoding='utf8') as fp:
return fp.read()
setup(
name='mboot',
version=__version__,
license=__license__,
author=__author__,
author_email=__contact__,
url="https://github.com/molejar/pyMBoot",
description='Python module for communication with NXP MCU Bootloader',
long_description=get_long_description(),
long_description_content_type='text/markdown',
python_requires='>=3.6',
setup_requires=[
'setuptools>=40.0'
],
install_requires=[
'click==7.0',
'pyserial==3.4',
'bincopy==16.0.0',
'easy_enum==0.3.0',
'pyusb==1.0.2',
'pywinusb==0.4.2;platform_system=="Windows"',
],
classifiers=[
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'License :: OSI Approved :: BSD License',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: Linux',
'Environment :: Console',
'Topic :: Scientific/Engineering',
'Topic :: Software Development :: Embedded Systems',
'Topic :: Utilities',
],
packages=find_packages('.'),
entry_points={
'console_scripts': [
'mboot = mboot.__main__:main',
],
}
)