From 51e7ec062f16c7f7efdc2fff22c45f70e733c8e8 Mon Sep 17 00:00:00 2001 From: "Andreas H. Kelch" Date: Thu, 27 Jan 2022 13:45:51 +0100 Subject: [PATCH] fix: append setuptool to generated requirements.txt --- src/viur_cli/deploy.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/viur_cli/deploy.py b/src/viur_cli/deploy.py index b47b6ed..fe17eb6 100644 --- a/src/viur_cli/deploy.py +++ b/src/viur_cli/deploy.py @@ -43,4 +43,9 @@ def create_req(): if click.confirm(f"Do you want to regenerate the requirements.txt located in the {distFolder}?"): os.system(f"pipfile2req --hashes > {distFolder}/requirements.txt") + #append setupTools for GCP + file_object = open(f"{distFolder}/requirements.txt", 'a') + file_object.write('\nsetuptools==59.5.0 --hash=sha256:6d10741ff20b89cd8c6a536ee9dc90d3002dec0226c78fb98605bfb9ef8a7adf') + file_object.close() + echo_info("requirements.txt successfully generated")