bcpkgfox 0.16.32__tar.gz → 0.16.33__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.32
3
+ Version: 0.16.33
4
4
  Summary: Biblioteca BCFOX
5
5
  Home-page: https://github.com/robotsbcfox/PacotePythonBCFOX
6
6
  Author: Guilherme Neri
@@ -57,6 +57,12 @@ class cli:
57
57
  help="Deletes venv\n"
58
58
  )
59
59
 
60
+ venv_group.add_argument(
61
+ '-r', '--requirements',
62
+ action='store_true',
63
+ const='requirements.txt'
64
+ help="Create a requirements\n"
65
+ )
60
66
 
61
67
  exe_group = self.parser.add_argument_group(f'{self.visuals.ORANGE}{self.visuals.bold} Exe options{self.visuals.RESET}')
62
68
  exe_group.add_argument(
@@ -783,16 +789,28 @@ class cli:
783
789
  self.descerror = e
784
790
  self.error = 1
785
791
  print(e)
786
- print(e)
787
- print(e)
788
- print(e)
789
- print(e)
790
792
  sys.exit()
791
793
 
792
794
  def recreate_venv(self):
793
795
  self.delete_venv()
794
796
  self.create_venv()
795
797
 
798
+ def requirementes(self):
799
+ if self.cli.args.requirements:
800
+ if '.' in self.cli.args.requirements:
801
+ ext = self.cli.args.requirements.rsplit('.', 1)[1]
802
+ else:
803
+ ext = None
804
+ try:
805
+ os.remove(os.path.join(self.current_dir, self.cli.args.requirements))
806
+ except:
807
+ try:
808
+ os.remove(os.path.join(self.current_dir, 'requirements.txt'))
809
+ except:
810
+ pass
811
+
812
+ subprocess.run("pip freeze > requirements.txt", shell=True)
813
+
796
814
  def main(self):
797
815
  try: self.delete_venv()
798
816
  except: pass
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bcpkgfox
3
- Version: 0.16.32
3
+ Version: 0.16.33
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.32",
5
+ version="0.16.33",
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