Skip to content

Commit

Permalink
Add Makefile with packaging and publishing helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l committed Apr 1, 2023
1 parent 385fa42 commit cbaf166
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Makefile
@@ -0,0 +1,20 @@
.PHONY: package-deps package-build package-check package-upload package clean

package-deps:
python3 -m pip install --upgrade build

package-build: package-deps
python3 -m build

package-check: package-build ## Check the distribution is valid
python3 -m twine check dist/*

package-upload: package-deps package-check
python3 -m twine upload dist/* --repository-url https://upload.pypi.org/legacy/

package: package-upload

clean:
rm -rf brunnhilde.egg-info/
rm -rf build/
rm -rf dist/

0 comments on commit cbaf166

Please sign in to comment.