q2rad 0.1.175__tar.gz → 0.1.177__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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: q2rad
3
- Version: 0.1.175
3
+ Version: 0.1.177
4
4
  Summary: RAD - database, GUI, reports
5
5
  Author: Andrei Puchko
6
6
  Author-email: andrei.puchko@gmx.de
@@ -11,7 +11,6 @@ Classifier: Programming Language :: Python :: 3.10
11
11
  Classifier: Programming Language :: Python :: 3.11
12
12
  Requires-Dist: q2data2docx (>=0.1.4,<0.2.0)
13
13
  Requires-Dist: q2db (>=0.1.9,<0.2.0)
14
- Requires-Dist: q2googledrive (>=0.1.3,<0.2.0)
15
14
  Requires-Dist: q2gui (>=0.1.36,<0.2.0)
16
15
  Requires-Dist: q2report (>=0.1.16,<0.2.0)
17
16
  Requires-Dist: q2terminal (>=0.1.10,<0.2.0)
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "q2rad"
3
- version = "0.1.175"
3
+ version = "0.1.177"
4
4
  description = "RAD - database, GUI, reports"
5
5
  authors = ["Andrei Puchko <andrei.puchko@gmx.de>"]
6
6
  readme = "README.md"
@@ -13,7 +13,6 @@ q2db = "^0.1.9"
13
13
  q2report = "^0.1.16"
14
14
  q2terminal = "^0.1.10"
15
15
  q2data2docx = "^0.1.4"
16
- q2googledrive = "^0.1.3"
17
16
 
18
17
  [tool.poetry.scripts]
19
18
  q2rad = "q2rad.q2rad:main"
@@ -28,9 +28,7 @@ from q2gui import q2app
28
28
  def create_q2apps_sqlite(dist_folder):
29
29
  database_folder_name = "databases"
30
30
  appsel = Q2AppSelect(f"{dist_folder}/q2apps.sqlite")
31
- database_name_prefix = (
32
- os.path.basename(appsel.q2_app.app_url) if appsel.q2_app.app_url else "app1"
33
- )
31
+ database_name_prefix = os.path.basename(appsel.q2_app.app_url) if appsel.q2_app.app_url else "app1"
34
32
  appsel.db.insert(
35
33
  "applications",
36
34
  {
@@ -52,6 +50,8 @@ def create_q2apps_sqlite(dist_folder):
52
50
  )
53
51
  appsel.q2_app.migrate_db_logic(db_logic)
54
52
  AppManager().import_json_app(AppManager().get_app_json(), db_logic)
53
+ db_logic.close()
54
+ db_logic = None
55
55
 
56
56
 
57
57
  def make_binary(self):
@@ -63,6 +63,7 @@ def make_binary(self):
63
63
  datatype="char",
64
64
  data=os.path.basename(q2app.q2_app.app_url) if q2app.q2_app.app_url else "q2-app",
65
65
  )
66
+ form.add_control("onefile", "One file", datatype="char", control="check")
66
67
  form.ok_button = 1
67
68
  form.cancel_button = 1
68
69
  form.show_form("Build binary")
@@ -74,6 +75,7 @@ def make_binary(self):
74
75
 
75
76
  make_folder = os.path.abspath(form.s.make_folder)
76
77
  binary_name = form.s.binary_name
78
+ onefile = "--onefile" if form.s.onefile else ""
77
79
  if not os.path.isdir(make_folder):
78
80
  os.mkdir(make_folder)
79
81
  if not os.path.isdir(make_folder):
@@ -113,12 +115,20 @@ def make_binary(self):
113
115
  if not os.path.isfile(os.path.abspath(f"{make_folder}/q2rad.ico")):
114
116
  shutil.copy("assets/q2rad.ico", os.path.abspath(f"{make_folder}/q2rad.ico"))
115
117
  # run pyinstaller
116
- terminal.run(f"{pynstaller_executable} -y --noconsole {packages} -i q2rad.ico '{binary_name}.py'")
117
-
118
+ terminal.run(
119
+ f"{pynstaller_executable} -y --noconsole --clean {onefile} "
120
+ f" {packages} -i q2rad.ico '{binary_name}.py'"
121
+ )
118
122
  if not os.path.isdir(os.path.abspath(f"{dist_folder}/assets")):
119
123
  shutil.copytree("assets", os.path.abspath(f"{dist_folder}/assets"))
120
124
  create_q2apps_sqlite(f"{dist_folder}")
121
125
 
126
+ if onefile:
127
+ dist_folder = os.path.abspath(f"{make_folder}/dist")
128
+ for x in os.listdir(dist_folder):
129
+ if os.path.isfile(os.path.join(dist_folder, x)):
130
+ shutil.move(os.path.join(dist_folder, x), os.path.join(dist_folder, binary_name, x))
131
+
122
132
  w.close()
123
133
 
124
134
  if terminal.exit_code != 0:
@@ -79,7 +79,7 @@ import traceback
79
79
  # TODO: excel custom format 2 report
80
80
 
81
81
 
82
- q2_modules = ["q2rad", "q2gui", "q2db", "q2report", "q2terminal", "q2data2docx", "q2googledrive"]
82
+ q2_modules = ["q2rad", "q2gui", "q2db", "q2report", "q2terminal", "q2data2docx"]
83
83
  const = q2const()
84
84
  _ = gettext.gettext
85
85
 
@@ -0,0 +1 @@
1
+ __version__ = "0.1.177"
@@ -1 +0,0 @@
1
- __version__ = "0.1.175"
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