From abd04a5564fd038181fa6bc5e7afefdc63a06122 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Mon, 29 Sep 2025 15:21:57 +0200 Subject: [PATCH] fix release task --- Makefile | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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