Commit Graph

395 Commits

Author SHA1 Message Date
emkornfield ec31fa8455
Standardize all environment variable boolean configuration in python's setup.py (#25444)
* standardize bool flags for grpcio and grpcio.tools

Co-authored-by: Jan Tattermusch <jtattermusch@google.com>
2021-03-10 11:11:07 +01:00
Jan Tattermusch fcd43e9030
Crosscompile python aarch64 wheels with dockcross (#25418)
* build aarch64 python wheels via crosscompilation

* yapf format code

* fix shellcheck complaints

* fix python37 aarch64 wheel build

* build python wheels on linux aarch64 with static libstdc++

* yapf format code
2021-03-02 07:32:28 +01:00
Karthik Ravi Shankar 2fd9f5ead9
Update third_party/protobuf to v3.15.2 (#25565)
* Update protobuf to v3.15.2

* revert boringssl podspec changes

Co-authored-by: Jan Tattermusch <jtattermusch@google.com>
2021-02-26 13:32:25 -08:00
Lidi Zheng 51659eb06e Regenerate projects 2021-02-09 11:45:06 -08:00
Jan Tattermusch 60a7ce664a Merge remote-tracking branch 'upstream/v1.35.x' into HEAD 2021-01-18 09:35:36 +01:00
Jan Tattermusch ded080e955 re-run tools/distrib/python/make_grpcio_tools.py 2021-01-16 13:12:16 +01:00
Jan Tattermusch 3fcf6620f0 re-run tools/distrib/python/make_grpcio_tools.py 2021-01-11 10:27:24 +01:00
Jan Tattermusch 9bb2aefd02 upgrade ruby, C# python and ObC to protobuf 3.14 2021-01-11 10:04:27 +01:00
Jan Tattermusch 6c99a037d0 run tools/distrib/python/make_grpcio_tools.py 2021-01-11 09:58:05 +01:00
Stanley Cheung fe2e96f9f3 Regenerate projects 2021-01-06 19:52:32 -08:00
Stanley Cheung 5564ac0cce Regenerate projects 2021-01-06 19:40:00 -08:00
Richard Belleville 46bb9570b2 Rewrap comment 2020-12-15 12:23:40 -08:00
Richard Belleville aa90c5f9fe Whoops 2020-12-14 20:33:13 -08:00
Richard Belleville fbcf75e0ec Support Python 2 as well 2020-12-14 17:53:59 -08:00
Richard Belleville 9b9bb299c5 Fix visibility of libprotobuf symbols in protoc_compiler.so on Mac 2020-12-14 16:15:02 -08:00
Richard Belleville 38124ab0c6 Review comments 2020-12-07 11:52:44 -08:00
Richard Belleville 010d62175e Pin protobuf version dependency for grpcio-tools 2020-12-04 17:40:31 -08:00
yulin-liang 2ffa791ae6 Regenerate projects 2020-11-17 13:10:08 -08:00
Lidi Zheng 1389fa7426 Incur setuptools as an dependency for grpcio_tools 2020-11-13 14:03:28 -08:00
Richard Belleville de90ff64d5
Merge pull request #24478 from gnossen/runtime_protos_wkt
[gRPC Easy] Make Well-Known Types Available to Runtime Protos
2020-10-20 20:08:14 -07:00
Richard Belleville b0dfa295a0 Buildifier 2020-10-20 09:44:49 -07:00
Richard Belleville 79f54e9d57 Include well known types in bazel build 2020-10-19 23:39:01 -07:00
Esun Kim 10d58179fe Bump MACOSX_DEPLOYMENT_TARGET to 10.10 for Python 2020-10-19 14:48:43 -07:00
Richard Belleville f13b324941 Include well-known types in sys.path when using runtime protos 2020-10-19 13:02:33 -07:00
Esun Kim be23ad0ed1
Merge pull request #24282 from veblush/ios-bump
Bump iOS and OSX version
2020-10-07 16:12:16 -07:00
Donna Dionne aafe657978 Bump version to v1.34.x: regenerate projects 2020-10-07 12:51:27 -07:00
Ben Wolsieffer 1b7c290083 grpcio_tools: setup.py: use CXX to get compiler for libatomic check
This allows it to work with a prefixed compiler when cross-compiling.
2020-10-01 14:37:32 -04:00
Ben Wolsieffer 1024ebeb31 grpcio_tools: setup.py: update libatomic check from top-level setup.py 2020-10-01 14:37:32 -04:00
Esun Kim ccf3cbc6b7 Bump iOS and OSX version 2020-09-30 14:58:30 -07:00
Richard Belleville a80a3b72bb Do not import grpc_tools.protoc from grpc_tools 2020-09-22 12:35:52 -07:00
Richard Belleville d743defdaf Fix import errors on Windows 2020-09-10 19:26:43 -04:00
Richard Belleville 47dc875801 Make version check more stringent 2020-09-09 15:32:52 -07:00
Mark D. Roth 30e4170dc3 Update version of master to 1.33-dev ("geeky"). 2020-08-28 09:20:30 -07:00
Jan Tattermusch 2e86c86540 run tools/distrib/python/make_grpcio_tools.py 2020-08-25 12:57:21 +02:00
Richard Belleville 24537b4767 Fix breakage when variable unset 2020-08-18 13:41:17 -07:00
Richard Belleville 5ace9fc145 Revert changes to grpcio-tools setup.py 2020-08-17 10:12:25 -07:00
Richard Belleville 65d14904e4 Add todo about deduping 2020-08-14 16:36:08 -07:00
Richard Belleville 13fa5040ca Sometimes, copyright headers can cause test failures 2020-08-10 15:12:13 -07:00
Richard Belleville b50110b583 Fix Windows 2020-08-10 14:49:48 -07:00
Richard Belleville 2d9e8bc736 Copyright 2020-08-06 17:24:28 -07:00
Richard Belleville 60f88e20a4 Fix bazel grpc_tools test 2020-08-06 17:04:22 -07:00
Richard Belleville 568dd00774 Buildifier 2020-08-06 13:33:31 -07:00
Richard Belleville 8f1e181189 Merge remote-tracking branch 'origin/master' into dynamic_stubs 2020-08-06 12:32:47 -07:00
Richard Belleville 2c1efcd0ae Add documentation 2020-08-06 12:25:21 -07:00
nanahpang e4ead4bec0
Update docgen.py
Fix a RexAnalyzer error during the import, and update in github as well. 

Parentheses around a single item in Python has no effect: (foo) is exactly equivalent to foo. In many cases this is harmless, but it can suggest a subtle bug when used in string formatting.  A '%'-formatted string with a single format specifier can be formatted using a single value or a one element tuple: 'hello %s' % name or 'hello %s' % (name,). Consequently, a line like error_msg = 'Cannot process %s' % (data) may leave code reviewers and future readers unsure if there is a subtle bug if data is a tuple. 

Since the args.repo_owner here is a single string, drop the parentheses is better.
2020-08-04 13:51:23 -07:00
Lidi Zheng 38530cc2bc Make docgen work better with virtualenv 2020-08-03 11:44:16 -07:00
Lidi Zheng 981baff79b Fix the docgen script:
1. Make it use python3 by default;
2. Simplify its arguments.
2020-08-03 11:28:56 -07:00
Jan Tattermusch 80daba44d9 regenerate projects 2020-07-22 17:38:48 +02:00
Richard Belleville 9448150eec Remove option to specify path 2020-07-17 16:46:38 -07:00
Richard Belleville c2c5057e9d Fix up examples 2020-07-17 15:55:39 -07:00
Richard Belleville 999bbf1401 Format 2020-07-15 13:09:53 -07:00
Richard Belleville fd0d0f77df Fix Bazel warning 2020-07-15 13:03:16 -07:00
Richard Belleville df0978ceb0 Clean up build file 2020-07-10 15:18:46 -07:00
Richard Belleville d4e8d9956c Run tests under setup.py 2020-06-26 12:11:31 -07:00
Richard Belleville 6055bc564d Shorten type names 2020-06-17 22:32:41 -07:00
Richard Belleville 0d0d2c65bc Manually format Cython 2020-06-17 22:15:45 -07:00
Richard Belleville 1f655ad351 Fix gil relinquishment 2020-06-17 22:09:13 -07:00
Richard Belleville 1f53f13446 Merge remote-tracking branch 'origin/master' into dynamic_stubs 2020-06-17 14:47:07 -07:00
Lidi Zheng d98ecdb85c Set version upper bound for protobuf; installs grpcio-tools instead 2020-06-16 11:00:00 -07:00
Srini Polavarapu 057091fe1f Regenerate projects 2020-06-05 13:54:32 -07:00
Stanley Cheung fc9e5092da
Merge pull request #23093 from stanley-cheung/roll-forward-22998
Roll forward #22998
2020-06-01 17:09:08 -07:00
Lidi Zheng 48e3b4b014
Merge pull request #23094 from lidizheng/forward-package
Add grpc-prefixed package generation script
2020-06-01 09:58:38 -07:00
Lidi Zheng 677e657e5b Improve readability & prevent deadlock 2020-05-29 14:42:26 -07:00
Lidi Zheng 99eefe48b2 Add grpc-prefixed package generation script 2020-05-29 14:06:26 -07:00
Stanley Cheung 6f72faa74b Update to protobuf 3.12.2 2020-05-29 13:50:27 -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 f70ebf85a6 Update to protobuf 3.12.2 2020-05-27 18:30:12 -07:00
Stanley Cheung dc9b100865 Update grpc protoc plugins to support proto3 optional 2020-05-27 18:30:12 -07:00
Nicolas "Pixel" Noble 791729d09f Bumping version. 2020-04-30 08:12:29 +02:00
Jan Tattermusch 93e227c2f4 run tools/distrib/python/make_grpcio_tools.py 2020-04-27 04:51:38 -04:00
Richard Belleville 5ef379870d Regenerate projects 2020-02-26 10:39:34 -08:00
apolcyn 17036c1452
Merge pull request #21698 from apolcyn/bump_g_stands_for
Bump g stands for
2020-02-21 10:53:47 -08:00
Jan Tattermusch 21512217f2 get rid of the https://grpc.io/release plague 2020-02-04 15:01:03 +01:00
Alexander Polcyn 1197454f5a Regenerate projects 2020-01-17 15:36:25 -08:00
Jan Tattermusch d684931595 run make_grpcio_tools.py 2020-01-15 04:43:59 -05:00
Esun Kim 5207eba9ff Add abseil 2020-01-03 19:29:55 -08:00
Esun Kim 7be821ac47 Yapf all target python sources 2020-01-03 09:25:10 -08:00
Lidi Zheng 016d03fbad Update the docgen.py 2019-12-19 10:53:55 -08:00
Lidi Zheng 0404939ad0 Let our CI use the latest pip version 2019-12-19 10:53:55 -08:00
Richard Belleville c57cb10169 Release GIL while compiling protos 2019-12-12 17:45:59 -08:00
Richard Belleville 928c6f23ea Be completely safe for Python 2 2019-12-10 17:37:53 -08:00
Richard Belleville 7eb3dc2ccc Run grpc_tools tests under Bazel 2019-12-10 16:55:08 -08:00
Richard Belleville 12cf83fd70 Run under setuptools 2019-12-10 16:02:05 -08:00
Richard Belleville 5f5402505e Rehome grpc_tools tests 2019-12-10 15:16:21 -08:00
Richard Belleville d4ad4ad03b Remove checked-in generated code 2019-12-10 14:07:47 -08:00
Richard Belleville 447eba1ed7 Make imports thread-safe 2019-12-10 11:53:47 -08:00
Richard Belleville 5c76f50e2f Format Python code 2019-12-10 11:41:59 -08:00
Richard Belleville c8a72f092e Improve namespacing 2019-12-10 11:28:50 -08:00
Richard Belleville e9746f03d6 Format C++ 2019-12-10 11:07:59 -08:00
Richard Belleville 87b50e08b9 Formatting 2019-12-04 14:55:08 -08:00
Richard Belleville 467bc90a6f Simplify naming 2019-12-03 16:29:27 -08:00
Richard Belleville b9b126a237 Add new functions to grpc api surface 2019-12-03 16:14:40 -08:00
Richard Belleville 6feae07504 Regenerate projects 2019-12-03 15:08:50 -08:00
Richard Belleville 0f27c1630e Speed up transitive closure calculation 2019-12-03 11:17:08 -08:00
Richard Belleville 7400bc0657 Readability 2019-12-03 11:08:44 -08:00
Richard Belleville ecab62dc31 Support services too 2019-12-02 17:08:00 -08:00
Richard Belleville 595807e0c5 Create importlib path for protos 2019-12-02 16:47:15 -08:00
Richard Belleville 709143d1f5 Support multiple include paths. Pretty print errors. Support combined import 2019-12-02 13:01:33 -08:00
Richard Belleville 70d61da47e Test mixing of static and dynamic loading 2019-11-27 15:30:11 -08:00
Richard Belleville 4d3790271a Support importing a dependency tree of protos. 2019-11-27 13:47:37 -08:00
Richard Belleville a482fb21f8 Make include path work 2019-11-27 10:54:32 -08:00
Richard Belleville 555019b098 Clean up service import 2019-11-27 10:34:02 -08:00
Richard Belleville 01031e2fca Generate services in a dirty way 2019-11-27 10:09:19 -08:00
Richard Belleville 94ca493f4e Instantiate a module with the generated code 2019-11-26 16:46:49 -08:00
Richard Belleville 8dd1f3a394 Intelligently collect errors and warnings 2019-11-26 16:23:28 -08:00
Richard Belleville 9cc62a6208 WIP. Output protos in memory, not to STDOUT 2019-11-26 15:23:08 -08:00
Richard Belleville 0cfe955068 Add a simple unified importer 2019-11-22 16:32:23 -08:00
Richard Belleville 08a4bbf8b6 Make files build-system agnostic 2019-11-22 13:14:57 -08:00
Richard Belleville 1fe8b04646 Successfully import under Bazel 2019-11-22 13:02:19 -08:00
Jan Tattermusch 41622c19c6 fix submodule at head script 2019-11-19 14:29:27 -05:00
Yash Tibrewal 07ef24344c Regenerate projects 2019-10-24 11:54:20 -07:00
Esun Kim 4bc9820241 Update comment 2019-10-04 20:41:36 -07:00
Esun Kim d55154f7b8 Reformat code 2019-10-04 17:25:58 -07:00
Esun Kim 55ae0f6f8d Added libatomic to gRPC python 2019-10-04 16:39:10 -07:00
Esun Kim cf444b9cab Regenerate projects 2019-09-10 14:08:50 -07:00
Karthik Ravi Shankar fcb43f9dee Regenerate projects 2019-08-01 17:34:02 -07:00
Jan Tattermusch af8c8a88e3
Delete the exited container after running python bazel_deps.sh 2019-07-08 16:24:16 +02:00
Esun Kim cd27a36924 Regenerate projects 2019-06-18 15:40:50 -07:00
Jan Tattermusch 4d33b5c955
Merge pull request #19182 from haon4/201905291635
Update protobuf version to 3.8.0
2019-06-18 17:36:27 +02:00
Hao Nguyen 1ddaafd677 Update protobuf version 2019-05-29 16:37:10 -07:00
Richard Belleville 0ebeb40718
Merge pull request #19084 from gnossen/python2-deprecation-notice
Add python deprecation notices.
2019-05-28 13:06:52 -07:00
Srini Polavarapu ec640a53c6 Merge pull request #19105 from gnossen/twine_check_artifacts
Produce Python Wheels with a Valid long_description field
2019-05-28 10:11:34 -07:00
Richard Belleville 5d95bf037d Actually include README.rst in all packages 2019-05-20 14:21:25 -07:00
Richard Belleville cb9e2188ab Add python deprecation notices. 2019-05-20 13:05:37 -07:00
Srini Polavarapu 6bc2ff1b5f Regenerate projects 2019-05-10 10:38:59 -07:00
Lidi Zheng 7095f5acbe Use requirements.bazel.txt to generate Python documents 2019-04-16 11:27:31 -07:00
Lidi Zheng 0231bf3b01 Regenerate projects 2019-03-29 16:24:50 -07:00
Jan Tattermusch ce22e246d7 run tools/distrib/python/make_grpcio_tools.py 2019-03-12 05:09:46 -04:00
Srini Polavarapu b0efc103e3 Regenerate projects 2019-02-12 21:07:42 -08:00
Lidi Zheng 31bce3b127 Remove redundent lines 2019-01-21 16:49:36 -08:00
Lidi Zheng 51ba492d6d Minimize the change 2019-01-21 16:26:33 -08:00
Lidi Zheng 2dbabc7a8f Add new grpc_tools setuptools command BuildPackageProtosStrict 2019-01-16 12:07:50 -08:00
Lidi Zheng 0579dcaed6 Escalate the failure of protoc execution 2019-01-16 10:26:59 -08:00
Sanjay Pujare 94d5587643 Regenerate projects 2019-01-03 15:35:20 -08:00
Muxi Yan f3e4ae633e Regenerate projects 2018-11-19 15:24:53 -08:00
Lidi Zheng d1776af2ff Make docgen.py work
* Merge unnecessary arguments
* Remove the build command (CI should make sure it works, not this script)
* Speed up the GitHub operations with proper flags
* Adding Sphinx to setup requirement
2018-11-15 17:39:22 -08:00
Jan Tattermusch d83903ffd1 add _parallel_compile_patch.py to python manifest 2018-11-07 09:26:59 +01:00
Jan Tattermusch 185a0a7028 add python monkey-patch for parallel build_ext compilation 2018-10-31 09:01:01 +01:00
Stanley Cheung e5ce1e36e6 Regenerate projects 2018-10-08 15:50:50 -07:00
Juanli Shen 8ceb27a324 Regenerate projects 2018-08-27 14:27:55 -07:00
Mehrdad Afshari 981f19bed2 Remove protobuf js_embed hack 2018-08-16 11:18:00 -07:00
Jan Tattermusch d404e322bf run make_grpcio_tools.py 2018-08-07 14:28:41 +02:00
Jan Tattermusch 0ff1249d4d update python grpcio_tools 2018-08-07 14:28:40 +02:00
Srini Polavarapu 8c9af7464c Regenerate projects 2018-07-19 09:52:56 -07:00
Srini Polavarapu c79c156307 Regenrate projects 2018-06-08 17:01:18 -07:00
Jan Tattermusch dd009359e3 add some transparency to make_grpcio_tools.py 2018-05-23 22:02:41 +02:00
Mehrdad Afshari 2d43a45ad1 Regenerate projects 2018-05-02 22:49:52 -07:00
Mehrdad Afshari ad27271577
Merge pull request #15112 from mehrdada/bump-pip-to-10.0.0
Bump pip==10.0.1 and protobuf==3.5.2.post1
2018-04-20 11:55:19 -07:00
Mehrdad Afshari d0d8ce8568 Bump pip version to 10.0.1 2018-04-19 15:48:23 -04:00