File: Makefile

package info (click to toggle)
python-mpd 3.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 524 kB
  • sloc: python: 2,913; makefile: 182; sh: 10
file content (15 lines) | stat: -rw-r--r-- 482 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
PYTHON ?= python3.8
REMOTE = git@github.com:Mic92/python-mpd2
VERSION = $(shell $(PYTHON) -c "import mpd; print('.'.join(map(str,mpd.VERSION)))")

test:
	$(PYTHON) setup.py test
release: test
	git tag "v$(VERSION)"
	git push --tags git@github.com:Mic92/python-mpd2 master
	$(PYTHON) setup.py sdist bdist_wheel
	$(PYTHON) -m twine upload dist/python-mpd2-$(VERSION).tar.gz dist/python_mpd2-$(VERSION)-py2.py3-none-any.whl
clean:
	$(PYTHON) setup.py clean

.PHONY: test release clean