forked from whosaysni/robotframework-seriallibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
52 lines (44 loc) · 1.52 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
#!/usr/bin/env python
from imp import load_source
from os.path import abspath, dirname, join
from sys import platform
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if platform.startswith('java'):
try:
import javax.comm
except ImportError:
print ('Remember, PySerial on Jython requires java.comm.')
CURDIR = dirname(abspath(__file__))
VERSION = load_source(
'version', 'version',
open(join(CURDIR, 'src', 'SerialLibrary', 'version.py'))).VERSION
README = open(join(CURDIR, 'README.rst')).read()
CLASSIFIERS = '\n'.join(
map(' :: '.join, [
('Development Status', '3 - Alpha'),
('License', 'OSI Approved', 'Apache Software License'),
('Operating System', 'OS Independent'),
('Programming Language', 'Python', '2.7'),
('Programming Language', 'Python', '3.5'),
('Topic', 'Software Development', 'Testing'),
])
)
setup(
name='robotframework-seriallibrary',
version='.'.join(map(str, VERSION)),
description='Robot Framework test library for serial connection',
long_description=README,
author='Yasushi Masuda',
author_email='[email protected]',
url='https://github.com/whosaysni/robotframework-seriallibrary',
license='Apache License 2.0',
keywords='robotframework testing testautomation serial',
platforms='any',
classifiers=CLASSIFIERS.splitlines(),
package_dir={'': 'src'},
packages=['SerialLibrary'],
install_requires=['robotframework', 'pyserial'],
)