q2rad 0.1.183__tar.gz → 0.1.184__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of q2rad might be problematic. Click here for more details.
- {q2rad-0.1.183 → q2rad-0.1.184}/PKG-INFO +1 -1
- {q2rad-0.1.183 → q2rad-0.1.184}/pyproject.toml +1 -1
- {q2rad-0.1.183 → q2rad-0.1.184}/q2rad/q2make.py +5 -6
- {q2rad-0.1.183 → q2rad-0.1.184}/q2rad/q2packages.py +2 -1
- {q2rad-0.1.183 → q2rad-0.1.184}/q2rad/q2rad.py +15 -3
- q2rad-0.1.184/q2rad/version.py +1 -0
- q2rad-0.1.183/q2rad/version.py +0 -1
- {q2rad-0.1.183 → q2rad-0.1.184}/LICENSE +0 -0
- {q2rad-0.1.183 → q2rad-0.1.184}/README.md +0 -0
- {q2rad-0.1.183 → q2rad-0.1.184}/q2rad/__init__.py +0 -0
- {q2rad-0.1.183 → q2rad-0.1.184}/q2rad/__main__.py +0 -0
- {q2rad-0.1.183 → q2rad-0.1.184}/q2rad/q2actions.py +0 -0
- {q2rad-0.1.183 → q2rad-0.1.184}/q2rad/q2appmanager.py +0 -0
- {q2rad-0.1.183 → q2rad-0.1.184}/q2rad/q2appselector.py +0 -0
- {q2rad-0.1.183 → q2rad-0.1.184}/q2rad/q2constants.py +0 -0
- {q2rad-0.1.183 → q2rad-0.1.184}/q2rad/q2forms.py +0 -0
- {q2rad-0.1.183 → q2rad-0.1.184}/q2rad/q2lines.py +0 -0
- {q2rad-0.1.183 → q2rad-0.1.184}/q2rad/q2market.py +0 -0
- {q2rad-0.1.183 → q2rad-0.1.184}/q2rad/q2modules.py +0 -0
- {q2rad-0.1.183 → q2rad-0.1.184}/q2rad/q2queries.py +0 -0
- {q2rad-0.1.183 → q2rad-0.1.184}/q2rad/q2raddb.py +0 -0
- {q2rad-0.1.183 → q2rad-0.1.184}/q2rad/q2reports.py +0 -0
- {q2rad-0.1.183 → q2rad-0.1.184}/q2rad/q2stylesettings.py +0 -0
- {q2rad-0.1.183 → q2rad-0.1.184}/q2rad/q2utils.py +0 -0
|
@@ -83,6 +83,7 @@ def make_binary(self):
|
|
|
83
83
|
return
|
|
84
84
|
|
|
85
85
|
main = """
|
|
86
|
+
import sys
|
|
86
87
|
if "darwin" in sys.platform:
|
|
87
88
|
path = sys.argv[0].split("/Contents/MacOS")[0]
|
|
88
89
|
path = os.path.dirname(path)
|
|
@@ -97,16 +98,14 @@ app.run()
|
|
|
97
98
|
dist_folder = os.path.abspath(f"{make_folder}/dist/{binary_name}")
|
|
98
99
|
|
|
99
100
|
terminal = Q2Terminal(callback=print)
|
|
100
|
-
|
|
101
|
-
pynstaller_executable = f"'{sys.executable}' -m PyInstaller"
|
|
101
|
+
pynstaller_executable = f"'{sys.executable.replace('w.exe', '.exe')}' -m PyInstaller"
|
|
102
102
|
if "win32" in sys.platform:
|
|
103
|
-
pynstaller_executable = "&" + pynstaller_executable
|
|
104
|
-
|
|
103
|
+
pynstaller_executable = "& " + pynstaller_executable
|
|
104
|
+
print(pynstaller_executable)
|
|
105
105
|
if not os.path.isfile("poetry.lock"):
|
|
106
106
|
terminal.run(f"{pynstaller_executable} -v")
|
|
107
107
|
if terminal.exit_code != 0:
|
|
108
|
-
|
|
109
|
-
terminal.run(f"'{sys.executable}' -m pip install pyinstaller")
|
|
108
|
+
terminal.run(f"'{sys.executable.replace('w.exe', '.exe')}' -m pip install pyinstaller")
|
|
110
109
|
if terminal.exit_code != 0:
|
|
111
110
|
q2mess("Pyinstaller not installed!")
|
|
112
111
|
return
|
|
@@ -31,7 +31,8 @@ class Q2Packages(Q2Form):
|
|
|
31
31
|
|
|
32
32
|
def on_init(self):
|
|
33
33
|
self.add_control("package_name", _("Name"), datatype="char", datalen=100, pk="*")
|
|
34
|
-
self.add_control("
|
|
34
|
+
self.add_control("package_alias", _("Alias"), datatype="char", datalen=100)
|
|
35
|
+
self.add_control("package_version", _("Version"), datatype="char", datalen=10)
|
|
35
36
|
self.add_control("comment", _("Comment"), datatype="text")
|
|
36
37
|
|
|
37
38
|
cursor: Q2Cursor = self.q2_app.db_logic.table(table_name="packages")
|
|
@@ -16,6 +16,7 @@ import sys
|
|
|
16
16
|
import os
|
|
17
17
|
import re
|
|
18
18
|
import threading
|
|
19
|
+
from packaging import version
|
|
19
20
|
|
|
20
21
|
if __name__ == "__main__":
|
|
21
22
|
sys.path.insert(0, ".")
|
|
@@ -63,7 +64,8 @@ from q2rad.q2utils import Q2Tasker, Q2Form, auto_filter, set_logging, open_folde
|
|
|
63
64
|
from q2rad.q2utils import q2choice
|
|
64
65
|
from q2rad.q2make import make_binary
|
|
65
66
|
|
|
66
|
-
from q2data2docx.q2data2docx import q2data2docx
|
|
67
|
+
from q2data2docx.q2data2docx import q2data2docx # noqa F401
|
|
68
|
+
|
|
67
69
|
# from q2googledrive.q2googledrive import q2googledrive # noqa F401
|
|
68
70
|
|
|
69
71
|
import gettext
|
|
@@ -866,9 +868,19 @@ class Q2RadApp(Q2App):
|
|
|
866
868
|
list_2_upgrade = []
|
|
867
869
|
|
|
868
870
|
rez = self.get_packages_version(packages_list)
|
|
869
|
-
|
|
870
871
|
for package in rez:
|
|
871
872
|
latest_version, current_version = rez[package]
|
|
873
|
+
if self.db_logic is not None and package not in q2_modules:
|
|
874
|
+
pkg_ver = get("packages", f"package_name='{package}'", "package_version", q2_db=self.db_logic)
|
|
875
|
+
pkg_ver = pkg_ver if pkg_ver else "99999"
|
|
876
|
+
try:
|
|
877
|
+
if version.parse(latest_version) > version.parse(pkg_ver):
|
|
878
|
+
continue
|
|
879
|
+
except Exception as error:
|
|
880
|
+
q2mess(f"Error occured while checking updates for <b>{package}</b>:"
|
|
881
|
+
f"<br> {error}<br>"
|
|
882
|
+
f"<b>{package}</b> package update interrupted")
|
|
883
|
+
continue
|
|
872
884
|
if latest_version != current_version and latest_version:
|
|
873
885
|
list_2_upgrade_message.append(f"<b>{package}</b>: {current_version} > {latest_version}")
|
|
874
886
|
list_2_upgrade.append(package)
|
|
@@ -877,7 +889,7 @@ class Q2RadApp(Q2App):
|
|
|
877
889
|
if can_upgrade:
|
|
878
890
|
if (
|
|
879
891
|
q2AskYN(
|
|
880
|
-
"Updates for packages are avaiable!<p><p>"
|
|
892
|
+
"!Updates for packages are avaiable!<p><p>"
|
|
881
893
|
f"{',<br> '.join(list_2_upgrade_message)}<br><br>"
|
|
882
894
|
"Do you want to proceed with update?<p><p>"
|
|
883
895
|
"The program will be restarted after the update!"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.1.184"
|
q2rad-0.1.183/q2rad/version.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.1.183"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|