bcpkgfox 0.16.14__tar.gz → 0.16.16__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.14 → bcpkgfox-0.16.16}/PKG-INFO +1 -1
- {bcpkgfox-0.16.14 → bcpkgfox-0.16.16}/bcpkgfox/cli.py +13 -5
- {bcpkgfox-0.16.14 → bcpkgfox-0.16.16}/bcpkgfox.egg-info/PKG-INFO +1 -1
- {bcpkgfox-0.16.14 → bcpkgfox-0.16.16}/setup.py +1 -1
- {bcpkgfox-0.16.14 → bcpkgfox-0.16.16}/README.md +0 -0
- {bcpkgfox-0.16.14 → bcpkgfox-0.16.16}/bcpkgfox/__init__.py +0 -0
- {bcpkgfox-0.16.14 → bcpkgfox-0.16.16}/bcpkgfox/exec_file.py +0 -0
- {bcpkgfox-0.16.14 → bcpkgfox-0.16.16}/bcpkgfox/find_elements.py +0 -0
- {bcpkgfox-0.16.14 → bcpkgfox-0.16.16}/bcpkgfox/get_driver.py +0 -0
- {bcpkgfox-0.16.14 → bcpkgfox-0.16.16}/bcpkgfox/invoke_api.py +0 -0
- {bcpkgfox-0.16.14 → bcpkgfox-0.16.16}/bcpkgfox/system.py +0 -0
- {bcpkgfox-0.16.14 → bcpkgfox-0.16.16}/bcpkgfox.egg-info/SOURCES.txt +0 -0
- {bcpkgfox-0.16.14 → bcpkgfox-0.16.16}/bcpkgfox.egg-info/dependency_links.txt +0 -0
- {bcpkgfox-0.16.14 → bcpkgfox-0.16.16}/bcpkgfox.egg-info/entry_points.txt +0 -0
- {bcpkgfox-0.16.14 → bcpkgfox-0.16.16}/bcpkgfox.egg-info/requires.txt +0 -0
- {bcpkgfox-0.16.14 → bcpkgfox-0.16.16}/bcpkgfox.egg-info/top_level.txt +0 -0
- {bcpkgfox-0.16.14 → bcpkgfox-0.16.16}/setup.cfg +0 -0
|
@@ -389,11 +389,19 @@ class cli:
|
|
|
389
389
|
target_name = name_dir[-1]
|
|
390
390
|
|
|
391
391
|
dist_path = os.path.join(self.current_dir, "dist")
|
|
392
|
-
|
|
392
|
+
temp_path = os.path.join(self.current_dir, f"{target_name}_temp")
|
|
393
|
+
inner_path = os.path.join(temp_path, target_name)
|
|
394
|
+
|
|
395
|
+
if os.path.exists(os.path.join(self.current_dir, f"{target_name}.zip")):
|
|
396
|
+
shutil.rmtree(os.path.join(self.current_dir, f"{target_name}.zip"))
|
|
397
|
+
if os.path.exists(os.path.join(self.current_dir, f"{target_name}")):
|
|
398
|
+
shutil.rmtree(os.path.join(self.current_dir, f"{target_name}"))
|
|
393
399
|
|
|
394
400
|
if os.path.exists(dist_path):
|
|
395
|
-
os.
|
|
396
|
-
|
|
401
|
+
if os.path.exists(temp_path):
|
|
402
|
+
shutil.rmtree(temp_path)
|
|
403
|
+
os.mkdir(temp_path)
|
|
404
|
+
shutil.move(dist_path, inner_path)
|
|
397
405
|
else:
|
|
398
406
|
print(f"{self.visuals.bold}{self.visuals.RD}Error: 'dist' directory not found!{self.visuals.RESET}")
|
|
399
407
|
sys.exit(1)
|
|
@@ -401,7 +409,7 @@ class cli:
|
|
|
401
409
|
zip_path = shutil.make_archive(
|
|
402
410
|
os.path.join(self.current_dir, target_name),
|
|
403
411
|
'zip',
|
|
404
|
-
root_dir=
|
|
412
|
+
root_dir=temp_path,
|
|
405
413
|
base_dir=target_name
|
|
406
414
|
)
|
|
407
415
|
|
|
@@ -417,7 +425,7 @@ class cli:
|
|
|
417
425
|
if wait >= 600:
|
|
418
426
|
raise TimeoutError("Timeout while waiting for zip file to be accessible.")
|
|
419
427
|
|
|
420
|
-
shutil.rmtree(
|
|
428
|
+
shutil.rmtree(temp_path)
|
|
421
429
|
zip_log = True
|
|
422
430
|
|
|
423
431
|
except Exception as e:
|
|
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
|