]> git.openstreetmap.org Git - nominatim.git/blob - Makefile
move database setup to generic conftest.py
[nominatim.git] / Makefile
1 all:
2
3 # Building of wheels
4
5 build: clean-build build-db build-api
6
7 clean-build:
8         rm -f dist/*
9
10 build-db:
11         python3 -m build packaging/nominatim-db --outdir dist/
12
13 build-api:
14         python3 -m build packaging/nominatim-api --outdir dist/
15
16 # Tests
17
18 tests: mypy lint pytest bdd
19
20 mypy:
21         mypy --strict --python-version 3.8 src
22
23 pytest:
24         pytest test/python
25
26 lint:
27         flake8 src test/python test/bdd
28
29 bdd:
30         pytest test/bdd
31         cd test/bdd; behave -DREMOVE_TEMPLATE=1 db osm2pgsql
32
33 # Documentation
34
35 doc:
36         mkdocs build
37
38 serve-doc:
39         mkdocs serve
40
41 manpage:
42         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
43
44
45 .PHONY: tests mypy pytest lint bdd build clean-build build-db build-api doc serve-doc manpage