-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (32 loc) · 775 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
dev:
$(MAKE) setup-venv
$(MAKE) setup-pipx
$(MAKE) setup-cli
$(MAKE) sync-dev
build:
sam build
deploy:
sam deploy
watch:
sam sync
lock-dev:
$(info "[*] Locking dev dependencies")
pip-compile --generate-hashes -o dev-requirements.txt dev-requirements.in
sync-dev: lock-dev
$(info "[*] Synchronizing virtual environment with locked dev dependencies")
pip install -r dev-requirements.txt -U
upgrade-dev:
$(info "[*] Upgrading all dev dependencies")
pip-compile --upgrade dev-requirements.in
$(MAKE) lock-dev
$(MAKE) sync-dev
setup-venv:
$(info "[*] Setting up a virtual environment")
python3 -m venv .venv
. .venv/bin/activate
setup-cli:
pipx install pip-tools==7.3.0
pipx install aws-sam-cli==1.95.0
setup-pipx:
pip install pipx
pipx ensurepath