-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (27 loc) · 888 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
.PHONY: all ensure-poetry install version generate-sample-data
POETRY_INSTALLED := $(shell command -v poetry)
all: version
ensure-poetry:
ifndef POETRY_INSTALLED
ifndef VIRTUAL_ENV
$(error You should be in a virtual environment before running Make commands.)
endif
@echo "Installing the Poetry package manager and dev requirements."
python -m pip install --upgrade pip
python -m pip install --upgrade poetry
endif
install: ensure-poetry
@echo "Checking the package and dev requirements are installed."
poetry install
version: install
poetry run wingline --version
test: install
poetry run nox
check-version: install
poetry run invoke check-version
tag-release: install
poetry run invoke tag-release
bump-version: install
poetry version patch | tail -n 1 | sed 's/^Bumping/Bump/'
generate-sample-data:
./tools/sample-data-generator/generate-sample-data.sh