forked from crflynn/pbspark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (29 loc) · 798 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
export PROTO_PATH=.
fmt:
poetry run isort .
poetry run black .
poetry run mypy . --show-error-codes
gen:
poetry run protoc -I $$PROTO_PATH --python_out=$$PROTO_PATH --mypy_out=$$PROTO_PATH --proto_path=$$PROTO_PATH $$PROTO_PATH/example/*.proto
poetry run isort ./example
poetry run black ./example
test:
poetry run pytest tests/
clean:
rm -rf dist
.PHONY: dist
dist:
poetry build
sdist:
poetry build -f sdist
publish: clean dist
poetry publish
release: clean sdist
ghr -u crflynn -r pbspark -c $(shell git rev-parse HEAD) -delete -b "release" -n $(shell poetry version -s) $(shell poetry version -s) dist/*.tar.gz
setup:
asdf plugin add python || true
asdf plugin add poetry || true
asdf plugin add protoc || true
asdf plugin add java || true
asdf install
poetry install