File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
branchOrTag=" ${1:- main} "
4
4
dir=" tools"
5
+ out=" weaviate/proto"
5
6
mkdir -p ${dir}
6
7
curl -LkSs https://api.github.com/repos/weaviate/weaviate/tarball/${branchOrTag} -o ${dir} /weaviate.tar.gz
7
8
tar --strip-components=3 -C ${dir} -xvf ${dir} /weaviate.tar.gz $( tar -tf ${dir} /weaviate.tar.gz | grep ' ^weaviate-weaviate-[^/]\+/grpc/proto/v1' )
8
9
9
- python3 -m grpc_tools.protoc -I ${dir} --python_out=./ --pyi_out=./ --grpc_python_out=./ ${dir} /weaviate/proto /v1/* .proto
10
+ python3 -m grpc_tools.protoc -I ${dir} --python_out=" ./ ${out} " --pyi_out=" ./ ${out} " --grpc_python_out=" ./ ${out} " ${dir} /v1/* .proto
10
11
11
12
rm ${dir} /weaviate.tar.gz
12
13
13
- sed -i ' ' ' s/from v1/from weaviate.proto.v1/g' v1/* .py
14
- sed -i ' ' ' s/from v1/from weaviate.proto.v1/g' v1/* .pyi
14
+ sed -i ' ' ' s/from v1/from weaviate.proto.v1/g' ${out} / v1/* .py
15
+ sed -i ' ' ' s/from v1/from weaviate.proto.v1/g' ${out} / v1/* .pyi
15
16
16
17
rm -rf ${dir} /v1
17
18
You can’t perform that action at this time.
0 commit comments