bcpkgfox 0.16.5b12__tar.gz → 0.16.7__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.5b12
3
+ Version: 0.16.7
4
4
  Summary: Biblioteca BCFOX
5
5
  Home-page: https://github.com/robotsbcfox/PacotePythonBCFOX
6
6
  Author: Guilherme Neri
@@ -22,89 +22,91 @@ class cli:
22
22
  self.venv_manager = self.venv_mangt(self)
23
23
 
24
24
  self.parser = argparse.ArgumentParser(
25
- add_help=False
25
+ add_help=False,
26
+ description=f"{self.visuals.bold}{self.visuals.DK_ORANGE} Library Help \n{self.visuals.RESET}",
27
+ formatter_class=argparse.RawTextHelpFormatter
26
28
  )
27
29
 
28
30
  self._setup_arguments()
29
31
 
30
32
  def _setup_arguments(self):
31
33
  """Configure all CLI arguments"""
32
- venv_group = self.parser.add_argument_group('virtual environment options')
34
+ venv_group = self.parser.add_argument_group(f'{self.visuals.ORANGE}{self.visuals.bold} Virtual Environment Options{self.visuals.RESET}')
33
35
  venv_group.add_argument(
34
36
  '-v', '--venv',
35
37
  action='store_true',
36
- help="Creates a new virtual environment with all dependencies installed"
38
+ help="Creates a new virtual environment with all dependencies installed\n"
37
39
  )
38
40
 
39
41
  venv_group.add_argument(
40
42
  '-vc', '--venv-clean',
41
43
  action='store_true',
42
- help="Creates a virtual environment without dependencies"
44
+ help="Creates a virtual environment without dependencies\n"
43
45
  )
44
46
 
45
47
  venv_group.add_argument(
46
48
  '-rv', '--recreate-venv',
47
49
  action='store_true',
48
- help="Recreates venv (without dependencies)"
50
+ help="Recreates venv (without dependencies)\n"
49
51
  )
50
52
 
51
53
  venv_group.add_argument(
52
54
  '-dv', '--delete-venv',
53
55
  action='store_true',
54
- help="Deletes venv"
56
+ help="Deletes venv\n"
55
57
  )
56
58
 
57
59
 
58
- exe_group = self.parser.add_argument_group('.exe options')
60
+ exe_group = self.parser.add_argument_group(f'{self.visuals.ORANGE}{self.visuals.bold} Exe options{self.visuals.RESET}')
59
61
  exe_group.add_argument(
60
62
  '-e', '--exe',
61
63
  action='store_true',
62
- help="Creates a .exe of the file"
64
+ help="Creates a .exe of the file\n"
63
65
  )
64
66
 
65
67
  exe_group.add_argument(
66
68
  '-nc', '--no-console',
67
69
  action='store_true',
68
- help="The exe don't open the console when started"
70
+ help="The exe don't open the console when started\n"
69
71
  )
70
72
 
71
73
  exe_group.add_argument(
72
74
  '-z', '--zip',
73
75
  action='store_true',
74
- help="Make a zip of the 'dist' and rename it to the name of the file"
76
+ help="Make a zip of the 'dist' and rename it to the name of the file\n"
75
77
  )
76
78
 
77
79
  exe_group.add_argument(
78
80
  '-ic', '--icon',
79
81
  type=str,
80
82
  nargs='+',
81
- help="Change the exe icon (put .ico path)"
83
+ help="Change the exe icon (put .ico path)\n"
82
84
  )
83
85
 
84
86
  exe_group.add_argument(
85
87
  '-ad', '--add-data',
86
88
  type=str,
87
89
  nargs='+',
88
- help="Add data(s) to .exe (similar of pyinstaller)"
90
+ help="Add data(s) to .exe (similar of pyinstaller)\n"
89
91
  )
90
92
 
91
- file_group = self.parser.add_argument_group('file options')
93
+ file_group = self.parser.add_argument_group(f'{self.visuals.ORANGE}{self.visuals.bold} File Options{self.visuals.RESET}')
92
94
  file_group.add_argument(
93
95
  '-fi', '--find-imports',
94
96
  action='store_true',
95
- help="Finds all imports necessary for the lib to work"
97
+ help="Finds all imports necessary for the lib to work\n"
96
98
  )
97
99
 
98
100
  file_group.add_argument(
99
101
  '-vi', '--verify-imports',
100
102
  action='store_true',
101
- help="Shows imports that were not installed automatically"
103
+ help="Shows imports that were not installed automatically\n"
102
104
  )
103
105
 
104
106
  file_group.add_argument(
105
107
  '-i', '--install-imports',
106
108
  action='store_true',
107
- help="Installs all imports necessary for the lib to work"
109
+ help="Installs all imports necessary for the lib to work\n"
108
110
  )
109
111
 
110
112
  self.parser.add_argument(
@@ -192,6 +194,7 @@ class cli:
192
194
 
193
195
  self.DK_ORANGE = "\033[38;5;130m"
194
196
  self.ORANGE = "\033[38;5;214m"
197
+ self.YL = "\033[38;5;226m"
195
198
  self.RD = "\033[38;5;196m"
196
199
  self.GR = "\033[38;5;34m"
197
200
  self.RESET = "\033[0m"
@@ -475,9 +478,9 @@ class cli:
475
478
 
476
479
  def verify_imports(self):
477
480
  if self.error_libs:
478
- print(f"{self.visuals.bold}{self.visuals.RD} WARNING: \n The libraries below can't be installed. This is not necessarily an error, just an alert.{self.visuals.RESET}", end="\r")
481
+ print(f"{self.visuals.bold}{self.visuals.YL} WARNING: \n The libraries below can't be installed. This is not necessarily an error, just an alert.{self.visuals.RESET}")
479
482
  for lib in self.error_libs:
480
- print(f" {self.visuals.bold}{self.visuals.RD} - {lib} {self.visuals.RESET}")
483
+ print(f" {self.visuals.bold}{self.visuals.YL} - {lib} {self.visuals.RESET}")
481
484
 
482
485
  def main(self, return_=False):
483
486
  self.target_file = self.cli.file #FIX
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bcpkgfox
3
- Version: 0.16.5b12
3
+ Version: 0.16.7
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.5b12",
5
+ version="0.16.7",
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