-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
44 lines (38 loc) · 1.23 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
from pathlib import Path
from setuptools import setup, find_packages
version = "0.1.4"
# Read the contents of README file
source_root = Path(".")
with (source_root / "README.md").open(encoding="utf-8") as f:
long_description = f.read()
# Read the requirements
with (source_root / "requirements.txt").open(encoding="utf8") as f:
requirements = f.readlines()
with (source_root / "src" / "cqu_cj" / "version.py").open(
"w", encoding="utf-8"
) as f:
f.writelines(
[
'"""This file is auto-generated by setup.py, please do not alter."""\n',
f'__version__ = "{version}"\n',
"",
]
)
setup(
name="cqu-cj",
version=version,
description="第三方重庆大学成绩查询工具",
author="CQU-AI",
author_email="[email protected]",
url="https://github.com/CQU-AI/cqu-cj",
license="GPL License",
packages=find_packages("src"),
package_dir={"": "src"},
package_data={"": ["config_default.yaml"]},
platforms=["all"],
install_requires=requirements,
python_requires=">=3.6",
long_description=long_description,
long_description_content_type="text/markdown",
entry_points={"console_scripts": ["cqu-cj=cqu_cj:console_main", ]},
)