Skip to content

Commit

Permalink
tag in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
rpuntaie committed Apr 3, 2024
1 parent 3e815e2 commit de0dc82
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,33 @@
.PHONY: man test up check dist

.PHONY: test
test:
pytest

.PHONY: man
man:
pip install --user -e . &>/dev/null || true
stpl README.rst.stpl README.rst
pandoc README.rst -s -t man -o syncstart.1

.PHONY: check
check:
restview --long-description --strict

.PHONY: dist
dist: man
sudo python -m build .

.PHONY: up
up:
twine upload dist/`ls dist -rt | tail -1` -u__token__ -p`pass show pypi.org/syncstart_api_token`

.PHONY: tag
tag: dist
$(eval TAGMSG="v$(shell python ./syncstart.py --version | cut -d ' ' -f 2)")
echo $(TAGMSG)
git tag -s $(TAGMSG) -m"$(TAGMSG)"
git verify-tag $(TAGMSG)
git push origin $(TAGMSG) --follow-tags


0 comments on commit de0dc82

Please sign in to comment.