forked from opq-osc/botoy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
37 lines (30 loc) · 948 Bytes
/
Copy pathsetup.py
File metadata and controls
37 lines (30 loc) · 948 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
33
34
35
36
37
import io
from setuptools import setup
meta = {}
with io.open('./botoy/__version__.py', encoding='utf-8') as f:
exec(f.read(), meta) # pylint: disable=W0122
def read_files(files):
data = []
for file in files:
with io.open(file, encoding='utf-8') as f:
data.append(f.read())
return "\n".join(data)
setup(
name="botoy",
description="OPQBot/IOTQQ/IOTBot的Python开发助手",
long_description=read_files(['README.md', 'CHANGELOG.md']),
long_description_content_type='text/markdown',
version=meta['__version__'],
author="wongxy",
author_email="xiyao.wong@foxmail.com",
url="https://github.com/xiyaowong/botoy",
license='MIT',
keywords=['iotbot', 'iotqq', 'OPQ', 'OPQBot'],
packages=['botoy'],
install_requires=read_files(['requirements.txt']),
entry_points='''
[console_scripts]
botoy=botoy.cli:cli
''',
python_requires='>=3.6',
)