bcpkgfox 0.16.12__tar.gz → 0.16.13__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bcpkgfox
3
- Version: 0.16.12
3
+ Version: 0.16.13
4
4
  Summary: Biblioteca BCFOX
5
5
  Home-page: https://github.com/robotsbcfox/PacotePythonBCFOX
6
6
  Author: Guilherme Neri
@@ -391,19 +391,15 @@ class cli:
391
391
  dist_path = os.path.join(self.current_dir, "dist")
392
392
  new_path = os.path.join(self.current_dir, target_name)
393
393
 
394
- if os.path.exists(dist_path) and os.path.exists(f"{new_path}_temp"):
394
+ if os.path.exists(dist_path):
395
395
  os.rename(dist_path, new_path)
396
-
397
- os.mkdir(f"{new_path}_temp")
398
- time.sleep(0.5)
399
- os.rename(new_path, f"{new_path}_temp\\{target_name}")
400
-
401
- print(f"Renamed and moved 'dist' to '{new_path, f"{new_path}_temp\\{target_name}"}'")
396
+ print(f"Renamed 'dist' to '{target_name}'")
402
397
  else:
403
398
  print(f"{self.visuals.bold}{self.visuals.RD}Error: 'dist' directory not found!{self.visuals.RESET}")
404
399
  sys.exit(1)
405
400
 
406
401
  zip_path = shutil.make_archive(new_path, 'zip', new_path)
402
+ shutil.make_archive(str(new_path), 'zip', root_dir=str(new_path.parent), base_dir=str(new_path.name))
407
403
 
408
404
  # Espera o sistema liberar o zip
409
405
  wait = 0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bcpkgfox
3
- Version: 0.16.12
3
+ Version: 0.16.13
4
4
  Summary: Biblioteca BCFOX
5
5
  Home-page: https://github.com/robotsbcfox/PacotePythonBCFOX
6
6
  Author: Guilherme Neri
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="bcpkgfox",
5
- version="0.16.12",
5
+ version="0.16.13",
6
6
  author="Guilherme Neri",
7
7
  author_email="guilherme.neri@bcfox.com.br",
8
8
  description="Biblioteca BCFOX",
File without changes
File without changes