Skip to content

Commit ae4f8ef

Browse files
committed
fix release task
1 parent c5176e0 commit ae4f8ef

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

Makefile

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,14 @@ PYTHON ?= python3.13
22
REMOTE = git@github.com:Mic92/python-mpd2
33
VERSION = $(shell $(PYTHON) -c "import mpd; print('.'.join(map(str,mpd.VERSION)))")
44

5-
test:
6-
tox
7-
release: test
8-
test "$(shell git symbolic-ref --short HEAD)" = "master" || (echo "not on master branch"; exit 1)
9-
git pull --rebase origin master
5+
release:
6+
test "$(shell git symbolic-ref --short HEAD)" = "main" || (echo "not on main branch"; exit 1)
7+
git pull --rebase origin main
108
$(PYTHON) -m build
11-
$(PYTHON) -m twine check dist/python-mpd2-$(VERSION).tar.gz dist/python_mpd2-$(VERSION)-py3-none-any.whl
9+
$(PYTHON) -m twine check dist/python_mpd2-$(VERSION).tar.gz dist/python_mpd2-$(VERSION)-py3-none-any.whl
1210
git tag "v$(VERSION)"
1311
git push --tags git@github.com:Mic92/python-mpd2 "v$(VERSION)"
14-
$(PYTHON) -m twine upload --repository python-mpd2 dist/python-mpd2-$(VERSION).tar.gz dist/python_mpd2-$(VERSION)-py3-none-any.whl
12+
$(PYTHON) -m twine upload --repository python-mpd2 dist/python_mpd2-$(VERSION).tar.gz dist/python_mpd2-$(VERSION)-py3-none-any.whl
1513
clean:
1614
rm -rf dist build *.egg-info
1715

0 commit comments

Comments
 (0)