python-trio / purerpc

Native, async Python gRPC client and server implementation supporting asyncio, uvloop, and trio
Apache License 2.0
217 stars 15 forks source link

protoc_plugin: replace hyphen to underscore #20

Closed ledmonster closed 4 years ago

ledmonster commented 5 years ago

Replace hyphens in the path to underscores.

The official document says:

Note that if the .proto file or its path contains any characters which cannot be used in Python module names (for example, hyphens), they will be replaced with underscores. So, the file foo-bar.proto becomes the Python file foo_bar_pb2.py.

https://developers.google.com/protocol-buffers/docs/reference/python-generated

standy66 commented 4 years ago

I presume you already fixed this in #21, so I am closing this.