Commit Graph

27 Commits

Author SHA1 Message Date
Lidi Zheng 141e42f9b9 Revert "Remove the fake package dependency && temporarily skip the Channelz tests"
This reverts commit 08a90f03d4.
2019-01-24 13:45:07 -08:00
Lidi Zheng 08a90f03d4 Remove the fake package dependency && temporarily skip the Channelz tests 2018-12-17 15:11:44 -08:00
Lidi Zheng 45b3230ef2 Add grpcio-status extension package
* The new package has 2 API `from_call` and `to_status`
* Utilize the experimental API `abort_with_status`
* Add 5 unit test cases
2018-12-13 10:18:44 -08:00
Lidi Zheng 43599facf4 Channelz Python wrapper implementation
* Expose the C-Core API in Cython layer
* Handle the object translation
* Create a separate package for Channelz specifically
* Handle nullptr and raise exception if seen one
* Translate C++ Channelz unit tests
* Adding 5 more invalid query unit tests

Adding peripheral utility for grpcio-channelz package
* Add to `pylint_code.sh`
* Add to Python build script
* Add to artifact build script
* Add to Bazel
* Add to Sphinx module list
2018-11-27 17:27:39 -08:00
Eric Gribkoff f8cf7ee56d Support gRPC Python client-side fork with epoll1
A process may fork after invoking grpc_init() and use gRPC in the child
if and only if the child process first destroys all gRPC resources
inherited from the parent process and invokes grpc_shutdown().
Subsequent to this, the child will be able to re-initialize and use
gRPC. After fork, the parent process will be able to continue to use
existing gRPC resources such as channels and calls without interference
from the child process.

To facilitate gRPC Python applications meeting the above constraints,
gRPC Python will automatically destroy and shutdown all gRPC Core
resources in the child's post-fork handler, including cancelling
in-flight calls (see detailed design below). From the client's
perspective, the child process is now free to create new channels and
use gRPC.
2018-08-22 10:34:54 -07:00
Jan Tattermusch 02d4afb94c yapf code 2018-08-07 14:28:41 +02:00
Jan Tattermusch bc8495da7a upgrade python to protobuf 3.6.0 2018-08-07 14:28:40 +02:00
Mehrdad Afshari ac6aaa3f0b Install futures package only on Python 2 2018-05-14 17:02:03 -07:00
Mehrdad Afshari 8e9baf35bd Bump protobuf runtime dependency versions 2018-04-19 02:07:59 -04:00
kpayson64 1bfff8eec0 Initial gevent support
Because some cpp code ends up leaking into cython, we change
the cython generator to generate cpp code.
2018-03-27 19:44:43 -07:00
Mehrdad Afshari 87cd994b04 Upgrade yapf to 0.20.0
Upgrade yapf version to 0.20.0 and reformat Python files.
2018-01-02 14:40:00 -08:00
Mehrdad Afshari 0df9c8acdc Update Python dependency to protobuf v3.5.0.post1 2017-11-27 12:52:41 -08:00
Nathaniel Manista 2010985ab2 gRPC Python test infrastructure
(The channel-related second part of it.)
2017-08-03 22:38:40 +00:00
Jan Tattermusch 4d5c3102a1 fix remaining license notices 2017-06-08 11:22:41 +02:00
Jan Tattermusch 7897ae9308 auto-fix most of licenses 2017-06-08 11:22:41 +02:00
Ken Payson 937d96d051 Update Python interop tests to use google-auth package
The oauth2client test dependency is still needed as it used by
the beta API unit tests.
2017-05-12 11:11:21 -07:00
Ken Payson 029090628d Upgrade protobuf to 3.3.0 2017-05-08 12:18:12 -07:00
Mehrdad Afshari 9b3c73d1cd Updated protobuf dependency for python to 3.2.0 2017-03-07 22:10:15 +00:00
Ken Payson 2fa5f2f978 Re-run yapf code, and pin version 2017-02-06 10:27:09 -08:00
Masood Malekghassemi cc793703bf Run Python formatting 2017-01-17 10:55:33 -08:00
Masood Malekghassemi fb261bf748 Un-namespace Python packages
Setuptools was updated and our hacky namespace-package-chickens came
back to roost. This removes the unsupported namespace package hacks.
2016-12-12 15:04:30 -08: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 f24a405551 Remove unused imports in grpcio-tests 2016-08-22 09:24:22 -07:00
Ken Payson 8348973de9 Use templates for python version dependencies
Also change grpcio-tools to be a runtime dependency of grpcio-tests,
grpcio-tools is run as part of the tests.
2016-08-18 11:27:47 -07:00
Ken Payson e5fd01a389 Bump python protobuf dependency to 3.0.0 2016-08-03 11:43:15 -07:00
Ken Payson dd24c1ece4 Polish grpcio_health_checking package
-Rename namespace to grpc_health->grpc to match spec
-Proper use of NOT_FOUND status code
-Improve testing
-Add source distribution to artifact build
2016-07-18 12:50:13 -07:00
Masood Malekghassemi 1ff429da2a Organize Python tests to use grpcio-tools directly
Moves all tests into a separate package. This does not change existing
supported means of running tests (e.g. through run_tests.py).
2016-07-01 10:18:45 -07:00