bcpkgfox 0.16.5b3__tar.gz → 0.16.5b5__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.
- {bcpkgfox-0.16.5b3 → bcpkgfox-0.16.5b5}/PKG-INFO +1 -1
- {bcpkgfox-0.16.5b3 → bcpkgfox-0.16.5b5}/bcpkgfox/cli.py +32 -12
- {bcpkgfox-0.16.5b3 → bcpkgfox-0.16.5b5}/bcpkgfox.egg-info/PKG-INFO +1 -1
- {bcpkgfox-0.16.5b3 → bcpkgfox-0.16.5b5}/setup.py +1 -1
- {bcpkgfox-0.16.5b3 → bcpkgfox-0.16.5b5}/README.md +0 -0
- {bcpkgfox-0.16.5b3 → bcpkgfox-0.16.5b5}/bcpkgfox/__init__.py +0 -0
- {bcpkgfox-0.16.5b3 → bcpkgfox-0.16.5b5}/bcpkgfox/exec_file.py +0 -0
- {bcpkgfox-0.16.5b3 → bcpkgfox-0.16.5b5}/bcpkgfox/find_elements.py +0 -0
- {bcpkgfox-0.16.5b3 → bcpkgfox-0.16.5b5}/bcpkgfox/get_driver.py +0 -0
- {bcpkgfox-0.16.5b3 → bcpkgfox-0.16.5b5}/bcpkgfox/invoke_api.py +0 -0
- {bcpkgfox-0.16.5b3 → bcpkgfox-0.16.5b5}/bcpkgfox/system.py +0 -0
- {bcpkgfox-0.16.5b3 → bcpkgfox-0.16.5b5}/bcpkgfox.egg-info/SOURCES.txt +0 -0
- {bcpkgfox-0.16.5b3 → bcpkgfox-0.16.5b5}/bcpkgfox.egg-info/dependency_links.txt +0 -0
- {bcpkgfox-0.16.5b3 → bcpkgfox-0.16.5b5}/bcpkgfox.egg-info/entry_points.txt +0 -0
- {bcpkgfox-0.16.5b3 → bcpkgfox-0.16.5b5}/bcpkgfox.egg-info/requires.txt +0 -0
- {bcpkgfox-0.16.5b3 → bcpkgfox-0.16.5b5}/bcpkgfox.egg-info/top_level.txt +0 -0
- {bcpkgfox-0.16.5b3 → bcpkgfox-0.16.5b5}/setup.cfg +0 -0
|
@@ -163,13 +163,16 @@ class cli:
|
|
|
163
163
|
self.exec_gen.zip_file()
|
|
164
164
|
|
|
165
165
|
# LOG - Verify imports
|
|
166
|
-
if self.args.
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
166
|
+
if self.args.verify_imports:
|
|
167
|
+
if self.args.find_imports \
|
|
168
|
+
or self.args.install_imports \
|
|
169
|
+
or self.args.venv \
|
|
170
|
+
or self.args.recreate_venv \
|
|
171
|
+
or self.args.exe:
|
|
172
172
|
self.find_imports.verify_imports()
|
|
173
|
+
else:
|
|
174
|
+
print(f"{self.visuals.bold}{self.visuals.RD} > Error: You need to use one function that installs imports before verifying them.{self.visuals.RESET}")
|
|
175
|
+
print("\033[J", end='', flush=True)
|
|
173
176
|
|
|
174
177
|
self.clean_terminal()
|
|
175
178
|
|
|
@@ -275,6 +278,7 @@ class cli:
|
|
|
275
278
|
self.error = 0
|
|
276
279
|
self.descerror = ""
|
|
277
280
|
self.visuals = self.cli.visuals
|
|
281
|
+
self.ultimate_error = None
|
|
278
282
|
|
|
279
283
|
def preparations(self):
|
|
280
284
|
self.current_dir = os.getcwd()
|
|
@@ -389,12 +393,25 @@ class cli:
|
|
|
389
393
|
else:
|
|
390
394
|
print("Error: 'dist' directory not found!")
|
|
391
395
|
|
|
392
|
-
shutil.make_archive(new_path, 'zip', new_path)
|
|
393
|
-
|
|
396
|
+
zip_path = shutil.make_archive(new_path, 'zip', new_path)
|
|
397
|
+
|
|
398
|
+
# Espera o sistema liberar o zip
|
|
399
|
+
wait = 0
|
|
400
|
+
while True:
|
|
401
|
+
try:
|
|
402
|
+
with open(zip_path, 'rb'):
|
|
403
|
+
break
|
|
404
|
+
except (PermissionError, OSError):
|
|
405
|
+
time.sleep(0.1)
|
|
406
|
+
wait += 1
|
|
407
|
+
if wait >= 600:
|
|
408
|
+
raise TimeoutError("Timeout while waiting for zip file to be accessible.")
|
|
409
|
+
|
|
410
|
+
shutil.rmtree(new_path)
|
|
394
411
|
zip_log = True
|
|
395
412
|
|
|
396
413
|
except Exception as e:
|
|
397
|
-
|
|
414
|
+
self.ultimate_error = e
|
|
398
415
|
|
|
399
416
|
finally:
|
|
400
417
|
animation.finish()
|
|
@@ -402,7 +419,8 @@ class cli:
|
|
|
402
419
|
if zip_log:
|
|
403
420
|
print(f"{self.visuals.bold}{self.visuals.GR} > Zip file created successfully {self.visuals.RESET}\n")
|
|
404
421
|
else:
|
|
405
|
-
print(f"{self.visuals.bold}{self.visuals.RD} > Error creating zip file
|
|
422
|
+
print(f"{self.visuals.bold}{self.visuals.RD} > Error creating zip file:\n")
|
|
423
|
+
print(f"{self.ultimate_error}{self.visuals.RESET}")
|
|
406
424
|
sys.exit(1)
|
|
407
425
|
|
|
408
426
|
def main(self):
|
|
@@ -729,12 +747,14 @@ class cli:
|
|
|
729
747
|
if result.stdout:
|
|
730
748
|
print(f"\033[0J{result.stdout.strip()}\033[0J")
|
|
731
749
|
|
|
732
|
-
except
|
|
750
|
+
except Exception as e:
|
|
751
|
+
print(e)
|
|
733
752
|
self.erro_libs.append(lib)
|
|
753
|
+
continue
|
|
734
754
|
|
|
735
755
|
process_finished = True
|
|
736
756
|
log_animation.join()
|
|
737
|
-
print(f" {self.visuals.bold}{self.visuals.GR} > All
|
|
757
|
+
print(f" {self.visuals.bold}{self.visuals.GR} > All packages installed successfully {self.visuals.RESET}\n\n")
|
|
738
758
|
|
|
739
759
|
except Exception as e:
|
|
740
760
|
process_finished = True
|
|
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
|