moved proto2/proto3 to types/v1 and types/v2 respectively
This commit is contained in:
parent
25cc7ba284
commit
326b62dc57
11 changed files with 5 additions and 8 deletions
|
@ -1,9 +1,6 @@
|
|||
build:
|
||||
rm proto2/* proto3/* -rf
|
||||
cd proto2 && protoc --python_out=. -I ../../../../types/v1/proto/ ../../../../types/v1/proto/*.proto
|
||||
sed -e 's/^import\ \(.*\)_pb2\ /from . import\ \1_pb2\ /g' -i proto2/*.py
|
||||
touch proto2/__init__.py
|
||||
cd proto3 && protoc --python_out=. -I ../../../../types/v2/proto/ ../../../../types/v2/proto/*.proto
|
||||
sed -e 's/^import\ \(.*\)_pb2\ /from . import\ \1_pb2\ /g' -i proto3/*.py
|
||||
touch proto3/__init__.py
|
||||
|
||||
rm types/v1/* types/v2/* -rf
|
||||
touch types/v1/__init__.py types/v2/__init__.py
|
||||
cd types/v1/ && protoc --python_out=. -I ../../../../../types/v1/proto/ ../../../../../types/v1/proto/*.proto
|
||||
sed -e 's/^import\ \(.*\)_pb2\ /from . import\ \1_pb2\ /g' -i types/v1/*.py
|
||||
cd types/v2/ && protoc --python_out=. -I ../../../../../types/v2/proto/ ../../../../../types/v2/proto/*.proto
|
||||
|
|
Loading…
Add table
Reference in a new issue