2024-06-06 19:08:56 +03:00
|
|
|
all:
|
|
|
|
|
|
|
|
# Building of wheels
|
|
|
|
|
2024-06-27 22:26:12 +03:00
|
|
|
build: clean-build build-db build-api
|
2024-06-06 19:08:56 +03:00
|
|
|
|
2024-06-27 22:26:12 +03:00
|
|
|
clean-build:
|
|
|
|
rm -f dist/*
|
2024-06-06 19:08:56 +03:00
|
|
|
|
|
|
|
build-db:
|
2024-06-24 21:07:02 +03:00
|
|
|
python3 -m build packaging/nominatim-db --outdir dist/
|
2024-06-06 19:08:56 +03:00
|
|
|
|
|
|
|
build-api:
|
2024-06-24 21:07:02 +03:00
|
|
|
python3 -m build packaging/nominatim-api --outdir dist/
|
2024-06-06 19:08:56 +03:00
|
|
|
|
|
|
|
# Tests
|
|
|
|
|
2024-06-25 12:42:30 +03:00
|
|
|
tests: mypy lint pytest bdd
|
2024-06-06 19:08:56 +03:00
|
|
|
|
|
|
|
mypy:
|
2024-06-09 16:14:19 +03:00
|
|
|
mypy --strict src
|
2024-06-06 19:08:56 +03:00
|
|
|
|
|
|
|
pytest:
|
2024-06-09 16:14:19 +03:00
|
|
|
pytest test/python
|
2024-06-06 19:08:56 +03:00
|
|
|
|
|
|
|
lint:
|
2024-06-09 16:14:19 +03:00
|
|
|
pylint src
|
2024-06-06 19:08:56 +03:00
|
|
|
|
|
|
|
bdd:
|
|
|
|
cd test/bdd; behave -DREMOVE_TEMPLATE=1
|
|
|
|
|
2024-08-07 17:28:44 +03:00
|
|
|
# Documentation
|
|
|
|
|
|
|
|
doc:
|
|
|
|
mkdocs build
|
|
|
|
|
|
|
|
serve-doc:
|
|
|
|
mkdocs serve
|
|
|
|
|
2024-08-07 17:38:56 +03:00
|
|
|
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 info@nominatim.org
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: tests mypy pytest lint bdd build clean-build build-db build-api doc serve-doc manpage
|