forked from MCSLTeam/MCSL2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
112 lines (97 loc) · 2.9 KB
/
pyproject.toml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
[project]
name = "MCSL2"
dynamic = ["version"]
description = "MCServerLauncher 2"
authors = [
{ name = "LxHTT", email = "[email protected]" },
{ name = "shenjackyuanjie", email = "[email protected]" },
{ name = "AresConnor", email = "[email protected]" },
{ name = "lgc2333", email = "[email protected]" },
{ name = "wyx55520", email = "[email protected]" },
{ name = "Yurnu", email = "[email protected]" },
{ name = "hengshizhi", email = "[email protected]" },
{ name = "ztsinsun", email = "[email protected]" },
{ name = "ltzXiaoYanMo", email = "[email protected]" },
{ name = "kitUIN", email = "[email protected]" },
]
dependencies = [
"setuptools>=60", # 随便指定个版本就好 (
# qt
"PyQt5",
"PyQt-Fluent-Widgets[full]",
"pyqt5-qt5==5.15.2",
# 系统信息
"psutil==5.9.5",
"loguru==0.7.2",
"requests==2.31.0",
"aria2p==0.11.3",
# 构建需要
"lib-not-dr[nuitka]>=0.3",
"nuitka==2.0.3",
"QScintilla>=2.14.1",
"pyqt5-concurrent>=0.1.6",
]
requires-python = ">=3.8,<3.9"
readme = "README.md"
license = { text = "GPL-3.0" }
[tool.setuptools.dynamic]
version = { attr = "MCSL2Lib.MCSL2VERSION" }
[tool.setuptools]
packages = []
# 实际上并不发布包 (用于解决无法 pdm install)
[project.optional-dependencies]
all = ["tomli>=2.0.1", "ruff>=0.1.6", "pyqt5-stubs>=5.15.6.0"]
[tool.pdm.scripts]
main = "python MCSL2.py"
build = "python -m lndl_nuitka . -y"
build_github = "python -m lndl_nuitka . -y -- --disable-console"
i18n = "python generate_i18n.py"
[tool.ruff]
target-version = "py38"
line-length = 100
src = ["MCSL2Lib", "PluginExample", "Tools", "Adapters"]
output-format = "grouped"
preview = true
exclude = ["generate_i18n.py", "Tools/ParseOneDriveLink/ParseOneDriveLink.py"]
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"W", # pycodestyle
]
ignore = ["I001"]
[tool.ruff.lint.isort]
force-single-line = true
force-wrap-aliases = true
combine-as-imports = true
[tool.lndl.nuitka]
script = "Tools/lndl-config.py"
# 请使用 lndl_nuitka . -y 编译 (-y 为自动确认)
[tool.lndl.nuitka.cli]
main = "MCSL2.py"
output-dir = "build"
# 编译选项
clang = true
msvc = "latest"
standalone = true
lto = "yes"
disable-console = false
show-memory = false
show-progress = false
# 版本号 构建时通过 Tools/lndl-config.py 自动填充
product-version = false
file-version = false
# 文件信息
product-name = "MCSL 2"
company-name = "MCSLTeam"
file-description = "MCServerLauncher 2"
copyright = "Copyright ©MCSLTeam. All rights reserved."
# 依赖
include-package = ["MCSL2Lib", "sqlite3"]
include-data-dir = [["MCSL2/Aria2", "MCSL2/Aria2"]]
follow-import-to = ["Adapters", "loguru", "requests"]
nofollow-import-to = ["numpy", "scipy", "PIL", "colorthief", "sqlite3.test"]
enable-plugin = ["pyqt5", "multiprocessing"]
windows-icon-from-ico = "MCSL2.ico"
assume-yes-for-download = true