-
Notifications
You must be signed in to change notification settings - Fork 21
/
setup.py
58 lines (46 loc) · 1.39 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
"""A setup tools based setup module.
"""
# pylint: disable=W0122
import setuptools
_ABOUT = {}
exec(open('swd/__about__.py').read(), _ABOUT)
def get_long_description():
"""Return long description from README.md file"""
import os
import codecs
current_dir = os.path.abspath(os.path.dirname(__file__))
readme_file = os.path.join(current_dir, 'README.md')
with codecs.open(readme_file, encoding='utf-8') as readme_file:
long_description = readme_file.read()
return long_description
setuptools.setup(
name=_ABOUT['APP_NAME'],
version=_ABOUT['VERSION'],
description=_ABOUT['DESCRIPTION'],
long_description=get_long_description(),
url=_ABOUT['URL'],
author=_ABOUT['AUTHOR'],
author_email=_ABOUT['AUTHOR_EMAIL'],
license='MIT',
keywords='SWD debugger STM32 STLINK CORTEX-M ARM',
classifiers=[
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Topic :: Software Development :: Embedded Systems',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
],
packages=[
'swd',
'swd.stlink',
],
install_requires=[
'pyusb (>=1.0.2)'
],
entry_points={
'console_scripts': [
'%s=swd._app:main' % _ABOUT['APP_NAME'],
],
},
)