diff --git a/Makefile b/Makefile index e399d24..f7b2817 100644 --- a/Makefile +++ b/Makefile @@ -2,16 +2,14 @@ PYTHON ?= python3.13 REMOTE = git@github.com:Mic92/python-mpd2 VERSION = $(shell $(PYTHON) -c "import mpd; print('.'.join(map(str,mpd.VERSION)))") -test: - tox -release: test - test "$(shell git symbolic-ref --short HEAD)" = "master" || (echo "not on master branch"; exit 1) - git pull --rebase origin master +release: + test "$(shell git symbolic-ref --short HEAD)" = "main" || (echo "not on main branch"; exit 1) + git pull --rebase origin main $(PYTHON) -m build - $(PYTHON) -m twine check dist/python-mpd2-$(VERSION).tar.gz dist/python_mpd2-$(VERSION)-py3-none-any.whl + $(PYTHON) -m twine check dist/python_mpd2-$(VERSION).tar.gz dist/python_mpd2-$(VERSION)-py3-none-any.whl git tag "v$(VERSION)" git push --tags git@github.com:Mic92/python-mpd2 "v$(VERSION)" - $(PYTHON) -m twine upload --repository python-mpd2 dist/python-mpd2-$(VERSION).tar.gz dist/python_mpd2-$(VERSION)-py3-none-any.whl + $(PYTHON) -m twine upload --repository python-mpd2 dist/python_mpd2-$(VERSION).tar.gz dist/python_mpd2-$(VERSION)-py3-none-any.whl clean: rm -rf dist build *.egg-info