a
This commit is contained in:
parent
a9f8d245b9
commit
15b3237d4c
2 changed files with 3 additions and 3 deletions
|
|
@ -31,8 +31,7 @@ def api():
|
||||||
@click.option(
|
@click.option(
|
||||||
"--otp_server",
|
"--otp_server",
|
||||||
default="https://otp.ungleich.ch/ungleichotp/",
|
default="https://otp.ungleich.ch/ungleichotp/",
|
||||||
help="URL of ungleich OTP server",
|
help="URL of ungleich OTP server")
|
||||||
)
|
|
||||||
def setup(
|
def setup(
|
||||||
path,
|
path,
|
||||||
auth_name,
|
auth_name,
|
||||||
|
|
|
||||||
|
|
@ -87,7 +87,8 @@ class VirtualenvOperation(object):
|
||||||
if package_name:
|
if package_name:
|
||||||
command = f"pip install {package_name}"
|
command = f"pip install {package_name}"
|
||||||
else:
|
else:
|
||||||
command = f"pip install"
|
subprocess.check_output("pipenv run pip freeze > requirements.txt".split())
|
||||||
|
command = f"pip install -r requirements.txt"
|
||||||
try:
|
try:
|
||||||
output = subprocess.check_output(command.split(), cwd=path)
|
output = subprocess.check_output(command.split(), cwd=path)
|
||||||
except subprocess.CalledProcessError as e:
|
except subprocess.CalledProcessError as e:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue