-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
94 lines (79 loc) · 2.22 KB
/
Copy pathpyproject.toml
File metadata and controls
94 lines (79 loc) · 2.22 KB
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
[project]
name = "MEFrp-Launcher-Qt"
dynamic = ["version"]
description = "A Launcher for ME Frp."
authors = [{ name = "LxHTT", email = "lxhtt@mcsl.com.cn" }]
dependencies = [
"PyQt5",
"pyqt5-qt5==5.15.2",
"PyQt-Material-WidgetsX @ file:///${PROJECT_ROOT}/PyQt_Material_Widgets_X-0.10.1-py3-none-any.whl",
"psutil==5.9.5",
"requests==2.31.0",
"pyDes>=2.0.1",
"MEFrpLib>=2.2.6",
"setuptools>=60",
"lib-not-dr[nuitka]>=0.3",
"nuitka>=2.0.3",
"aria2p>=0.12.0",
]
requires-python = ">=3.8,<3.9"
readme = "README.md"
license = { text = "GPL-3.0" }
[tool.setuptools.dynamic]
version = { attr = "MELauncherLib.VERSION" }
[project.optional-dependencies]
all = ["tomli>=2.0.1", "ruff>=0.1.6", "pyqt5-stubs>=5.15.6.0"]
[tool.pdm.scripts]
main = "python MEFrp-Launcher.py"
build = "python -m lndl_nuitka . -y "
build_github = "python -m lndl_nuitka . -y -- --disable-console"
[tool.ruff]
target-version = "py38"
line-length = 100
src = ["MELauncherLib", "Tools", "Adapters"]
output-format = "grouped"
preview = true
[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 = "MEFrp-Launcher.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 = "MEFrp-Launcher-Qt"
company-name = "ME Frp"
file-description = "MEFrp Launcher"
copyright = "Copyright © LxHTT. All rights reserved."
# 依赖
include-package = ["MELauncherLib", "pyDes"]
follow-import-to = ["requests", "pyDes"]
nofollow-import-to = ["numpy", "scipy", "PIL", "colorthief", "sqlite3.test"]
enable-plugin = ["pyqt5", "multiprocessing"]
windows-icon-from-ico = "MEFrpLauncher.ico"
assume-yes-for-download = true
[tool.setuptools]
packages = []
# 实际上并不发布包 (用于解决无法 pdm install)