forked from osm-search/Nominatim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (27 loc) · 801 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
all:
# Building of wheels
build: clean-build build-db build-api
clean-build:
rm -f dist/*
build-db:
python3 -m build packaging/nominatim-db --outdir dist/
build-api:
python3 -m build packaging/nominatim-api --outdir dist/
# Tests
tests: mypy lint pytest bdd
mypy:
mypy --strict --python-version 3.8 src
pytest:
pytest test/python
lint:
flake8 src
bdd:
cd test/bdd; behave -DREMOVE_TEMPLATE=1
# Documentation
doc:
mkdocs build
serve-doc:
mkdocs serve
manpage:
argparse-manpage --pyfile man/create-manpage.py --function get_parser --project-name Nominatim --url https://nominatim.org > man/nominatim.1 --author 'the Nominatim developer community' --author-email [email protected]
.PHONY: tests mypy pytest lint bdd build clean-build build-db build-api doc serve-doc manpage