Commit Graph

592 Commits

Author SHA1 Message Date
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
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
Jason Paryani
f78ca108f6 Merge pull request #89 from bpiwowar/develop
Support mmap objects for reading with from_bytes
2016-02-08 12:11:46 -08:00
Benjamin Piwowarski
b7a9d05e5e Support mmap objects for reading with from_bytes 2016-02-05 17:32:40 +01:00
Jason Paryani
2516e3e4f1 Change read_multiple and read_multiple_packed to copy by default
Add a `skip_copy` paramter for people that know what they're doing and
need higher performance.

Fixes #87
2015-12-04 16:31:26 -08:00
Jason Paryani
b863e9b9d6 Fix mistakenly discarding the file parameter on reads
Fixes #82
2015-12-04 16:01:28 -08:00
Jason Paryani
1bef2bc044 Merge pull request #86 from kdienes/develop
Add reraise_kj_exception to the prettyPrint functions.
2015-11-15 15:46:40 -08:00
Klee Dienes
8436a1908d Add reraise_kj_exception to the prettyPrint functions. 2015-11-14 18:51:20 -05:00
Jason Paryani
a179cfc480 Merge pull request #84 from E8-Storage/develop
Fix KjException init (missing wrapper).
2015-10-21 11:05:57 -07:00
Sergei Dyshel
4e6f381855 Fix KjException init (missing wrapper). 2015-10-21 15:11:43 +03:00
Jason Paryani
3357771b39 Fixes for changes in cython v0.22.1 2015-07-13 10:57:55 -07:00
Jason Paryani
b57f0f0df8 Add result_type to InterfaceMethodSchema 2015-07-12 12:21:29 -07:00
Jason Paryani
cf7a50f1d5 Merge branch 'feature/v0.5.7' into develop 2015-06-16 12:08:28 -07:00
Jason Paryani
e67e3ce04c Update changelog for v0.5.7 2015-06-16 12:08:11 -07:00