Re: [protobuf] Generating Code With Parent Directory Imports?

2018-02-01 Thread Jonnny
As a as I know, no - there is not `scalapb` Python package. It's not that bad having scalapb directory in your root directories, it just the project I'm working on has 8 micro-services depended on each other (mainly for message serialization), and just having 8 folder in the main folder is

Re: [protobuf] Generating Code With Parent Directory Imports?

2018-01-31 Thread 'Feng Xiao' via Protocol Buffers
On Wed, Jan 31, 2018 at 2:57 PM, Jonnny wrote: > By 'Protobuf Python Library' you mean the Python Package called `protobuf > ? I think It's already included in my package as dependency. But Google > protobuf is just one example. Most people around here using Scala, and they >

Re: [protobuf] Generating Code With Parent Directory Imports?

2018-01-31 Thread Jonnny
By 'Protobuf Python Library' you mean the Python Package called `protobuf ? I think It's already included in my package as dependency. But Google protobuf is just one example. Most people around here using Scala, and they all have 'scalapb' imported into their proto files. The path is

Re: [protobuf] Generating Code With Parent Directory Imports?

2018-01-31 Thread 'Feng Xiao' via Protocol Buffers
On Wed, Jan 31, 2018 at 8:54 AM, Jonnny wrote: > Hello everyone, > > I have a couple of micro-services, and each has couple of proto files. > It's common for one micro-service proto file to reference another service > proto file using import like so: > > import

[protobuf] Generating Code With Parent Directory Imports?

2018-01-31 Thread Jonnny
Hello everyone, I have a couple of micro-services, and each has couple of proto files. It's common for one micro-service proto file to reference another service proto file using import like so: import "google/protobuf/struct.proto"; import "myService/v1/message.proto"; import