-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (33 loc) · 1.09 KB
/
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
42
43
SHELL = /bin/bash
.DEFAULT_GOAL = install
PY = ./.venv/bin/python -m
PY_SNOWBIRD = ./infrastructure/.snowbird-venv/bin/python -m
src = .
isort = $(PY) isort $(src)
black = $(PY) black $(src)
.PHONY: install ## install requirements in virtual env
install: _install_airflow _install_snowbird
_install_airflow:
rm -rf .venv
python3.10 -m venv .venv && \
${PY} pip install --upgrade pip && \
${PY} pip install -r docker/airflow/requirements.txt \
black \
isort \
kubernetes \
--constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.7.3/constraints-3.10.txt"
_install_snowbird:
rm -rf infrastructure/.snowbird-venv
python3.10 -m venv infrastructure/.snowbird-venv && \
${PY_SNOWBIRD} pip install --upgrade pip && \
${PY_SNOWBIRD} pip install snowbird@git+https://github.com/navikt/[email protected]
.PHONY: format ## Auto-format the source code (isort, black)
format:
$(isort)
$(black)
.PHONY: deploy
deploy:
./.scripts/deploy.sh
.PHONY: development_branch ## Create a new branch for development and push it to the remote
development_branch:
./.scripts/start-dev.sh