bcpkgfox 0.16.9__tar.gz → 0.16.11__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.9
3
+ Version: 0.16.11
4
4
  Summary: Biblioteca BCFOX
5
5
  Home-page: https://github.com/robotsbcfox/PacotePythonBCFOX
6
6
  Author: Guilherme Neri
@@ -24,7 +24,8 @@ class cli:
24
24
  self.parser = argparse.ArgumentParser(
25
25
  add_help=False,
26
26
  description=f"{self.visuals.bold}{self.visuals.DK_ORANGE} BCFOX Library \n You can use the arguments in any order you want.\n\n Most flags are independent, you can use it alone or combine them in a single command interacting with each other when applicable.{self.visuals.RESET}",
27
- formatter_class=argparse.RawTextHelpFormatter
27
+ formatter_class=argparse.ArgumentDefaultsHelpFormatter
28
+ # formatter_class=argparse.RawTextHelpFormatter # Formats the 'help' text manually
28
29
  )
29
30
 
30
31
  self._setup_arguments()
@@ -35,25 +36,25 @@ class cli:
35
36
  venv_group.add_argument(
36
37
  '-v', '--venv',
37
38
  action='store_true',
38
- help="Creates a new virtual environment with all dependencies installed\n\n"
39
+ help="Creates a new virtual environment with all dependencies installed\n"
39
40
  )
40
41
 
41
42
  venv_group.add_argument(
42
43
  '-vc', '--venv-clean',
43
44
  action='store_true',
44
- help="Creates a virtual environment without dependencies\n\n"
45
+ help="Creates a virtual environment without dependencies\n"
45
46
  )
46
47
 
47
48
  venv_group.add_argument(
48
49
  '-rv', '--recreate-venv',
49
50
  action='store_true',
50
- help="Recreates venv (without dependencies)\n\n"
51
+ help="Recreates venv (without dependencies)\n"
51
52
  )
52
53
 
53
54
  venv_group.add_argument(
54
55
  '-dv', '--delete-venv',
55
56
  action='store_true',
56
- help="Deletes venv\n\n"
57
+ help="Deletes venv\n"
57
58
  )
58
59
 
59
60
 
@@ -61,52 +62,52 @@ class cli:
61
62
  exe_group.add_argument(
62
63
  '-e', '--exe',
63
64
  action='store_true',
64
- help="Creates a .exe of the file\n\n"
65
+ help="Creates a .exe of the file\n"
65
66
  )
66
67
 
67
68
  exe_group.add_argument(
68
69
  '-nc', '--no-console',
69
70
  action='store_true',
70
- help="The exe don't open the console when started\n\n"
71
+ help="The exe don't open the console when started\n"
71
72
  )
72
73
 
73
74
  exe_group.add_argument(
74
75
  '-z', '--zip',
75
76
  action='store_true',
76
- help="Make a zip of the 'dist' and rename it to the name of the file\n\n"
77
+ help="Make a zip of the 'dist' and rename it to the name of the file\n"
77
78
  )
78
79
 
79
80
  exe_group.add_argument(
80
81
  '-ic', '--icon',
81
82
  type=str,
82
83
  nargs='+',
83
- help="Change the exe icon (put .ico path)\n\n"
84
+ help="Change the exe icon (put .ico path)\n"
84
85
  )
85
86
 
86
87
  exe_group.add_argument(
87
88
  '-ad', '--add-data',
88
89
  type=str,
89
90
  nargs='+',
90
- help="Add data(s) to .exe (similar of pyinstaller)\n\n"
91
+ help="Add data(s) to .exe (similar of pyinstaller)\n"
91
92
  )
92
93
 
93
94
  file_group = self.parser.add_argument_group(f'{self.visuals.ORANGE}{self.visuals.bold} File Options{self.visuals.RESET}')
94
95
  file_group.add_argument(
95
96
  '-fi', '--find-imports',
96
97
  action='store_true',
97
- help="Finds all imports necessary for the lib to work\n\n"
98
+ help="Finds all imports necessary for the lib to work\n"
98
99
  )
99
100
 
100
101
  file_group.add_argument(
101
102
  '-vi', '--verify-imports',
102
103
  action='store_true',
103
- help="Shows imports that were not installed automatically\n\n"
104
+ help="Shows imports that were not installed automatically\n"
104
105
  )
105
106
 
106
107
  file_group.add_argument(
107
108
  '-i', '--install-imports',
108
109
  action='store_true',
109
- help="Installs all imports necessary for the lib to work\n\n"
110
+ help="Installs all imports necessary for the lib to work\n"
110
111
  )
111
112
 
112
113
  self.parser.add_argument(
@@ -394,7 +395,8 @@ class cli:
394
395
  os.rename(dist_path, new_path)
395
396
  print(f"Renamed 'dist' to '{target_name}'")
396
397
  else:
397
- print("Error: 'dist' directory not found!")
398
+ print(f"{self.visuals.bold}{self.visuals.RD}Error: 'dist' directory not found!{self.visuals.RESET}")
399
+ sys.exit(1)
398
400
 
399
401
  zip_path = shutil.make_archive(new_path, 'zip', new_path)
400
402
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bcpkgfox
3
- Version: 0.16.9
3
+ Version: 0.16.11
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.9",
5
+ version="0.16.11",
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
File without changes