Skip to content

Commit 14e3999

Browse files
committed
fix
1 parent 1341f33 commit 14e3999

File tree

5 files changed

+7
-38
lines changed

5 files changed

+7
-38
lines changed

.github/workflows/build_exe.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ jobs:
1919
run: |
2020
pip install .[all]
2121
pip install pyinstaller
22-
pip install ttkbootstrap==1.10.1
2322
- name: Build
2423
run: |
2524
echo "from daf_gui import run;run()" > discord-advert-framework.py

docs/source/changelog.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ Glossary
3737
Releases
3838
---------------------
3939

40+
v4.0.5
41+
=====================
42+
- Fixed exe build.
43+
4044
v4.0.4
4145
=====================
4246
- Fixed automatic responder's not being removable over a remote connection.

requirements/mandatory.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ typeguard>=2.13,<2.14
44
typing_extensions>=4,<5; python_version < "3.11"
55
tkinter-async-execute>=1.2,<1.3
66
asyncio-event-hub>=1.0,<1.2
7-
tkclasswiz>=1.4,<1.5
7+
tkclasswiz>=1.4,<1.5
8+
ttkbootstrap==1.10.1

src/daf/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import warnings
2323

2424

25-
VERSION = "4.0.4"
25+
VERSION = "4.0.5"
2626

2727

2828
if sys.version_info.minor == 12 and sys.version_info.major == 3:

src/daf_gui/main.py

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -14,41 +14,6 @@
1414
import tk_async_execute as tae
1515
import json
1616

17-
18-
# Automatically install GUI requirements if GUI is requested to avoid making it an optional dependency
19-
# One other way would be to create a completely different package on pypi for the core daf, but that is a lot of
20-
# work to be done. It is better to auto install.
21-
to_install = [
22-
("ttkbootstrap", "==1.10.1"),
23-
]
24-
25-
version_path = Path.home().joinpath("./gui_versions.json")
26-
if not version_path.exists():
27-
version_path.touch()
28-
29-
with open(version_path, "r") as file:
30-
try:
31-
version_data = json.load(file)
32-
except json.JSONDecodeError as exc:
33-
version_data = {}
34-
35-
for package, version in to_install:
36-
installed_version = version_data.get(package, "0")
37-
if find_spec(package) is None or installed_version != version:
38-
print(f"Auto installing {package}{version}")
39-
subprocess.check_call(
40-
[
41-
sys.executable.replace("pythonw", "python"),
42-
"-m", "pip", "install", "-U",
43-
package + version
44-
]
45-
)
46-
version_data[package] = version
47-
48-
with open(version_path, "w") as file:
49-
json.dump(version_data, file)
50-
51-
5217
import ttkbootstrap as ttk
5318

5419
from tkclasswiz.convert import *

0 commit comments

Comments
 (0)