-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
45 lines (35 loc) · 1.02 KB
/
makefile
File metadata and controls
45 lines (35 loc) · 1.02 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
40
41
42
43
44
45
ENV ?= test
export ENV
NAMESPACE := dynamicalsystem
PACKAGE_NAME := gazette
DOCKER_IMAGE := ${NAMESPACE}/$(PACKAGE_NAME)
HOST_FOLDER := ${HOME}/.local/share
VERSION := $(shell grep -m 1 version pyproject.toml | grep -e '\d.\d.\d' -o)
TARBALL := ${NAMESPACE}_${VERSION}.tar.gz
.PHONY:
container, publish, sync, test
all: sync test image
build:
uv build --wheel --package dynamicalsystem.gazette
check: build
uvx twine check dist/*
publish: check
uvx twine upload dist/*
containers: image
export HOST_FOLDER=${HOST_FOLDER} && \
export SUBFOLDER=${NAMESPACE} && \
export ENV=${ENV} && \
echo $$HOST_FOLDER $$ENV && \
docker compose -f docker-compose.yml up -d
export HOST_FOLDER=${HOST_FOLDER} && \
export SUBFOLDER=${NAMESPACE} && \
export ENV=${ENV} && \
echo $$HOST_FOLDER $$ENV && \
docker compose -f docker-compose.yml create gazette
image: publish
docker build . \
--tag $(DOCKER_IMAGE) \
--build-arg NAMESPACE=${NAMESPACE} \
--build-arg SCRIPT=${PACKAGE_NAME}
test:
uv run pytest --pyargs dynamicalsystem.pytests