-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
72 lines (65 loc) · 1.99 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
[project]
name = "helper"
version = "0.1.0"
description = "This is a helper for patent examination."
authors = [{ name = "chenyulue", email = "[email protected]" }]
dependencies = [
"pyqt5>=5.15.11",
"pyqt5-qt5==5.15.2",
"PyQtDarkTheme-fork>=2.3.2",
"cydifflib>=1.1.0",
]
requires-python = ">=3.11,<3.13"
readme = "README.md"
license = { text = "MIT" }
[project.gui-scripts]
helper = "helper.__main__:main"
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm]
distribution = true
[tool.pdm.scripts]
build_resource = "pyrcc5 -o src/helper/UI/resources_rc.py src/helper/UI/resources.qrc"
build_mainwindow = {composite = [
"pyuic5 -o src/helper/UI/Ui_MainWindow.py src/helper/UI/mainWindow.ui",
"trans_import.py src/helper/UI/Ui_MainWindow.py"
]}
build_about_dialog = {composite = [
"pyuic5 -o src/helper/UI/Ui_AboutDialog.py src/helper/UI/aboutDialog.ui",
"trans_import.py src/helper/UI/Ui_AboutDialog.py"
]}
build_cmpwindow = {composite = [
"pyuic5 -o src/helper/UI/Ui_CmpWidget.py src/helper/UI/cmpWidget.ui",
"trans_import.py src/helper/UI/Ui_CmpWidget.py"
]}
build_search_dialog = {composite = [
"pyuic5 -o src/helper/UI/Ui_SearchDialog.py src/helper/UI/searchDialog.ui",
"trans_import.py src/helper/UI/Ui_SearchDialog.py"
]}
build_ref_dialog = {composite = [
"pyuic5 -o src/helper/UI/Ui_RefDialog.py src/helper/UI/refDialog.ui",
"trans_import.py src/helper/UI/Ui_RefDialog.py"
]}
build_ui = {composite = [
"build_resource",
"build_mainwindow",
"build_about_dialog",
"build_cmpwindow",
"build_search_dialog",
"build_ref_dialog",
]}
[tool.pdm.dev-dependencies]
test = [
"pytest>=8.3.3",
]
package = [
"cx-Freeze>=7.2.5",
]
design = [
"pyqt5-qt5-designer>=0.0.14",
]
[tool.cxfreeze]
executables = [
{ script = "src/helper/__main__.py", base = "gui", target_name = "helper", icon = "./src/helper/assets/icons/APP-ICON.ico" },
]