# `make` is expected to be called from the directory that contains
# this Makefile

TAG ?= latest

rebuild: clean build-dist

build-dist:
	# Build the PyPI package
	uv build

publish:
	# Uploading to pypi.org (workspace builds land in the root dist/)
	twine upload --repository pypi ../dist/vantage6-[0-9]*

test:
	coverage run --source=vantage6 --omit="utest.py" ./utest.py

clean:
	# Cleaning ...
	-rm -r build
	-rm dist/*