-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|