-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
33 lines (28 loc) · 1.02 KB
/
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
all:
poetry lock --no-update
poetry install --only=dev
macrostrat poetry run mono install
poetry install
# Install the version of the GDAL bindings that matches the native lib.
# This is breakable and should be replaced with a more robust solution.
#poetry run pip install GDAL==$(shell gdal-config --version | sed 's/\([0-9]*\)\.\([0-9]*\).*/\1.\2/')
install:
ln -sf $(shell pwd)/bin/macrostrat /usr/local/bin/macrostrat
format:
poetry run black .
poetry run isort .
test:
# These tests may fail due to an older GDAL version in use.
# We need to figure out how to bundle GDAL or run in a Docker context
poetry run pytest -s -x --ignore=runtime-tests --ignore=services --ignore=v2-transition .
test-ci:
# We need a fairly recent version of GDAL (3.10) for map integration tests to pass.
# For now, we avoid running these tests in CI.
poetry run pytest -s -x \
--ignore=runtime-tests \
--ignore=services \
--ignore=v2-transition \
-m "not requires_gdal" \
.
test-warnings:
poetry run pytest cli/tests -W error