-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (31 loc) · 1.08 KB
/
Makefile
File metadata and controls
39 lines (31 loc) · 1.08 KB
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
all:
# Install all dependencies
# Install all optional dependency groups (dev, gis, etc)
uv sync
gis:
# Install GIS dependencies
#uv pip install "GDAL==$(shell gdal-config --version)"
uv pip install "GDAL==3.12.0.post1"
uv sync --group gis
install:
ln -sf $(shell pwd)/bin/macrostrat /usr/local/bin/macrostrat
format:
uv run black .
uv 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
uv run macrostrat test all --skip-env -x -s
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.
uv run macrostrat test all --skip-env -x -s -m "not requires_gdal"
test-warnings:
uv run pytest cli/tests -W error
reset:
# Remove all virtual environments in subdirectories and re-create the main one
find . -name ".venv" -type d -exec rm -rf {} +
make all
v3-local:
docker build -t macrostrat-api-v3 -f services/api-v3/Dockerlocal .
docker run --rm -p 8080:80 --env-file services/api-v3/.env macrostrat-api-v3