forked from StellarCN/py-stellar-base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
54 lines (43 loc) · 1.06 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
# default target does nothing
.DEFAULT_GOAL: default
default: ;
install:
pip install .
.PHONY: install
install-dev:
poetry install
.PHONY: install-dev
test:
poetry run pytest -v -s -rs tests --cov --cov-report=html
.PHONY: test
full-test:
poetry run pytest -v -s -rs tests --runslow --cov --cov-report=html
.PHONY: full-test
codecov:
codecov
.PHONY: codecov
package:
poetry build
.PHONY: package
pypi:
twine upload dist/*
.PHONY: pypi
clean:
find . -name \*.pyc -delete
rm -rf coverage.xml .coverage dist htmlcov stellar_sdk.egg-info tests/.mypy_cache tests/.pytest_cache docs/en/_build docs/zh_CN/_build
.PHONY: clean
download-xdr:
python .xdr/update_xdr.py
.PHONY: download-xdr
gen-xdr:
rm -rf stellar_sdk/xdr/*
xdrgen -o stellar_sdk/xdr -l python -n stellar .xdr/*.x
autoflake --in-place --ignore-init-module-imports --remove-all-unused-imports stellar_sdk/xdr/*.py
isort stellar_sdk/xdr/
black stellar_sdk/xdr/
.PHONY: gen-xdr
format:
autoflake --in-place --ignore-init-module-imports --remove-all-unused-imports .
isort .
black .
.PHONY: format