Commit Graph

604 Commits

Author SHA1 Message Date
Jason Paryani
51c4bb1bb6 Add tuple setting test 2017-04-09 20:57:33 -07:00
Jason Paryani
e4db5e6d66 Add exception raising tests for traversal_limit_in_words 2017-04-09 17:38:14 -07:00
Jason Paryani
073a503add Merge pull request #136 from ternaris/lists-from-tuples
support initializing DynamicListBuilder from tuple
2017-04-09 17:36:35 -07:00
Jason Paryani
3f04134e72 Merge pull request #139 from tundra/develop
Pass options correctly through from_bytes to FlatArrayMessageReader
2017-04-09 17:11:20 -07:00
Jason Paryani
1acb2b8ad3 Merge pull request #135 from asilversempirical/patch-1
Update binary package docs
2017-04-09 16:56:45 -07:00
Jason Paryani
5eec70231a Merge pull request #126 from asilversempirical/pass_reader_opts_clean
Let TwoParty Clients and Servers take ReaderOptions
2017-04-09 16:52:36 -07:00
Jason Paryani
b942b37fba Merge pull request #123 from ternaris/class-attributes
include class attributes in __dir__
2017-04-09 16:51:27 -07:00
Jason Paryani
7617e49d9e Merge pull request #121 from benizl/develop
Rework logic to determine whether to use bundled or system libcapnp.
2017-04-09 16:50:21 -07:00
Christian Plesner Hansen
34385afbbd Pass options correctly through from_bytes to FlatArrayMessageReader 2017-02-15 12:02:41 +01:00
Florian Friesdorf
1bfc20fefb support initializing DynamicListBuilder from tuple 2017-02-09 02:16:25 +01:00
asilversempirical
f47d21d1bb Update binary package docs
Fixes https://github.com/jparyani/pycapnp/issues/134
2017-02-07 08:51:31 -05:00
Alex Silverstein
0382beb26a Let TwoParty Clients and Servers take ReaderOptions 2017-01-22 02:25:58 +00:00
Florian Friesdorf
f2c7f61b7d include class attributes in __dir__
This enables tab completion for methods as well as fieldnames.
2017-01-20 11:00:11 +01:00
Ben Nizette
2ee80532a0 Rework logic to determine whether to use bundled or system libcapnp.
The current logic unconditionally tries to build /and run/ a small
executable linked against libcapnp. The 'run' step is ostensibly
to get the current library version number, however this number isn't
actually used anywhere.

More importantly, this breaks cross-compiling completely as in that
mode you can't run an executable that's just been built.

One option would be to fix the build scripts for cross-compiling but
this is relatively complex. This patch implements a simple change
that basically boils down to '--force-system-libcapnp' actually
forcing that, skipping the build and run tests. The assumption is
that if you're cross-compiling then you're most likely to be building
the library yourself anyway and if you're specifying that flag, then
you know what you're doing.
2017-01-09 13:07:08 +11:00
Jason Paryani
455ffdf4ab Merge pull request #120 from madeleine-empirical/hashable-enums
make enums hashable
2016-12-06 11:51:51 -08:00
Madeleine Thompson
93ea35e558 make enums hashable 2016-12-05 22:43:09 -05:00
Jason Paryani
468375d566 Fix benchamrks 2016-08-31 14:03:19 -07:00
Jason Paryani
0a941a9e06 Switch to using setuptools 2016-08-31 14:03:19 -07:00
Jason Paryani
fef4747b6f Merge pull request #113 from mokomull/fix_compiler
customize_compiler is recommended by distutils doc
2016-08-22 11:30:29 -07:00
Matt Mullins
82a53013bd customize_compiler is recommended by distutils doc
On Unix platforms, environment variables such as CFLAGS, LDFLAGS are not
honored if this is not called.
2016-08-20 15:00:05 -07:00
Jason Paryani
97824b957b Add clear_write_flag method to builders
Fixes #111
2016-08-09 12:26:18 -07:00
Jason Paryani
d85200cee3 Remove recursive loop in KjException.type
Fixes #108
2016-07-29 11:59:02 -07:00
Jason Paryani
4488194f59 Make event loop be lazy initialized for real 2016-07-29 11:57:19 -07:00
Jason Paryani
3efb3f41f0 Bump version to v0.5.9 and update CHANGELOG 2016-07-07 12:15:14 -07:00
Jason Paryani
da233c46ad Make the event loop be lazy initialized
Fixes #101
2016-07-07 12:11:42 -07:00
Jason Paryani
50a6b745f7 Merge pull request #104 from gcv/segment-serialization
Add support for segment serialization
2016-06-24 17:20:56 -07:00
Constantine Vetoshev
41c418aa1c Use PyObject_AsReadBuffer instead of bytes(). 2016-06-24 16:43:57 -07:00
Constantine Vetoshev
e8a8d26260 Fix memory leak. 2016-06-24 14:03:20 -07:00
Constantine Vetoshev
f703a7f099 Update segment (de)serialization documentation. 2016-06-24 13:28:35 -07:00
Constantine Vetoshev
5a63dacf14 Disable segment serialization test on PyPy (for now). 2016-06-24 13:28:35 -07:00
Constantine Vetoshev
fb8a3d8ac2 Add docstrings to (de)serialization functions. 2016-06-24 13:28:26 -07:00
Constantine Vetoshev
70e4e2d930 Add ReaderOptions support to segment (de)serialization. 2016-06-24 13:25:27 -07:00
Constantine Vetoshev
42ed1e819f Update documentation to cover segments. 2016-06-23 14:42:45 -07:00
Constantine Vetoshev
73d6c5dc10 Add segment (de)serialization round-trip test. 2016-06-23 14:32:23 -07:00
Constantine Vetoshev
09705b6d1f Add support for segment (de)serialization. 2016-06-23 14:32:18 -07:00
Jason Paryani
032713f8b9 Add asserts to test_response.py 2016-06-17 13:53:48 -07:00
Jason Paryani
5ffe7eb2f6 Fix response objects not referencing parents correctly
Fixes #103
2016-06-17 13:50:42 -07:00
Jason Paryani
e4c128de61 Test large reads 2016-06-17 13:50:26 -07:00
Jason Paryani
239286d4ac Bump version to v0.5.8 and update CHANGELOG 2016-05-27 17:21:24 -07:00
Jason Paryani
589400f53a Fix build problem with Cython v0.24
Fixes #97
2016-05-27 13:53:09 -07:00
Jason Paryani
b45152dba2 Skip failing PyPy test due to travis's outdated version 2016-03-08 11:29:38 -08:00
Jason Paryani
31ecf0a95e Include the changelog in the manifest
Fixes #91
2016-03-08 11:27:01 -08:00
Jason Paryani
b1f44fbc2a Merge pull request #94 from novas0x2a/unicode-input
Unicode input
2016-03-04 16:15:44 -08:00
Mike Lundy
7164f04a7c Eliminate outdated function 2016-03-04 13:52:14 -08:00
Mike Lundy
302fc64041 Include the traceback in exceptions
This makes debugging into the cython side of the code much easier.
2016-03-04 13:52:14 -08:00
Mike Lundy
8c3c57aa32 Make sure to encode to utf-8, not the default encoding
This allows text fields to take unicode strings under python 2.
2016-03-04 13:50:43 -08:00
Jason Paryani
c625981eb6 Check version info the old way because of python 2.6 2016-03-04 13:12:01 -08:00
Jason Paryani
2be308db27 Throw an exception on invalid BufferView instantiation
Also adjust tests to skip mmap under Python 2.
2016-03-04 12:42:45 -08:00
Jason Paryani
aabd61301c Fix travis builds
Stop running `make check` for capnproto. It has some networking test
problem with travis.
2016-03-04 11:04:58 -08:00
Jason Paryani
5d69eda752 Add --libcapnp-url to allow installing arbitrary libcapnp versions 2016-02-17 17:24:27 -08:00