From 15b3237d4ca1310b37733e9d79f2e1c2a7a34542 Mon Sep 17 00:00:00 2001 From: Ahmed Bilal Khalid Date: Fri, 30 Aug 2019 06:29:31 +0500 Subject: [PATCH] a --- app/api.py | 3 +-- app/helper.py | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/api.py b/app/api.py index 96438e8..fb0340a 100644 --- a/app/api.py +++ b/app/api.py @@ -31,8 +31,7 @@ def api(): @click.option( "--otp_server", default="https://otp.ungleich.ch/ungleichotp/", - help="URL of ungleich OTP server", -) + help="URL of ungleich OTP server") def setup( path, auth_name, diff --git a/app/helper.py b/app/helper.py index 376cbef..e37edd8 100644 --- a/app/helper.py +++ b/app/helper.py @@ -87,7 +87,8 @@ class VirtualenvOperation(object): if package_name: command = f"pip install {package_name}" else: - command = f"pip install" + subprocess.check_output("pipenv run pip freeze > requirements.txt".split()) + command = f"pip install -r requirements.txt" try: output = subprocess.check_output(command.split(), cwd=path) except subprocess.CalledProcessError as e: