-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathMakefile
51 lines (42 loc) · 1.53 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
# Origin
version_branch = v0.34.24
tendermint = https://raw.githubusercontent.com/tendermint/tendermint/$(version_branch)
# Outputs
tmabci = protos/tendermint/abci/types.proto
tmtypes = protos/tendermint/types/types.proto
tmpubkey = protos/tendermint/crypto/keys.proto
tmproof = protos/tendermint/crypto/proof.proto
tmparams = protos/tendermint/types/params.proto
tmversions = protos/tendermint/version/types.proto
tmvalidator = protos/tendermint/types/validator.proto
# Only run this to rebuild/update protobufs from the tendermint source
update-proto:
curl $(tendermint)/proto/tendermint/abci/types.proto > $(tmabci)
curl $(tendermint)/proto/tendermint/crypto/keys.proto > $(tmpubkey)
curl $(tendermint)/proto/tendermint/crypto/proof.proto > $(tmproof)
curl $(tendermint)/proto/tendermint/types/params.proto > $(tmparams)
curl $(tendermint)/proto/tendermint/types/types.proto > $(tmtypes)
curl $(tendermint)/proto/tendermint/types/validator.proto > $(tmvalidator)
curl $(tendermint)/proto/tendermint/version/types.proto > $(tmversions)
curl $(tendermint)/version/version.go | grep -F -eTMVersionDefault -eABCISemVer > tm_version.txt
@python build_proto.py
test_tm:
@rm -Rf .test_pyabci
@tendermint --home .test_pyabci init
@tendermint --home .test_pyabci node
test:
pytest .
dev:
pip install --editable '.[dev]'
clean:
@rm -Rf dist/
# PyPi package deploy:
# 1. build-dist
# 2. test-pypi
# 3. update-pypi
build-dist:
python -m build
publish-test:
twine upload dist/* --repository testpypi
publish:
twine upload dist/* --repository pypi