Skip to content

Commit

Permalink
Add Makefile for maintenance tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
0-wiz-0 committed Dec 17, 2024
1 parent 5e7807f commit 906e811
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Makefile.maintainer
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Convenience Makefile for making releases

VERSION!= sed -En 's,^version = "(.*)",\1,p' pyproject.toml

.PHONY: bump dist upload

bump:
@echo "have you regenerated the man pages?"
@echo python -m bumpver update -m

dist:
python -m build
rm -rf nihtest.egg-info

upload:
python -m twine upload dist/nihtest-${VERSION}-py3-none-any.whl dist/nihtest-${VERSION}.tar.gz

0 comments on commit 906e811

Please sign in to comment.