Commit Graph

357 Commits

Author SHA1 Message Date
Lidi Zheng 2231c2ba77
Introduce Python import sorting to our sanity test suite (#26768)
* Add isort_code.sh to sanity tests

* Run tools/distrib/isort_code.sh

* Fine tune the import order for relative imports

* Make pylint and project generation happy

* Fix a few corner cases

* Use --check instead of --diff

* The import order impacts test result somehow

* Make isort print diff and check output at the same time

* Let tools/run_tests/python_utils be firstparty library

* Run isort against latest HEAD
2021-07-26 12:31:21 -07:00
Lidi Zheng 5820e152cd
Remove Python 2.7 binary wheel generations (#26691)
* Remove Python 2.7 binary wheels

* Make sure pip won't pick-up newer versions

* Attempt to fix the distribtest

* Fallback to virtualenv==16.7.9 for 34 and 35

* Remove 34 from binary wheel distribtests
2021-07-23 08:20:39 -07:00
apolcyn 0e6c888574
Bump version to 1.40.0-dev (#26600)
* Bump version to 1.40.0

* Regenerate projects

* Tweak version.cc.template to satisfy formatter

* Regenerate projects
2021-07-02 14:33:34 -07:00
Yash Tibrewal a989179ace
Bump master to v1.39.0 (#26207)
* Bump version to v1.39.0

* Regenerate projects

* Buildifier format
2021-05-11 06:49:10 -07:00
Lidi Zheng 25f5399b41
Add grpcio-admin Python package (#26166)
* Add grpcio-admin Python package

* Polish package content

* Make Linux artifact build happy

* Improve documentation
2021-05-05 13:20:50 -07:00
Lidi Zheng dc63d6a53e
Add CSDS API to Python (#26114)
* Add grpcio-csds pacakge

* Remove unused file

* Fix the proto import path issue

* Update the CSDS package and xds-protos for PY2

* Make tests happy

* Fix Bazel proto dependency

* Add Python2 tests for CSDS
2021-05-03 11:54:34 -07:00
Yash Tibrewal 81276fff2e
Update protobuf version to 3.15.8 (#26105)
* Update protobuf version to 3.15.8

* Run tools/distrib/python/make_grpcio_tools.py
2021-04-30 11:03:23 -07:00
Ben Beasley d483841001
Explicitly import importlib.abc; required on Python 3.10. Fixes #26062. (#26083) 2021-04-26 16:44:12 -07:00
Lidi Zheng 0657787b13
Compile source wheels for xds-protos (#26034) 2021-04-21 12:45:54 -07:00
Lidi Zheng cca9277963
Fix some issues with the xds-protos package (#25999)
* Fix issues with xds-protos && add a README

* Split the build process from setup.py
2021-04-20 09:23:07 -07:00
Lidi Zheng 980ccba493
Introduce new Python package "xds_protos" (#25975)
* New Python package xds_protos

* Polish the setup.py

* Adding install requirements and improve wheel validation

* Add xds-protos to the update procedure of envoy-api

* Add setup requirements
2021-04-16 16:31:23 -07:00
Richard Belleville 9964ae875b
Bump master version to 1.38 (#25838)
* Bump version to 1.38

* Regenerate projects
2021-03-30 13:57:13 -07:00
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