diff --git a/Makefile b/Makefile index dd8d819..0de5a42 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,11 @@ build: poetry run python build.py clean poetry run python build.py build_ext --inplace --force +.PHONY: clean +clean: + rm -rf build + rm -rf dist + .PHONY: copy copy: poetry run python buildpre.py @@ -31,6 +36,14 @@ fmt: poetry run isort -y poetry run black . +.PHONY: publish +publish: clean sdist + poetry publish + +.PHONY: release +release: clean sdist + ghr -u crflynn -r skranger -c $(shell git rev-parse HEAD) -delete -b "release" -n $(shell poetry version | tail -c +10) $(shell poetry version | tail -c +10) dist/*.tar.gz + .PHONY: sdist sdist: copy poetry build -f sdist