File tree Expand file tree Collapse file tree
{{cookiecutter.project_slug}} Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ def post_gen_project():
4747 if "{{ cookiecutter.enable_direnv }}" != "True" :
4848 out += " && . .venv/bin/activate"
4949 if "{{ cookiecutter.enable_aws }}" == "True" :
50- out += " && make install "
50+ out += " && make piplock "
5151 print (out )
5252
5353
Original file line number Diff line number Diff line change @@ -15,17 +15,22 @@ init:
1515 direnv allow .
1616 type python
1717
18- # # install: install project dependencies
19- .PHONY : install
20- install :
18+ # # piplock: installs dependencies in requirements.txt and generates piplock.txt
19+ .PHONY : piplock
20+ piplock :
2121 python -m pip install --upgrade pip
2222 pip install -r requirements.txt
2323 pip freeze > piplock.txt
2424
25+ # # install: install project dependencies from piplock.txt
26+ .PHONY : install
27+ install :
28+ python -m pip install --upgrade pip
29+ pip install -r piplock.txt
30+
2531# # start: run local project
2632.PHONY : start
2733start :
2834 clear
2935 @echo " "
3036 python -u main.py
31-
You can’t perform that action at this time.
0 commit comments