Skip to content

Commit

Permalink
fix: append setuptool to generated requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
akelch committed Jan 27, 2022
1 parent 8c2cbe8 commit 51e7ec0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/viur_cli/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit 51e7ec0

Please sign in to comment.