.PHONY: all install build publish clean

all: install build

install:
	pip install -r requirements.txt

build: clean
	python setup.py sdist bdist_wheel

publish: build
	twine upload dist/*

clean:
	rm -rf build/ dist/ *.egg-info/ .mypy_cache/
	find . -type d -name "__pycache__" -exec rm -rf {} +
	find . -type f -name "*.pyc" -delete