forked from sibson/redbeat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
36 lines (26 loc) · 778 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
.PHONY: upload release release-test release-tag upload
VERSION_FILE?=setup.py
version:
python setup.py --version
version-%: OLDVERSION:=$(shell python setup.py --version)
version-%: NEWVERSION=$(subst -,.,$*)
version-%:
sed -i -e s/$(OLDVERSION)/$(NEWVERSION)/ $(VERSION_FILE)
git ci setup.py -m"bump version to $*"
release: release-check release-tag upload
release-check:
git pull
tox
release-tag: VERSION:=$(shell python setup.py --version)
release-tag:
git tag -a v$(VERSION) -m"release version $(VERSION)"
git push --tags
upload: VERSION:=$(shell python setup.py --version)
upload:
python setup.py sdist
twine upload $(wildcard dist/celery-*$(VERSION)*)
docs:
$(MAKE) -C docs/ html
clean:
rm -f dist/*
rm -rf docs/_build docs/_static docs/_templates