-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (30 loc) · 1.3 KB
/
Makefile
File metadata and controls
41 lines (30 loc) · 1.3 KB
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
.PHONY: test docker protogen
# Requires LOCUST_TESTCASES_DIR environment variable to be set.
test:
./test.sh
# Run with LOCUST_DOCKER_PUSH=true to push images to Docker Hub.
docker:
docker/build.sh $(ARGS)
protogen: locust/git_pb2.py locust/parse_pb2.py locust/git_pb2.pyi locust/parse_pb2.pyi locust/render_pb2.py locust/render_pb2.pyi
locust/git_pb2.py:
protoc -Iprotobuf/ --python_out=locust/ protobuf/git.proto
locust/git_pb2.pyi:
protoc -Iprotobuf/ --mypy_out=locust/ protobuf/git.proto
locust/parse_pb2.py:
protoc -Iprotobuf/ --python_out=locust/ protobuf/parse.proto
sed -i -e 's/import git_pb2/from \. import git_pb2/g' locust/parse_pb2.py
locust/parse_pb2.pyi:
protoc -Iprotobuf/ --mypy_out=locust/ protobuf/parse.proto
sed -i -e 's/from git_pb2 import /from \.git_pb2 import/g' locust/parse_pb2.pyi
locust/render_pb2.py:
protoc -Iprotobuf/ --python_out=locust/ protobuf/render.proto
sed -i -e 's/import parse_pb2/from \. import parse_pb2/g' locust/render_pb2.py
locust/render_pb2.pyi:
protoc -Iprotobuf/ --mypy_out=locust/ protobuf/render.proto
sed -i -e 's/from parse_pb2 import /from \.parse_pb2 import/g' locust/render_pb2.pyi
build dist bugout_locust.egg-info:
python setup.py sdist bdist_wheel
clean:
rm -f locust/*_pb2.py
rm -f locust/*_pb2.pyi
rm -rf dist/ build/ bugout_locust.egg-info/