add packaging for the different subprojects

This commit is contained in:
Sarah Hoffmann
2024-06-06 18:08:56 +02:00
parent 75abf237a6
commit 6511821001
10 changed files with 240 additions and 62 deletions

32
Makefile Normal file
View File

@@ -0,0 +1,32 @@
all:
# Building of wheels
build: build-core build-db build-api
build-core:
cd packaging/nominatim-core; python3 -m build . --outdir ../dist/
build-db:
cd packaging/nominatim-db; python3 -m build . --outdir ../dist/
build-api:
cd packaging/nominatim-api; python3 -m build . --outdir ../dist/
# Tests
tests: mypy lint pytest
mypy:
python3 -m mypy --strict src
pytest:
python3 -m pytest test/python
lint:
python3 -m pylint src
bdd:
cd test/bdd; behave -DREMOVE_TEMPLATE=1
.PHONY: tests mypy pytest lint bdd build build-core build-db build-api