Esun Kim
7be821ac47
Yapf all target python sources
2020-01-03 09:25:10 -08:00
Richard Belleville
6feae07504
Regenerate projects
2019-12-03 15:08:50 -08:00
Richard Belleville
aa156984b1
Support mutating a value used for a response in grpcio_testing
2019-11-25 17:41:16 -08:00
Yash Tibrewal
07ef24344c
Regenerate projects
2019-10-24 11:54:20 -07:00
Richard Belleville
07109f07e2
Fix grpc_testing context.abort
2019-10-01 11:23:20 -07:00
Esun Kim
cf444b9cab
Regenerate projects
2019-09-10 14:08:50 -07:00
Neeraj Kashyap
5c173084f8
condition acquire and release with context manager
...
Was previously unfamiliar with the contex manager wrapper around
threading primitives.
2019-08-26 11:07:58 -07:00
Neeraj Kashyap
1ab9225dce
Release the lock on the RPC object condition
2019-08-26 10:57:35 -07:00
Neeraj Kashyap
b804ce974a
Implemented _abort method on ServicerContext
...
This acquires a lock from the _condition member of the context's _rpc
and then aborts the _rpc directly
2019-08-26 08:43:46 -07:00
Karthik Ravi Shankar
fcb43f9dee
Regenerate projects
2019-08-01 17:34:02 -07:00
Esun Kim
cd27a36924
Regenerate projects
2019-06-18 15:40:50 -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
Richard Belleville
f900eec41d
Revert "Merge pull request #18727 from grpc/revert_compression"
...
This reverts commit 8054a731d1 , reversing
changes made to c3d3cf8053 .
2019-04-11 13:04:54 -07:00
Richard Belleville
167540efd4
Revert "Merge pull request #18564 from grpc/compression"
...
This reverts commit 9dfeb14be0 , reversing
changes made to 7009f2df58 .
2019-04-11 10:10:29 -07:00
Richard Belleville
5afd77398e
Implement compression API within gRPC Python.
2019-04-09 15:14:03 -07:00
Lidi Zheng
0231bf3b01
Regenerate projects
2019-03-29 16:24:50 -07:00
Srini Polavarapu
b0efc103e3
Regenerate projects
2019-02-12 21:07:42 -08:00
Richard Belleville
dbad0522c3
Revert "Merge pull request #17752 from grpc/license-symlinks"
...
This reverts commit 3f8e15e2a4 , reversing
changes made to a8662121c7 .
2019-01-24 10:10:22 -08:00
Richard Belleville
8609f42e15
Stop copying LICENSE files
2019-01-17 15:16:37 -08:00
Sanjay Pujare
94d5587643
Regenerate projects
2019-01-03 15:35:20 -08:00
Lidi Zheng
97453a3d81
Merge pull request #17303 from lidizheng/sanity-python-3
...
Run pylint test in Python 3
2018-12-20 11:22:37 -08:00
Lidi Zheng
fd74fcf2a0
New abort with grpc.Status API
...
* Add `abort_with_status` method in ServicerContext
* Add `Status` interface similar to the design of Details in interceptor
* Add 3 unit test cases for abort mechanism
2018-12-12 13:48:39 -08:00
Lidi Zheng
8cb2d0546d
Upgrade sanity Docker image to debian:stretch
...
* Use latest pylint in Python 3.7 (they dropped support for PY2)
* Make latest pylint happy
* Forced to upgrade to shellcheck 0.4.4
* Make shellcheck 0.4.4 happy
* Adopt reviewers' advice to reduce global disabled rules
2018-12-10 16:21:49 -08:00
Lidi Zheng
5584d58e6c
Add LICENSE to grpcio-* packages
...
* Using the proprocess command to copy the LICENSE
2018-12-05 15:25:48 -08:00
Muxi Yan
f3e4ae633e
Regenerate projects
2018-11-19 15:24:53 -08:00
Stanley Cheung
e5ce1e36e6
Regenerate projects
2018-10-08 15:50:50 -07:00
Nathaniel Manista
9eebb6d13d
Merge pull request #16378 from ghostwriternr/module-level-logger-fix
...
Configure module level loggers with basicConfig().
2018-09-06 17:45:50 +02:00
Juanli Shen
8ceb27a324
Regenerate projects
2018-08-27 14:27:55 -07:00
Naresh
a20e2073c1
Configure module level loggers with basicConfig()
...
Module level loggers were introduced to gRPC Python in 06e1683 , but
missed configuring these, leading to 'No handler found for module'
errors. Using the root logger implicitly calls basicConfig() which does
the basic configuration for the logging system by creating a
StreamHandler with a default Formatter and adding it to the logger. But
this is not the case for module level loggers.
Fix this issue by explicitly calling logging.basicConfig().
2018-08-17 12:24:58 +00:00
Jan Tattermusch
bc8495da7a
upgrade python to protobuf 3.6.0
2018-08-07 14:28:40 +02:00
Srini Polavarapu
8c9af7464c
Regenerate projects
2018-07-19 09:52:56 -07:00
Mehrdad Afshari
84955e7a48
Upmerge v1.13.x into master
2018-06-20 16:01:20 -07:00
Mehrdad Afshari
650fcb6b8d
Add MANIFEST and README to grpcio_testing package
2018-06-20 11:26:29 -07:00
Mehrdad Afshari
561630dfe2
Regenerate projects
2018-06-15 14:49:47 -04:00
Srini Polavarapu
586c639795
Regenerate projects
2018-06-08 17:16:17 -07:00
Srini Polavarapu
c79c156307
Regenrate projects
2018-06-08 17:01:18 -07:00
Mehrdad Afshari
109b5b1dcc
Fix arguments-differ pylint warning
2018-06-07 23:39:16 -07:00
Mehrdad Afshari
a941ec6d74
Fix import order to satisfy pylint
2018-06-07 23:38:34 -07:00
Naresh
2e113ca6b2
Update logging in Python to use module-level logger
...
All logging in Python so far was done with the root logger, resulting
in logs like: `ERROR:Exception calling application:`. With module-level
loggers, the logs will instead include the module in which the
exception is raised: `ERROR:grpc._server:Exception calling application:`
2018-05-31 08:08:25 +00:00
Mehrdad Afshari
2d43a45ad1
Regenerate projects
2018-05-02 22:49:52 -07:00
Nathaniel Manista
bccd32dafa
Add grpc.Channel.close
2018-05-02 23:59:15 +00:00
Mehrdad Afshari
8e9baf35bd
Bump protobuf runtime dependency versions
2018-04-19 02:07:59 -04:00
Mehrdad Afshari
90cfc8ed57
Regenerate projects
2018-04-04 14:04:11 -07:00
Mehrdad Afshari
9073ea03ef
Regenerate projects
2018-02-22 22:21:33 -08:00
Mehrdad Afshari
43884047c9
Regenerate projects
2018-01-19 14:25:15 -08: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
c5ba665b22
Merge remote-tracking branch 'origin/v1.8.x'
2017-12-11 11:32:11 -08:00
Mehrdad Afshari
0ba96edc41
v1.8.0-pre2 is now v1.8.0
2017-12-12 14:01:25 -08:00
ncteisen
e2097f0cc9
yapf-ize grpc_testing
2017-12-11 16:27:29 -08:00
Mehrdad Afshari
9bc44e3829
Introduce ServicerContext.abort to abort an RPC
...
gRPC Python required RPCs terminating with non-OK status code to still
return a valid response value after calling set_code, even though the
response value was not supposed to be communicated to the client, and
returning None is considered a programming error.
This commit introduces an alternative mechanism to terminate RPCs by
calling the `abort` method on `ServicerContext` passed to the handler,
which raises an exception and signals to the gRPC runtime to abort the
RPC with the specified status code and details.
2017-12-10 20:45:13 -08:00
Nicolas "Pixel" Noble
7d199c95a2
Merge branch 'master' of https://github.com/grpc/grpc into v1.8.x
2017-11-30 09:08:01 +01:00
Mehrdad Afshari
14e96f9ae8
Bump 1.8.0-dev to 1.9.0-dev
2017-11-27 17:14:15 -08:00
Mehrdad Afshari
552a7ca088
Bump 1.8.0-dev to 1.8.0-pre1
2017-11-27 16:51:21 -08:00
Mehrdad Afshari
0df9c8acdc
Update Python dependency to protobuf v3.5.0.post1
2017-11-27 12:52:41 -08:00
murgatroid99
9887379158
Update version to 1.8.0-dev, update g word to 'generous'
2017-10-02 17:31:33 -07:00
David Garcia Quintas
b352be025f
Upmerge from v1.6.x branch to master
2017-09-18 11:55:52 -07:00
Nathaniel Manista
86eb4ec0ef
Fix a six.with_metaclass usage mistake
...
I made this mistake in 2010985ab2 but
only with yesterday's release of six 1.11.0 has it started failing
("TypeError: metaclass conflict: the metaclassof a derived class must
be a (non-strict) subclass of the metaclasses of all its bases").
2017-09-18 14:22:16 +00:00
Jan Tattermusch
ea7807876c
regenerate
2017-09-12 16:56:05 +02:00
Nathaniel Manista
7c85caeaa8
gRPC Python test infrastructure
...
(The server-related third part of it.)
2017-09-05 01:01:20 +00:00
Nathaniel Manista
2010985ab2
gRPC Python test infrastructure
...
(The channel-related second part of it.)
2017-08-03 22:38:40 +00:00
Nathaniel Manista
69b7231776
gRPC Python test infrastructure
...
(The time-related first part of it, anyway.)
2017-07-25 18:19:35 +00:00