-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmakefile
62 lines (49 loc) · 1.13 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
POETRY_VERSION := 1.8.5
CLI_NAME := "oss4climate.cli"
.PHONY: install
install:
pip install pipx
pipx ensurepath
pipx install poetry==$(POETRY_VERSION) || echo "Poetry already installed"
poetry config virtualenvs.create true
poetry install --no-cache
.PHONY: install_dev
install_dev:
pip install --upgrade pip
pip install pipx
pipx ensurepath
pipx install poetry==$(POETRY_VERSION) || echo "Poetry already installed"
poetry config virtualenvs.create true
poetry install --all-extras --no-cache
# pre-commit install
.PHONY: add
add:
typer $(CLI_NAME) run add
.PHONY: build
build:
poetry lock
.PHONY: discover
discover:
typer $(CLI_NAME) run discover
.PHONY: generate_listing
generate_listing:
# Note: typer processes "_" as "-"
typer $(CLI_NAME) run generate-listing
.PHONY: publish
publish:
typer $(CLI_NAME) run publish
.PHONY: search
search:
typer $(CLI_NAME) run search
.PHONY: download_data
download_data:
typer $(CLI_NAME) run download-data
.PHONY: run_app
run_app:
gunicorn -k uvicorn.workers.UvicornWorker -b 0.0.0.0:8080 app:app
.PHONY: help
help:
typer $(CLI_NAME) run --help
.PHONY: test
test:
pytest src/.