bcpkgfox 0.16.37__py3-none-any.whl → 0.16.39__py3-none-any.whl

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 bcpkgfox might be problematic. Click here for more details.

bcpkgfox/cli.py CHANGED
@@ -59,9 +59,10 @@ class cli:
59
59
 
60
60
  venv_group.add_argument(
61
61
  '-r', '--requirements',
62
- nargs='?',
63
- action=self.venv_manager.custom_action_requirements,
64
- default=False,
62
+ action='store_true',
63
+ # nargs='?',
64
+ # action=self.venv_manager.custom_action_requirements,
65
+ # default=False,
65
66
  help="Create a requirements\n"
66
67
  )
67
68
 
@@ -509,7 +510,7 @@ class cli:
509
510
  print(f" {self.visuals.bold}{self.visuals.YL} - {lib} {self.visuals.RESET}")
510
511
 
511
512
  def main(self, return_=False):
512
- self.target_file = self.cli.file #FIX
513
+ self.target_file = self.cli.file
513
514
 
514
515
  if not self.target_file:
515
516
  print(f"{self.visuals.bold}{self.visuals.RD} > Error: Please pass your 'target_file' to detect the libraries.{self.visuals.RESET}")
@@ -811,11 +812,14 @@ class cli:
811
812
 
812
813
  def requirements(self):
813
814
 
814
- # Identifies endwish
815
- if '.' in self.cli.args.requirements:
816
- name = self.cli.args.requirements
817
- else:
818
- name = self.cli.args.requirements + '.txt'
815
+ # # Identifies endwish
816
+ # if '.' in self.cli.args.requirements:
817
+ # name = self.cli.args.requirements
818
+ # else:
819
+ # name = self.cli.args.requirements + '.txt'
820
+
821
+ # FIX: name is always 'requirements.txt'
822
+ name = 'requirements.txt'
819
823
 
820
824
  # Attempt of recreate
821
825
  try:
@@ -831,11 +835,11 @@ class cli:
831
835
  lines = f.readlines()
832
836
 
833
837
  # Re-write
834
- imports = self.cli.find_import.main(return_=True)
838
+ imports = self.cli.find_imports.main(return_=True)
835
839
  imports_lower = {imp.lower() for imp in imports}
836
840
  with open(f'{name}', 'w') as f:
837
841
  for line in lines:
838
- if line.lower() in imports_lower:
842
+ if imports_lower in line.lower():
839
843
  f.write(line)
840
844
 
841
845
  def main(self):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bcpkgfox
3
- Version: 0.16.37
3
+ Version: 0.16.39
4
4
  Summary: Biblioteca BCFOX
5
5
  Home-page: https://github.com/robotsbcfox/PacotePythonBCFOX
6
6
  Author: Guilherme Neri
@@ -1,13 +1,13 @@
1
1
  bcpkgfox/__init__.py,sha256=BCTiPEXhpV3lV3HSVW6iCWFVema6VsIuwCQrUcHk8QM,16416
2
2
  bcpkgfox/clean.py,sha256=80pJDTGmKmPiq73uL1IWopuxqVJF_bj_RVv-njkpl-A,8946
3
- bcpkgfox/cli.py,sha256=dM_cL0BimgKufnqoz1zM2LZ-B225kOAt-_fSqBRMkc4,32723
3
+ bcpkgfox/cli.py,sha256=cLrfDuFs4p5NVrE2-0EPI67dB72qIbne8IJ3tVMj02U,32863
4
4
  bcpkgfox/exec_file.py,sha256=fl_Do2SlF7JuXazpNTod-e_0WZUk355fbd7ustQvi40,3728
5
5
  bcpkgfox/find_elements.py,sha256=oeB-73LqMLoKchozPXuxRkThBju9IgUKqbgU-2AAq0s,23027
6
6
  bcpkgfox/get_driver.py,sha256=ohimk9E2hL6T35IXv0XX0uvWDGCUZvZDlPMnuRjV1R0,30490
7
7
  bcpkgfox/invoke_api.py,sha256=UTksbSmg6yucWk-egH1gavYoViKvpUq-OAp5t308ZmY,5334
8
8
  bcpkgfox/system.py,sha256=3lyOWx893T6KiAI-jDv7zAo3oKPf0Q5CLgZ8TeFd0Do,7901
9
- bcpkgfox-0.16.37.dist-info/METADATA,sha256=wYRvCAaL0m6kA5sWoAWRwjfymaOJhavGN33KqCBfhbA,1912
10
- bcpkgfox-0.16.37.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
11
- bcpkgfox-0.16.37.dist-info/entry_points.txt,sha256=qmaEg6K7Y0HOeaFo-G6lf44InGkeVI4I6hqobcY_nns,653
12
- bcpkgfox-0.16.37.dist-info/top_level.txt,sha256=h01SqyYBEfS72vkRFOlEDZBUSu9pzU0bdX4m9hWNNmw,9
13
- bcpkgfox-0.16.37.dist-info/RECORD,,
9
+ bcpkgfox-0.16.39.dist-info/METADATA,sha256=9Pmqm6Sl1nUgEsIBrQhN1YhCXLlBdH2YUfrFb16JZGU,1912
10
+ bcpkgfox-0.16.39.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
11
+ bcpkgfox-0.16.39.dist-info/entry_points.txt,sha256=qmaEg6K7Y0HOeaFo-G6lf44InGkeVI4I6hqobcY_nns,653
12
+ bcpkgfox-0.16.39.dist-info/top_level.txt,sha256=h01SqyYBEfS72vkRFOlEDZBUSu9pzU0bdX4m9hWNNmw,9
13
+ bcpkgfox-0.16.39.dist-info/RECORD,,