Skip to content

Commit 5f5ce71

Browse files
committed
adds make piplock
1 parent 112cc2a commit 5f5ce71

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

hooks/post_gen_project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

{{cookiecutter.project_slug}}/Makefile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff 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
2733
start:
2834
clear
2935
@echo ""
3036
python -u main.py
31-

0 commit comments

Comments
 (0)