bcpkgfox 0.16.31__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.
Potentially problematic release.
This version of bcpkgfox might be problematic. Click here for more details.
- {bcpkgfox-0.16.31 → bcpkgfox-0.16.33}/PKG-INFO +1 -1
- {bcpkgfox-0.16.31 → bcpkgfox-0.16.33}/bcpkgfox/cli.py +22 -4
- {bcpkgfox-0.16.31 → bcpkgfox-0.16.33}/bcpkgfox/system.py +1 -1
- {bcpkgfox-0.16.31 → bcpkgfox-0.16.33}/bcpkgfox.egg-info/PKG-INFO +1 -1
- {bcpkgfox-0.16.31 → bcpkgfox-0.16.33}/setup.py +1 -1
- {bcpkgfox-0.16.31 → bcpkgfox-0.16.33}/README.md +0 -0
- {bcpkgfox-0.16.31 → bcpkgfox-0.16.33}/bcpkgfox/__init__.py +0 -0
- {bcpkgfox-0.16.31 → bcpkgfox-0.16.33}/bcpkgfox/clean.py +0 -0
- {bcpkgfox-0.16.31 → bcpkgfox-0.16.33}/bcpkgfox/find_elements.py +0 -0
- {bcpkgfox-0.16.31 → bcpkgfox-0.16.33}/bcpkgfox/get_driver.py +0 -0
- {bcpkgfox-0.16.31 → bcpkgfox-0.16.33}/bcpkgfox/invoke_api.py +0 -0
- {bcpkgfox-0.16.31 → bcpkgfox-0.16.33}/bcpkgfox.egg-info/SOURCES.txt +0 -0
- {bcpkgfox-0.16.31 → bcpkgfox-0.16.33}/bcpkgfox.egg-info/dependency_links.txt +0 -0
- {bcpkgfox-0.16.31 → bcpkgfox-0.16.33}/bcpkgfox.egg-info/entry_points.txt +0 -0
- {bcpkgfox-0.16.31 → bcpkgfox-0.16.33}/bcpkgfox.egg-info/requires.txt +0 -0
- {bcpkgfox-0.16.31 → bcpkgfox-0.16.33}/bcpkgfox.egg-info/top_level.txt +0 -0
- {bcpkgfox-0.16.31 → bcpkgfox-0.16.33}/setup.cfg +0 -0
|
@@ -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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|