-
Notifications
You must be signed in to change notification settings - Fork 60
/
Makefile
61 lines (49 loc) · 1.04 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
.PHONY: clean
clean: clean-build clean-pyc
.PHONY: clean-build
clean-build:
rm -rf build/
rm -rf dist/
rm -rf *.egg-info
rm -rf __pycache__/ .eggs/ .cache/
rm -rf .tox/ .pytest_cache/ .benchmarks/
.PHONY: clean-pyc
clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
.PHONY: lint
lint:
flake8 grapheneapi/ graphenebase/
.PHONY: test
test:
python3 setup.py test
.PHONY: tox
tox:
tox
.PHONY: build
build:
python3 setup.py build
.PHONY: install
install: build
python3 setup.py install
.PHONY: install-user
install-user: build
python3 setup.py install --user
.PHONY: git
git:
git push --all
git push --tags
.PHONY: check
check:
python3 setup.py check
.PHONY: docs
docs:
sphinx-apidoc -d 6 -e -f -o docs . *.py tests
make -C docs clean html
.PHONY: release
release:
git diff-index --quiet HEAD || { echo "untracked files! Aborting"; exit 1; }
git checkout develop
git checkout -b release/$(shell date +'%Y%m%d')
git push origin release/$(shell date +'%Y%m%d')