Masood Malekghassemi
743c10ccd5
Cython refactor of Python C wrapping layer
...
Also set up environment-related details needed for a smooth Cython
experience: have the test script avoid rebuilding all dependencies if the
virtualenv directory already exists, have the PyPI distribution script
distribute the Cython generated C code rather than the .pyx files.
2015-06-30 17:33:28 -07:00
Masood Malekghassemi
ec5dc7f90b
Accept metadata sequences, return tuples
2015-06-29 15:32:44 -07:00
Masood Malekghassemi
a6cfa0ad3b
Fix #2248
2015-06-29 15:06:08 -07:00
Craig Tiller
831b4e0fdc
Merge branch 'fix_intermediary_low_test_for_1577' of github.com:nathanielmanistaatgoogle/grpc into merge-merge-merge
2015-06-17 11:17:23 -07:00
Nathaniel Manista
c6636c01a5
Adapt _intermediary_low_test to no backup poller
...
Pull request #1577 removes the backup poller internal to completion
queues so this test needs to use extra threads to drive the work done
inside the completion queues by continuously calling each completion
queue's get method.
2015-06-17 17:36:58 +00:00
Craig Tiller
bf8ac3f406
Merge branch 'you-complete-me' into we-dont-need-no-backup
2015-06-17 09:15:48 -07:00
Craig Tiller
44a1dd36f5
Fix Python compilation
2015-06-17 09:09:35 -07:00
Craig Tiller
48dd6bfb53
Merge github.com:grpc/grpc into you-complete-me
2015-06-16 17:18:34 -07:00
Masood Malekghassemi
9d3fbcf0ba
Make warnings errors when building Python tests
2015-06-16 13:15:47 -07:00
David Garcia Quintas
d7e0bea41c
Added changes to python and csharp wrappers
2015-06-15 13:27:17 -07:00
Masood Malekghassemi
a3697b451b
Merge branch 'master' of https://github.com/grpc/grpc into ct-you-complete-me
2015-06-15 10:29:20 -07:00
Craig Tiller
4c32de585a
Fix low test
2015-06-15 10:15:20 -07:00
Craig Tiller
a1fa35530f
Properly register completion queues with server
2015-06-15 10:14:33 -07:00
Craig Tiller
173761fbd5
Merge branch 'you-complete-me' into we-dont-need-no-backup
2015-06-11 09:50:56 -07:00
Nathaniel Manista
f3e4aa2c7c
Merge pull request #2034 from soltanmm/pip89
...
Ensure C89 compatibility in Linux tests.
2015-06-11 06:39:55 -07:00
Masood Malekghassemi
4b4181ed1c
Ensure C89 compatibility in Linux tests
2015-06-10 17:37:55 -07:00
Masood Malekghassemi
38bb18fd43
Update Python for core server shutdown change
2015-06-10 17:32:02 -07:00
Jayant Kolhe
14b39e0c2b
Merge pull request #2004 from tbetbetbe/python-package-update-install
...
Update README.rst
2015-06-10 14:42:18 -07:00
Tim Emiola
0c0ccb0acf
Corrects wording
2015-06-10 14:09:42 -07:00
Nathaniel Manista
a08694eff2
Merge pull request #2033 from tbetbetbe/grpc-python-update-add-example-to-docs
...
Update src/python/README.md to link to quick
start and detailed example documentation.
2015-06-10 10:43:47 -07:00
Tim Emiola
05aafbc9d9
Update README.md
2015-06-10 10:38:38 -07:00
Nathaniel Manista
3f192f7391
Merge pull request #1884 from soltanmm/py-proto-up
...
Upgrade protobuf version used by gRPC Python to 3.0.0a3 and
update version number of gRPC Python to 0.9.0a1.
2015-06-09 15:23:39 -07:00
Tim Emiola
2e6def0f9e
Update README.rst
2015-06-09 08:23:50 -07:00
David Garcia Quintas
59f905d79a
Changes to byte_buffer based on comments.
2015-06-08 20:06:17 -07:00
Masood Malekghassemi
aa152ef420
Merge pull request #1895 from nicolasnoble/python-is-not-c89
...
Some compilers don't like C99.
2015-06-03 18:27:57 -07:00
Masood Malekghassemi
0f4c6a2fb8
Upgrade protobuf, Python version number
2015-06-03 17:44:28 -07:00
Nathaniel Manista
247ca67bc6
Merge pull request #1882 from soltanmm/timeouts
...
Increase RPC timeout in _links_test.py.
2015-06-03 15:40:01 -07:00
Nicolas "Pixel" Noble
3f6d351b86
Some compilers don't like C99.
2015-06-03 22:05:51 +02:00
Jayant Kolhe
11b4f3cdc5
Merge pull request #1891 from tbetbetbe/grpc-python-update-readme-install
...
Updates the INSTALL section for python
2015-06-03 12:26:00 -07:00
Tim Emiola
aa0e44bd63
Updates the INSTALL section for python
2015-06-03 12:20:43 -07:00
Masood Malekghassemi
691b8234af
Increase test timeout
...
The previous timeout was short enough that it led to erroneous failures.
Fixes #1875 .
2015-06-02 16:38:26 -07:00
David Garcia Quintas
30bd4eb5cc
Removed grpc_byte_buffer_reader_{create,destroy}.
...
Introduced grpc_byte_buffer_init instead. It's now the user's responsibility to
manage memory.
2015-06-01 21:20:47 -07:00
Nathaniel Manista
faafb38d14
Merge pull request #1558 from soltanmm/extension
...
Overhaul Python C layer.
2015-06-01 14:34:32 -07:00
Nathaniel Manista
7181d85f8b
Merge pull request #1668 from soltanmm/cancel-interop
...
Add cancellation interop tests for Python.
2015-05-29 13:56:26 -07:00
Masood Malekghassemi
a2918d2e04
Move batch API exposure to Python layer
...
Exposes the C core batch API to the Python layers. Provides a shim to
enable the old Python API to remain the same (for now).
2015-05-29 13:41:37 -07:00
Masood Malekghassemi
e0281bbbf1
Set verbosity to 2 for Python tests
...
Fixes #1762 .
2015-05-28 15:33:48 -07:00
Masood Malekghassemi
7eefcb7994
Sync Python version to rest of project
...
Updated to version 0.9.0a0.
2015-05-26 14:26:24 -07:00
Craig Tiller
3a5390e902
Reduce threadpool size
2015-05-22 16:14:03 -07:00
Craig Tiller
e594779a0e
Reduce threadpool size
2015-05-22 14:50:03 -07:00
Masood Malekghassemi
25ec4bd699
Add cancellation interop tests for Python
...
Fixes #1591 .
Also fixes a raised-exceptions-during-tests-causes-hanging problem.
2015-05-22 14:20:15 -07:00
Craig Tiller
e6eebeb355
Reduce threadpool size
2015-05-22 14:09:20 -07:00
Nathaniel Manista
1c8f36c40b
Fix mistaken method name: "append", not "add"
...
This defect was originally introduced in Google-internal source control
on 18 August 2014. Wow. Clearly unit test coverage is needed for this
feature.
2015-05-21 00:09:04 +00:00
Jorge Canizales
0dc2927b2e
Merge pull request #1659 from jayantkolhe/my-shiny-new-branch
...
Update README.md to present Python as ready for early adopters.
2015-05-19 11:39:52 -07:00
Jayant Kolhe
6ab757bc94
Update README.md
2015-05-19 11:37:16 -07:00
Nicolas "Pixel" Noble
b98188e826
Upgrading third_party/protobuf to version v3.0.0-alpha-1-150-g7d5cf8d.
2015-05-19 11:30:14 -07:00
Craig Tiller
54478f8562
Merge github.com:grpc/grpc into bye-bye-completion-queue-pie
2015-05-12 14:08:56 -07:00
Yang Gao
a468c36601
Merge pull request #1493 from ctiller/churn-churn-churn-the-api-gently-down-the-stream
...
Completion queue binding for new requests API change
2015-05-12 12:37:24 -07:00
Nathaniel Manista
55cbf02125
Change Python development status to "Alpha"
...
We actually went alpha in the last release cycle several weeks ago but
missed updating this documentation.
2015-05-12 01:45:33 +00:00
Craig Tiller
f508145012
Fix some wrapped languages
2015-05-06 12:42:47 -07:00
Craig Tiller
9eb47ada08
Further fixes
2015-05-05 09:35:15 -07:00
Craig Tiller
5fdcbb7fbe
Merge github.com:grpc/grpc into bye-bye-completion-queue-pie
2015-05-05 08:44:47 -07:00
Craig Tiller
64be9f7a30
C Core API cleanup.
...
Simplify grpc_event into something that can be non-heap allocated.
Deprecate grpc_event_finish.
Remove grpc_op_error - use an int as this is more idiomatic C style.
2015-05-04 14:53:51 -07:00
Yang Gao
c71a9d2b56
clang-format
2015-05-04 00:22:12 -07:00
Masood Malekghassemi
51fe022db0
Merge pull request #1439 from nicolasnoble/python-c89
...
C89-ify the python code.
2015-04-30 15:22:48 -07:00
Nicolas "Pixel" Noble
64237fb02d
C89-ify the python code.
2015-05-01 00:12:26 +02:00
Masood Malekghassemi
9f8682c578
Release Python 0.5.0a2
2015-04-30 14:56:08 -07:00
Masood Malekghassemi
f722b0cd6f
Extern-ify symbols so they don't collide
2015-04-30 13:56:46 -07:00
Masood Malekghassemi
fae9d99e6a
Release Python 0.5.0a1
2015-04-30 12:46:26 -07:00
Masood Malekghassemi
f579e1d176
Migrate Python to batch core API
2015-04-28 10:14:59 -07:00
Craig Tiller
62bc1846b7
Uncomment accidentally commented stuff
2015-04-20 09:58:06 -07:00
Craig Tiller
12088b26d9
Tweak tests
2015-04-20 09:51:27 -07:00
Masood Malekghassemi
41251e4d3a
Fix Python auth and interop test
2015-04-13 16:48:52 -07:00
Masood Malekghassemi
e6b0038223
Add OAuth interop tests to Python
...
Also adds the commands to the grpc_docker shell library script to
support running in docker.
2015-04-09 12:25:39 -07:00
Alexander Staubo
8eac91eaf4
OS X doesn't have librt, so don't link to it.
2015-04-07 15:19:37 -04:00
Tim Emiola
0c665141db
Merge pull request #1217 from soltanmm/pypi
...
Version update to 0.5.0
2015-04-07 11:09:32 -07:00
Masood Malekghassemi
2b34e5adf1
Version update to 0.5.0
2015-04-07 11:05:35 -07:00
Tim Emiola
e4f2f1580d
Merge pull request #1154 from soltanmm/pypi
...
Enable PyPI package management
2015-04-06 16:23:10 -07:00
Masood Malekghassemi
451887ba2c
Enable PyPI package management
2015-04-06 16:19:49 -07:00
Nathaniel Manista
89ad057854
Update the generated Python interop code.
...
https://github.com/grpc/grpc/issues/1150 tracks the fact that these
files shouldn't even exist. For now, however, they do and should be
kept current.
2015-04-06 17:05:50 +00:00
Nathaniel Manista
cd7096deb6
Add a metadata_transformer to the Python stub.
2015-04-06 15:08:36 +00:00
Masood Malekghassemi
660a33e11f
Satisfy C90 pedantry in Python adapter
2015-04-03 11:16:12 -07:00
Nathaniel Manista
52bc8f962a
Merge pull request #1163 from soltanmm/metadata
...
Add metadata support to low-level Python _adapter
2015-04-01 20:56:40 -07:00
Masood Malekghassemi
841f90f86f
Add metadata support to low-level Python framework
2015-04-01 16:50:44 -07:00
Masood Malekghassemi
5bf4d2ae36
Reformat style of using PyObject_HEAD
2015-03-31 15:58:17 -07:00
Nathaniel Manista
f492b16d48
Unify early_adopter construction functions
...
It was awkward for the generated code to call an API that offered
both insecure_server and secure_server as well as insecure_stub and
secure_stub. With this change there is just a single server function
and a single stub function and security is decided based on arguments
passed.
2015-03-30 18:14:52 +00:00
Masood Malekghassemi
89905ac55d
Factor out interface-specific early_adopter code
...
Refactors early_adopter such that interface-specific code is located in
the framework module as a submodule `alpha`.
2015-03-17 18:54:24 -07:00
Nathaniel Manista
de5490c15c
Change remaining "packet" names to "ticket"
...
This renaming has been incrementally happening for the last several
weeks and this change finishes it.
2015-03-18 00:37:19 +00:00
Nathaniel Manista
492dfdb950
Correct a package name in a doc string
2015-03-18 00:23:51 +00:00
Nathaniel Manista
4e6fd0a3ae
Merge the base and base.packets packages
...
They were two halves of the same whole.
2015-03-18 00:22:57 +00:00
Masood Malekghassemi
d942720266
Merge pull request #1031 from nathanielmanistaatgoogle/service_name
...
Add service name to Python early_adopter
2015-03-17 13:45:13 -07:00
Masood Malekghassemi
d8818484fd
Merge pull request #1061 from nathanielmanistaatgoogle/reenable-test
...
Reenable a disabled test method
2015-03-16 20:08:43 -07:00
Nathaniel Manista
9ef929d78d
Reenable a disabled test method
2015-03-17 02:24:37 +00:00
Nathaniel Manista
affe916405
Add at CANCELLATION back-to-front ticket kind
...
This addresses issue #752 .
2015-03-17 01:10:22 +00:00
Nathaniel Manista
e2e443c1d4
Use distinct enums for distinct ticket types
2015-03-17 00:49:36 +00:00
Masood Malekghassemi
afdc24ae2b
Merge pull request #1055 from nathanielmanistaatgoogle/python-refactoring
...
Python refactoring
2015-03-16 17:12:43 -07:00
Nathaniel Manista
8d81365a3c
Iterate over an enum since we can
...
Since enums are themselves iterable there's no need to maintain a list
of the elements of the enum dating from back before the enum when its
values were just independent constants that hung out together.
2015-03-16 23:35:15 +00:00
Nathaniel Manista
ae3e5b53f0
Change managers to pass each other Outcomes
...
This refactoring greatly reduces the base-internal use of packet kinds
and will make much simpler a future change distinguishing front-to-back
packet kinds from back-to-front packet kinds.
2015-03-16 23:30:03 +00:00
Nathaniel Manista
c4fada6e9a
Add service name to Python early_adopter
2015-03-16 23:04:09 +00:00
murgatroid99
2493ea6d4b
Fixed argument types in setup.py
2015-03-16 14:53:19 -07:00
Arkadiusz Bokowy
5d85675b56
Fix port selection for server
...
Commit 31e65be introduces a bug which causes starting server on a randomly
selected port.
2015-03-13 13:47:00 +01:00
Nicolas "Pixel" Noble
8a6b38c9be
Remove a const from a variable that should be mutable.
...
deadline is passed by address to PyArg_ParseTuple to update its value.
However, deadline is a const double, so attempting to change its value
is undefined behavior. Remove the const to have well-defined behavior.
2015-03-12 18:58:59 +01:00
Nathaniel Manista
31e65beaed
Eliminate the Python "assembly" package
...
This completes issue #726 . All that cascading activation stuff just
didn't work out as cleanly as I had hoped it would.
2015-03-10 00:52:32 +00:00
Tim Emiola
f9007045f2
Merge pull request #982 from sahlberg/python-readme
...
README: fix the path to the python requirements.txt file
2015-03-09 15:46:06 -07:00
Ronnie Sahlberg
400349ea4d
README: fix the path to the python requirements.txt file
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2015-03-07 09:33:09 -08:00
Nathaniel Manista
5c87a30c41
Refactoring within Python RPC Framework
...
The assembly and face layers were mostly redundant except that the
assembly layer had far-better interfaces and the face layer had more
of a reason to exist. Now they are merged.
2015-03-07 05:56:15 +00:00
Nicolas Noble
3631e82c89
Merge pull request #835 from ctiller/credit
...
C++ Credentials Rework
2015-03-06 17:40:46 -08:00
Nathaniel Manista
256ccca923
Use server_host_override in interop client
...
Also refactor the interop package to perform client-server interop
testing in a unit test.
2015-03-07 00:18:51 +00:00
Nathaniel Manista
db13f68dab
Add a server_host_override to stub creation
...
This optional value should only be passed in tests.
2015-03-07 00:18:13 +00:00
Nathaniel Manista
a55c0949ee
Python secure server API changes
2015-03-04 00:25:01 +00:00
Nicolas Noble
b9518217f0
Merge pull request #887 from murgatroid99/travis_python
...
Added python tests to .travis.yml
2015-03-02 13:52:41 -08:00