.PHONY:	setup push pypi patch minor major
export PYTHONPATH := $(shell pwd)/tests:$(shell pwd):$(PYTHONPATH)
export PROJECT_NAME := $$(basename $$(pwd))
export PROJECT_VERSION := $(shell cat VERSION)

setup:
		uv sync
commit:
		git commit -am "Version $(shell cat VERSION)"
		git push
patch:
		bumpversion --allow-dirty patch
minor:
		bumpversion --allow-dirty minor
major:
		bumpversion --allow-dirty major
pypi:
		uv build
		uv publish
build:
		uv build
publish:
		rm -rf dist/
		hatch build
		hatch publish
test:
		uv run pytest
