-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsetup.py
49 lines (45 loc) · 1.76 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
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# Copyright (c) 2015 Digi International Inc. All Rights Reserved.
import ast
import re
from setuptools import setup
# Original code snippet from Flask project
# https://github.com/mitsuhiko/flask
def read_version(filename):
regex = re.compile(r'__version__\s+=\s+(.*)')
with open(filename, 'rb') as f:
return str(ast.literal_eval(regex.search(
f.read().decode('utf-8')).group(1)))
setup(
name='streamexpect',
version=read_version('streamexpect.py'),
url='https://github.com/digidotcom/python-streamexpect',
description='expect-like tools over a Python stream',
author='Digi International Inc.',
author_email='[email protected]',
keywords='expect pexpect search stream serial pyserial socket',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Topic :: Software Development :: Libraries',
],
py_modules=['streamexpect'],
install_requires=[
'six>=1.10'
],
long_description=open("README.md", "r").read(),
long_description_content_type='text/markdown'
)