29 Commits

Author SHA1 Message Date
boukeversteegh
f7769a19d1 Pass betterproto option using custom_opt instead of environment variable 2020-06-06 12:51:37 +02:00
boukeversteegh
919b0a6a7d Check if betterproto has wrapper support in idiomatic way 2020-06-04 00:02:28 +02:00
Bouke Versteegh
ff14948a4e Use raw string for regex
Co-authored-by: nat <nat.noordanus@gmail.com>
2020-06-04 00:02:28 +02:00
boukeversteegh
2f658df666 Use betterproto wrapper classes, extract to module for testability 2020-06-04 00:02:28 +02:00
boukeversteegh
2a3e1e1827 Add basic support for all google.protobuf types 2020-06-03 23:58:47 +02:00
boukeversteegh
53ce1255d3 Do not unwrap google.protobuf.Value and unsupported wrapper types 2020-06-03 23:58:47 +02:00
boukeversteegh
f087c6c9bd Support compiling google protobuf files 2020-06-03 23:54:43 +02:00
nat
91111ab7d8 Make plugin import errors more helpful
This addresses an issue where if the user happens to have black installed in
their environment but not the other dependencies when running the protoc
plugin then the resulting import error (No module named 'google') is not very
helpful.
2020-05-30 16:08:36 +02:00
Nat Noordanus
cd1c2dc3b5 Rename template file to avoid confusing black or other build tools 2020-05-27 11:25:19 +02:00
Nat Noordanus
be2a24d15c blacken 2020-05-27 11:25:00 +02:00
boukeversteegh
8f0caf1db2 Read desired wrapper type directly from wrapper definition 2020-05-24 14:50:56 +02:00
boukeversteegh
b711d1e11f Merge remote-tracking branch 'daniel/master' into pr/wrapper-as-output 2020-05-24 10:41:40 +02:00
Nat Noordanus
5e2d9febea Blacken 2020-05-23 23:37:22 +02:00
Bouke Versteegh
7e9ba0866c
cleanup 2020-05-21 22:55:26 +02:00
boukeversteegh
499489f1d3 Support using Google's wrapper types as RPC output values 2020-05-10 16:36:29 +02:00
Adam Ehlers Nyholm Thomsen
36a14026d8
Fix issue that occurs with naming when proto is double nested (#21) 2020-04-15 14:10:43 +10:00
Daniel G. Taylor
33f74f6a45
Fix comment indent bug; bump version 2019-10-29 21:59:23 -07:00
Daniel G. Taylor
7e2dc595db
Autoformat files after rendering 2019-10-28 20:44:50 -07:00
Daniel G. Taylor
035793aec3
Support wrapper types 2019-10-27 14:55:25 -07:00
Daniel G. Taylor
c79535b614
Support Duration/Timestamp Google well-known types 2019-10-26 23:07:30 -07:00
Daniel G. Taylor
5daf61f64c
Refactor default value code 2019-10-25 21:16:32 -07:00
Daniel G. Taylor
4679c571c3
Fix comment newlines 2019-10-25 12:28:26 -07:00
Daniel G. Taylor
ff8463cf12
Handle fields that clash with Python reserved keywords 2019-10-23 21:28:31 -07:00
Daniel G. Taylor
eff9021529
Some informational output from the plugin, do not overwrite __init__.py 2019-10-23 15:07:05 -07:00
Daniel G. Taylor
d43d5af5ce
Better JSON casing support, renaming messages/fields 2019-10-23 15:06:34 -07:00
Daniel G. Taylor
109dc5a8a5
Make compiler dependencies optional 2019-10-22 21:08:30 -07:00
Daniel G. Taylor
5dae20970b
Add OneOf support, rework field detection 2019-10-22 20:44:00 -07:00
Daniel G. Taylor
a33d92d89d
gRPC service/method comments 2019-10-20 23:52:27 -07:00
Daniel G. Taylor
7fe64ad8fe
Doc updates, refactor code layout, python package 2019-10-18 21:14:54 -07:00