-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
32 lines (29 loc) · 996 Bytes
/
setup.py
File metadata and controls
32 lines (29 loc) · 996 Bytes
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
import setuptools
import re
about = {}
with open('twseia/__version__.py') as fh:
for line in fh.readlines():
about.update(dict(re.findall('__([a-z]+)__ *= *\'([^"]+)\'', line)))
with open('README.rst', 'r') as f:
readme = f.read()
setuptools.setup(
name=about.get('title'),
version=about.get('version'),
description=about.get('description'),
long_description=readme,
long_description_content_type='text/x-rst',
author=about.get('author'),
author_email=about.get('author_email'),
url=about.get('url'),
license=about.get('license'),
packages=['twseia'],
install_requires=['pyserial'],
classifier=[
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy'
]
)