-
Notifications
You must be signed in to change notification settings - Fork 137
/
setup.py
59 lines (55 loc) · 1.75 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
import os
from setuptools import setup
from distutils.util import convert_path
import sys
if sys.version_info < (3,4):
print('rshell requires Python 3.4 or newer.')
sys.exit(1)
main_ns = {}
ver_path = convert_path('rshell/version.py')
with open(ver_path) as ver_file:
exec(ver_file.read(), main_ns)
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name = 'rshell',
version = main_ns['__version__'],
author = 'Dave Hylands',
author_email = '[email protected]',
description = ('A remote shell for working with MicroPython boards.'),
license = 'MIT',
keywords = 'micropython shell',
url = 'https://github.com/dhylands/rshell',
download_url = 'https://github.com/dhylands/rshell/tarball/v0.0.1',
packages=['rshell', 'tests'],
long_description=long_description,
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Embedded Systems',
'Topic :: System :: Shells',
'Topic :: Terminals :: Serial',
'Topic :: Utilities',
],
install_requires=[
'pyserial',
'pyudev >= 0.16',
],
entry_points = {
'console_scripts': [
'pyboard=rshell.pyboard:main',
'rshell=rshell.command_line:main'
],
},
extras_require={
':sys_platform == "win32"': [
'pyreadline']
}
)