forked from baking-bad/pytezos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
65 lines (48 loc) · 1.72 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
62
63
64
65
.ONESHELL:
.PHONY: docs
.DEFAULT_GOAL: all
all: install lint test cover
debug:
pip install . --force --no-deps
update:
wget https://gitlab.com/tzip/tzip/-/raw/master/proposals/tzip-16/metadata-schema.json -O pytezos/contract/metadata-schema.json
wget https://gitlab.com/tzip/tzip/-/raw/master/proposals/tzip-16/examples/example-000.json -O tests/metadata/example-000.json
wget https://gitlab.com/tzip/tzip/-/raw/master/proposals/tzip-16/examples/example-001.json -O tests/metadata/example-001.json
wget https://gitlab.com/tzip/tzip/-/raw/master/proposals/tzip-16/examples/example-002.json -O tests/metadata/example-002.json
wget https://gitlab.com/tzip/tzip/-/raw/master/proposals/tzip-16/examples/example-003.json -O tests/metadata/example-003.json
wget https://gitlab.com/tzip/tzip/-/raw/master/proposals/tzip-16/examples/example-004.json -O tests/metadata/example-004.json
wget https://gitlab.com/tzip/tzip/-/raw/master/proposals/tzip-16/examples/example-005.json -O tests/metadata/example-005.json
install:
git submodule update --init
poetry install --remove-untracked
notebook:
PYTHONPATH="$$PYTHONPATH:src" poetry run jupyter notebook
isort:
poetry run isort src
pylint:
poetry run pylint src || poetry run pylint-exit $$?
mypy:
poetry run mypy src
lint: isort pylint mypy
test:
PYTHONPATH="$$PYTHONPATH:src" poetry run pytest --cov-report=term-missing --cov=pytezos --cov-report=xml -v .
cover:
poetry run diff-cover coverage.xml
build:
poetry build
docs:
cd docs && rm -rf ./build && $(MAKE) html
rpc-docs:
python -m scripts.fetch_docs
release-patch:
bumpversion patch
git push --tags
git push
release-minor:
bumpversion minor
git push --tags
git push
release-major:
bumpversion major
git push --tags
git push