Commit Graph

24 Commits

Author SHA1 Message Date
Mike Kruskal db51a3f69a Mark grpc generators for editions support.
Edition 2023 makes no changes to method/service descriptors, so these should be unaffected and already supported.

PiperOrigin-RevId: 615832918
2024-03-14 10:52:00 -07:00
Xuan Wang c910004328 [Python Stub] Add version check to stubs generated by grpcio_tools (#35906)
The stubs generated by grpcio_tools should always be used with [the same or higher version of grpcio](https://github.com/grpc/grpc/blob/master/tools/distrib/python/grpcio_tools/setup.py#L313), this change will add a run time check for this requirement inside the generated stubs and therefor enforce this requirement.

Please note for now we're just printing a warning for incorrect usage, we'll **change it to an error** soon.

Example warning message:
```
/usr/local/google/home/xuanwn/workspace/misc/grpc/examples/python/helloworld/helloworld_pb2_grpc.py:21: RuntimeWarning: The grpc package installed is at version 1.60.1, but the generated code in helloworld_pb2_grpc.py depends on grpcio>=1.63.0.dev0. Please upgrade your grpc module to grpcio>=1.63.0.dev0 or downgrade your generated code using grpcio-tools<=1.60.1. This warning will become an error in 1.64.0, scheduled for release on May 14,2024.
```
<!--

If you know who should review your pull request, please assign it to that
person, otherwise the pull request would get assigned randomly.

If your pull request is for a specific language, please add the appropriate
lang label.

-->

Closes #35906

PiperOrigin-RevId: 615659471
2024-03-13 22:47:01 -07:00
Nicolas Noble a325d7f77a
Pointing the protobuf submodule to the new URL (#26811)
* Pointing the protobuf submodule to the new URL

* Also changing WORKSPACE dependencies

* More references to the old URL...
2021-07-29 10:19:16 -07:00
Esun Kim 165ee5007a Replaced grpc::string with std::string 2020-06-29 17:56:36 -07:00
Stanley Cheung eccbac3443 Update grpc protoc plugins to support proto3 optional 2020-05-29 13:50:18 -07:00
Karthik Ravi Shankar 063704ebad
Revert "Update grpc protoc plugin to be compliant of proto3 field presence" 2020-05-29 11:21:24 -07:00
Stanley Cheung dc9b100865 Update grpc protoc plugins to support proto3 optional 2020-05-27 18:30:12 -07:00
Richard Belleville f6dfcf8966 Add configurable list of module prefixes to be stripped in Python gRPC protoc plugin. 2019-04-18 16:51:07 -07:00
Jan Tattermusch 7897ae9308 auto-fix most of licenses 2017-06-08 11:22:41 +02:00
Harsh Vardhan 5b8fa87282
Refactor python code generator to support other serializers 2017-03-28 20:21:14 +05:30
Nathaniel Manista 40d55f9dac Add import prefix to Python generator
This is needed by a customer with a nontraditional codebase.
2017-03-14 03:36:29 +00:00
Masood Malekghassemi d953959e2b Enable split code generation
To support magical internal build processes, the pb2 files need to be
split into pure-proto and gRPC parts. This performs that split and
further fixes bad module names in the test harness that interfered with
the intended test implementation.

An unfortunate side effect, due to limitations of protoc and holdover
behavior we must support in major version 1.x, is that trash files are
generated in split generation. This shouldn't be a problem in normal
protoc plugin use.
2016-10-28 14:53:10 -07:00
Masood Malekghassemi ac59245624 Clang-format all the things 2016-07-12 13:20:39 -07:00
Masood Malekghassemi 71448b2898 Use open-source defaults to propagate Python plugin configuration 2016-06-29 11:41:24 -07:00
Nathaniel Manista 4547940d06 Python GA code generation 2016-06-13 20:51:09 +00:00
Craig Tiller 6169d5f7b0 Update copyrights 2016-03-31 07:46:18 -07:00
Nathaniel Manista 2a9244a9c4 Copyright date fixes for Python generator files
These changes should have been included in dc8c323939.
2016-01-19 16:27:51 +00:00
Nathaniel Manista dc8c323939 Remove Python alpha code generation 2016-01-16 18:28:45 +00:00
Nathaniel Manista cd9ec0e965 Code generation for Python Beta API 2015-08-31 17:33:15 +00:00
Masood Malekghassemi 65c803b083 Sanitize Python plugin 2015-03-20 16:24:22 -07:00
Masood Malekghassemi 3bb52151dd Make Python package spec indirect
This is part of a change to ease internal usage of GRPC.
2015-03-18 01:41:07 -07:00
Nicolas "Pixel" Noble 1ff52d5278 Guard headers tool. 2015-03-01 06:18:14 +01:00
Masood Malekghassemi 59d9ff4d9f Updated Python protoc plugin testing. 2015-02-24 19:11:08 -08:00
Masood Malekghassemi f8e297a3c0 Added protoc plugin for Python GRPC. 2015-02-19 15:40:08 -08:00