.PHONY: install test build dist sdist wheel upload upload-test test-release bump clean

install:
	pip install -e .

install-dev:
	pip install -e ".[dev,controller,daemon,telegram]"

test:
	pytest -v

build: clean
	python -m build

wheel:
	python -m build --wheel

sdist:
	python -m build --sdist

upload: build
	twine upload dist/*

upload-test: build
	twine upload --repository testpypi dist/*

test-release: bump clean build
	twine upload --repository testpypi dist/*

bump:
	python bump.py

clean:
	rm -rf build/ dist/ *.egg-info hermes_navigator.egg-info __pycache__ .pytest_cache .hatch
	find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
	find . -type f -name "*.pyc" -delete
