-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (42 loc) · 960 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
44
45
46
47
48
49
50
51
52
SHELL := /bin/bash
.PHONY: help build-docs deploy-docs build format install lint test release venv
help:
@grep '^\.PHONY' Makefile | cut -d' ' -f2- | tr ' ' '\n'
venv:
python3 -m venv .venv
build-docs:
source .venv/bin/activate && \
cd docs && make clean html
deploy-docs:
source .venv/bin/activate && \
make build-docs && \
ghp-import -n -p docs/build/html/
format:
source .venv/bin/activate && \
isort . && \
black .
install:
python3 -m venv .venv
source .venv/bin/activate && \
pip install -e .[dev]
lint:
source .venv/bin/activate && \
isort -c --diff . && \
black --check . && \
flake8 .
test:
source .venv/bin/activate && \
coverage run --source=geometry_to_spatialite ./run_tests.py && \
coverage report && \
coverage xml
build:
source .venv/bin/activate && \
flit build
release:
# usage: `make release version=0.0.0`
make test
@echo ""
make lint
@echo ""
source .venv/bin/activate && \
./release.sh "$(version)"