forked from cortexm/pyswd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
49 lines (42 loc) · 1.28 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
"""A setup tools based setup module.
"""
import setuptools
import swd.__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__))
with codecs.open(os.path.join(current_dir, 'README.md'), encoding='utf-8') as readme_file:
long_description = readme_file.read()
return long_description
setuptools.setup(
name=swd.__about__.PROGNAME,
version=swd.__about__.VERSION,
description=swd.__about__.DESCRIPTION,
long_description=get_long_description(),
url=swd.__about__.URL,
author=swd.__about__.AUTHOR,
author_email=swd.__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'
],
install_requires=[
'pyusb (>=1.0.2)'
],
entry_points={
'console_scripts': [
'pyswd=swd._app:main',
],
},
)