bcpkgfox 0.16.5b3__tar.gz → 0.16.5b4__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.5b4}/PKG-INFO +1 -1
- {bcpkgfox-0.16.5b3 → bcpkgfox-0.16.5b4}/bcpkgfox/cli.py +19 -4
- {bcpkgfox-0.16.5b3 → bcpkgfox-0.16.5b4}/bcpkgfox.egg-info/PKG-INFO +1 -1
- {bcpkgfox-0.16.5b3 → bcpkgfox-0.16.5b4}/setup.py +1 -1
- {bcpkgfox-0.16.5b3 → bcpkgfox-0.16.5b4}/README.md +0 -0
- {bcpkgfox-0.16.5b3 → bcpkgfox-0.16.5b4}/bcpkgfox/__init__.py +0 -0
- {bcpkgfox-0.16.5b3 → bcpkgfox-0.16.5b4}/bcpkgfox/exec_file.py +0 -0
- {bcpkgfox-0.16.5b3 → bcpkgfox-0.16.5b4}/bcpkgfox/find_elements.py +0 -0
- {bcpkgfox-0.16.5b3 → bcpkgfox-0.16.5b4}/bcpkgfox/get_driver.py +0 -0
- {bcpkgfox-0.16.5b3 → bcpkgfox-0.16.5b4}/bcpkgfox/invoke_api.py +0 -0
- {bcpkgfox-0.16.5b3 → bcpkgfox-0.16.5b4}/bcpkgfox/system.py +0 -0
- {bcpkgfox-0.16.5b3 → bcpkgfox-0.16.5b4}/bcpkgfox.egg-info/SOURCES.txt +0 -0
- {bcpkgfox-0.16.5b3 → bcpkgfox-0.16.5b4}/bcpkgfox.egg-info/dependency_links.txt +0 -0
- {bcpkgfox-0.16.5b3 → bcpkgfox-0.16.5b4}/bcpkgfox.egg-info/entry_points.txt +0 -0
- {bcpkgfox-0.16.5b3 → bcpkgfox-0.16.5b4}/bcpkgfox.egg-info/requires.txt +0 -0
- {bcpkgfox-0.16.5b3 → bcpkgfox-0.16.5b4}/bcpkgfox.egg-info/top_level.txt +0 -0
- {bcpkgfox-0.16.5b3 → bcpkgfox-0.16.5b4}/setup.cfg +0 -0
|
@@ -275,6 +275,7 @@ class cli:
|
|
|
275
275
|
self.error = 0
|
|
276
276
|
self.descerror = ""
|
|
277
277
|
self.visuals = self.cli.visuals
|
|
278
|
+
self.ultimate_error = None
|
|
278
279
|
|
|
279
280
|
def preparations(self):
|
|
280
281
|
self.current_dir = os.getcwd()
|
|
@@ -389,12 +390,25 @@ class cli:
|
|
|
389
390
|
else:
|
|
390
391
|
print("Error: 'dist' directory not found!")
|
|
391
392
|
|
|
392
|
-
shutil.make_archive(new_path, 'zip', new_path)
|
|
393
|
-
|
|
393
|
+
zip_path = shutil.make_archive(new_path, 'zip', new_path)
|
|
394
|
+
|
|
395
|
+
# Espera o sistema liberar o zip
|
|
396
|
+
wait = 0
|
|
397
|
+
while True:
|
|
398
|
+
try:
|
|
399
|
+
with open(zip_path, 'rb'):
|
|
400
|
+
break
|
|
401
|
+
except (PermissionError, OSError):
|
|
402
|
+
time.sleep(0.1)
|
|
403
|
+
wait += 1
|
|
404
|
+
if wait >= 600:
|
|
405
|
+
raise TimeoutError("Timeout while waiting for zip file to be accessible.")
|
|
406
|
+
|
|
407
|
+
shutil.rmtree(new_path)
|
|
394
408
|
zip_log = True
|
|
395
409
|
|
|
396
410
|
except Exception as e:
|
|
397
|
-
|
|
411
|
+
self.ultimate_error = e
|
|
398
412
|
|
|
399
413
|
finally:
|
|
400
414
|
animation.finish()
|
|
@@ -402,7 +416,8 @@ class cli:
|
|
|
402
416
|
if zip_log:
|
|
403
417
|
print(f"{self.visuals.bold}{self.visuals.GR} > Zip file created successfully {self.visuals.RESET}\n")
|
|
404
418
|
else:
|
|
405
|
-
print(f"{self.visuals.bold}{self.visuals.RD} > Error creating zip file
|
|
419
|
+
print(f"{self.visuals.bold}{self.visuals.RD} > Error creating zip file:\n")
|
|
420
|
+
print(f"{self.ultimate_error}{self.visuals.RESET}")
|
|
406
421
|
sys.exit(1)
|
|
407
422
|
|
|
408
423
|
def main(self):
|
|
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
|