forked from sibson/vncdotool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
38 lines (29 loc) · 887 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
.PHONY: upload release release-test release-tag upload docs
.DEFAULT: help
help:
@echo "test: run tests"
@echo "docs: build documentation"
@echo ""
@echo "version: show current version"
@echo "version-M.m.p: update version to M.m.p"
@echo "release: upload a release to pypi"
version:
python setup.py --version
version-%: OLDVERSION:=$(shell python setup.py --version)
version-%: NEWVERSION=$(subst -,.,$*)
version-%:
sed -i -e s/$(OLDVERSION)/$(NEWVERSION)/ vncdotool/__init__.py
git ci setup.py -m"bump version to $*"
release: release-test release-tag upload
release-test: test
release-tag: VERSION:=$(shell python setup.py --version)
release-tag:
git tag -a v$(VERSION) -m"release version $(VERSION)"
git push --tags
upload:
python setup.py sdist
twine upload dist/$(shell python setup.py --fullname).*
docs:
$(MAKE) -C docs/ html
test:
nosetests tests/unit