forked from bitshares/uptick
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (30 loc) · 1004 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
39
40
41
42
43
.PHONY: clean-pyc clean-build docs
TAG := $(shell git describe master --abbrev=0)
TAGSTEEM := $(shell git describe master --abbrev=0 | tr "." "-")
#
clean: clean-build clean-pyc
clean-build:
rm -fr build/ dist/ *.egg-info .eggs/ .tox/ __pycache__/ .cache/ .coverage htmlcov src
clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
lint:
flake8 uptick/
build:
python3 setup.py build
install: build
python3 setup.py install
install-user: build
python3 setup.py install --user
git:
git push --all
git push --tags
check:
python3 setup.py check
dist:
python3 setup.py sdist upload -r pypi
python3 setup.py bdist_wheel upload
release: clean check dist steem-changelog git
steem-changelog:
git show -s --pretty=format: $(TAG) | tail -n +4 | piston post --file "-" --author chainsquad --permlink "uptick-changelog-$(TAGSTEEM)" --category uptick --title "[Changelog] Uptick $(TAG)" --tags uptick bitshares changelog