-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
43 lines (36 loc) · 854 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
42
43
venv:
python3 -m venv venv
./venv/bin/python3 -m pip install --upgrade pip
.PHONY: setup
setup: venv
./venv/bin/pip3 install -r requirements.in
.PHONY: setup-dev
setup-dev: venv setup
./venv/bin/pip3 install -r requirements-test.txt
./venv/bin/playwright install
.PHONY: run-app
run-app:
H2O_WAVE_NO_LOG=True ./venv/bin/wave run src.app
.PHONY: format
format: setup-dev
./venv/bin/isort src/*
./venv/bin/black src/*
libraries:
mkdir libraries
.PHONY: fat-bundle
fat-bundle: libraries
./venv/bin/pip-compile \
--quiet \
--generate-hashes \
--output-file=requirements.txt \
requirements.in
./venv/bin/pip download \
-r requirements.txt \
--platform manylinux1_x86_64 \
--python-version 39 \
--no-deps \
-d libraries
ls libraries | sed 's/^/.\/libraries\//' > requirements.txt
.PHONY: clean
clean:
rm -rf venv libraries