Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate Python bindings #8

Merged
merged 2 commits into from
Dec 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ export GO111MODULE=on

.PHONY: build

ONOS_BUILD_VERSION := v0.6.6
ONOS_PROTOC_VERSION := v0.6.6
ONOS_BUILD_VERSION := v0.6.7
ONOS_PROTOC_VERSION := v0.6.7
BUF_VERSION := 0.27.1

all: protos
Expand Down
33 changes: 15 additions & 18 deletions build/bin/compile-protos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,18 @@ protoc --proto_path=$proto_path \
proto/onos/topo/*.proto

### Python Protobuf code generation
#protoc --proto_path=$proto_path \
# --python_betterproto_out=./python/onos/e2sub \
# proto/onos/e2sub/endpoint/*.proto
#protoc --proto_path=$proto_path \
# --python_betterproto_out=./python/onos/e2sub \
# proto/onos/e2sub/subscription/*.proto
#protoc --proto_path=$proto_path \
# --python_betterproto_out=./python/onos/e2sub \
# proto/onos/e2sub/task/*.proto
#protoc --proto_path=$proto_path \
# --python_betterproto_out=./python/onos/e2t \
# proto/onos/e2t/admin/*.proto
#protoc --proto_path=$proto_path \
# --python_betterproto_out=./python/onos/e2t \
# proto/onos/e2t/e2/*.proto
#protoc --proto_path=$proto_path \
# --python_betterproto_out=./python/onos/topo \
# proto/onos/topo/*.proto
protoc --proto_path=$proto_path \
--python_betterproto_out=./python \
proto/onos/e2sub/endpoint/endpoint.proto \
proto/onos/e2sub/subscription/subscription.proto \
proto/onos/e2sub/task/task.proto \
proto/onos/e2t/admin/admin.proto \
proto/onos/e2t/e2/e2.proto \
proto/onos/topo/topo.proto

mv ./python/onos/e2sub/endpoint/__init__.py ./python/onos/e2sub/endpoint.py && rm -r ./python/onos/e2sub/endpoint
mv ./python/onos/e2sub/subscription/__init__.py ./python/onos/e2sub/subscription.py && rm -r ./python/onos/e2sub/subscription
mv ./python/onos/e2sub/task/__init__.py ./python/onos/e2sub/task.py && rm -r ./python/onos/e2sub/task
mv ./python/onos/e2t/admin/__init__.py ./python/onos/e2t/admin.py && rm -r ./python/onos/e2t/admin
mv ./python/onos/e2t/e2/__init__.py ./python/onos/e2t/e2.py && rm -r ./python/onos/e2t/e2
mv ./python/onos/topo/__init__.py ./python/onos/topo/topo.py && touch ./python/onos/topo/__init__.py
Empty file added python/__init__.py
Empty file.
6 changes: 6 additions & 0 deletions python/gogoproto/__init__.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file added python/onos/__init__.py
Empty file.
Empty file added python/onos/e2sub/__init__.py
Empty file.
244 changes: 244 additions & 0 deletions python/onos/e2sub/endpoint.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading