2018-11-04 04:01:10 -05:00
|
|
|
build:
|
2019-02-26 18:20:56 -03:00
|
|
|
rm proto2/* proto3/* -rf
|
2019-02-27 20:00:35 -03:00
|
|
|
cd proto2 && protoc --python_out=. -I ../../../../types/v1/proto/ ../../../../types/v1/proto/*.proto
|
2019-02-26 18:20:56 -03:00
|
|
|
sed -e 's/^import\ \(.*\)_pb2\ /from . import\ \1_pb2\ /g' -i proto2/*.py
|
|
|
|
touch proto2/__init__.py
|
2019-02-27 20:00:35 -03:00
|
|
|
cd proto3 && protoc --python_out=. -I ../../../../types/v2/proto/ ../../../../types/v2/proto/*.proto
|
2019-02-26 18:20:56 -03:00
|
|
|
sed -e 's/^import\ \(.*\)_pb2\ /from . import\ \1_pb2\ /g' -i proto3/*.py
|
|
|
|
touch proto3/__init__.py
|
2018-11-05 20:53:56 -03:00
|
|
|
|