-
Notifications
You must be signed in to change notification settings - Fork 17
/
setup.py
37 lines (30 loc) · 988 Bytes
/
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
import io
from setuptools import find_packages, 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", "botoy"],
packages=find_packages(),
install_requires=read_files(["requirements.txt"]),
entry_points="""
[console_scripts]
botoy=botoy._internal.cli:cli
""",
python_requires=">=3.8",
)