Add a publish command to the Makefile

This commit is contained in:
David Larlet 2023-06-17 09:50:36 -04:00
parent 020f805fbe
commit 44d3e64d56
No known key found for this signature in database
GPG key ID: 3E2953A359E7E7BD

View file

@ -28,14 +28,14 @@ docker: ## Create a new Docker image and publish it
build: test compilemessages ## Build the Python package before release
@hatch build
.PHONY: publish
publish: ## Publish the Python package to Pypi
@hatch publish
make clean
test:
py.test -xv umap/tests/
test_publish:
twine upload -r testpypi dist/*
publish:
twine upload dist/*
make clean
clean:
rm -f dist/*
rm -rf build/*