Jason Paryani
fe991e7857
Fix int/long handling for python3 by removing redundant code
2013-08-31 19:30:07 -07:00
Jason Paryani
bf7be6eeba
Update docs for C++ v0.3.0rc5
2013-08-31 19:12:44 -07:00
Jason Paryani
26e112d600
Merge pull request #5 from kentonv/develop
...
Various improvements to test code.
2013-08-31 18:55:27 -07:00
Kenton Varda
1cfea9c846
Add shortcuts for reading from / writing to files. In Python, it doesn't make much sense to force people to muck around with MessageReaders and MessageBuilders since everything is landing on the heap anyway. Instead, let's make it easy: MyType.read[Packed]From(file) reads a file and returns a MyType reader. MyType.newMessage() returns a MyType builder representing the root of a new message. You can call this builder's write[Packed]To(file) method to write it to a file.
2013-08-31 18:19:02 -07:00
Kenton Varda
6731d7eb7d
Store Builders by value rather than allocate them separately on the heap (matches treatment of Readers). v0.3 fixes the bug that made this not work.
2013-08-31 17:22:11 -07:00
Kenton Varda
86b742e91d
Wrap MessageBuilder::setRoot().
2013-08-31 17:07:44 -07:00
Kenton Varda
0478ee3081
Add tests based on TestAllTypes from the C++ test.capnp. Fix problems uncovered in capnp.pyx. Requires capnproto-c++-0.3.0-rc5, as I found a bug in the base library.
2013-08-31 16:44:54 -07:00
Kenton Varda
10c6f40c2e
Implement __str__ and __repr__ for struct and list builders. __str__ uses prettyPrint while __repr__ shows the type name and the low-whitespace stringification. Also implement __repr__ for StructSchema, just because why not?
2013-08-31 15:07:13 -07:00
Kenton Varda
688cecffab
Remove stray print statement.
2013-08-31 13:21:29 -07:00
Jason Paryani
645c49b04d
Merge branch 'release/0.3.9' into develop
2013-08-30 23:14:55 -07:00
Jason Paryani
0529c336c0
Bump version for v0.3.9
2013-08-30 23:14:30 -07:00
Jason Paryani
3772198e82
Fix up docs for new C++ RC
2013-08-30 23:13:20 -07:00
Jason Paryani
76796f8d75
Add forgotten test files
2013-08-29 21:12:39 -07:00
Jason Paryani
f7fbe5bdb3
Change load to use a global SchemaParser. Make structs settable as field
2013-08-29 21:03:00 -07:00
Jason Paryani
1d09bb71dd
Fix docstring typo in PackedFdMessageReader
2013-08-29 18:49:32 -07:00
Jason Paryani
f0aa4d996b
Add docstrings for new functions and _DynamicResizableListBuilder
2013-08-29 18:46:17 -07:00
Jason Paryani
75d4ea0d03
Change travis to only test the test
directory
2013-08-29 17:04:45 -07:00
Jason Paryani
035f15f5e7
Merge branch 'release/0.3.8' into develop
2013-08-29 16:46:29 -07:00
Jason Paryani
a546b3d73e
Bump version for v0.3.8
2013-08-29 16:46:03 -07:00
Jason Paryani
add49178f2
Add regression test
2013-08-29 16:45:31 -07:00
Jason Paryani
680b06977c
Update travis to use tests
2013-08-28 23:30:29 -07:00
Jason Paryani
397357110d
Fix tests
2013-08-28 23:29:48 -07:00
Jason Paryani
892e87b747
Add initial tests
2013-08-28 23:13:38 -07:00
Jason Paryani
7d59df357c
Add _capnp for original Cython module. Meant for testing.
2013-08-28 23:11:59 -07:00
Jason Paryani
97cfef4243
Lowercase schema so it conforms to member naming conventions
2013-08-28 23:11:28 -07:00
Jason Paryani
28b4c442bd
Fix change in C++ API of deleted default constructors for builders
2013-08-28 22:55:18 -07:00
Jason Paryani
4f327d9a31
Update docs for developers
2013-08-28 22:55:10 -07:00
Jason Paryani
64b3baa575
Merge branch 'master' of https://github.com/amluto/capnpc-python-cpp into develop
...
Conflicts:
capnp/capnp.pyx
capnp/capnp_cpp.pxd
2013-08-28 16:09:33 -07:00
Jason Paryani
f001642436
Add testing libraries to requirements.txt
2013-08-28 16:04:36 -07:00
Andy Lutomirski
2fe61781f5
Expose _StructSchema's raw node
2013-08-28 14:46:53 -07:00
Andy Lutomirski
79ae83a6cb
Add some useful _StructSchema, reader, and builder methods
...
This adds:
- _StructSchema.fieldnames
- _DynamicStructBuilder.as_reader
- _DynamicStruct{Reader,Builder}.schema and __dir__
This makes the reader and builder types much easier to navigate in ipython.
2013-08-28 14:34:37 -07:00
Jason Paryani
172c2fd900
Change orphan list semantics a bit
2013-08-27 10:55:06 -07:00
Jason Paryani
448ea93891
Add full orphan functionality. Also, allow special orphan lists
...
that can grow over time.
2013-08-26 22:00:12 -07:00
Jason Paryani
c31d63087a
Finish up adding docstrings to all public classes/methods
2013-08-26 19:27:58 -07:00
Jason Paryani
44bdee0737
Merge branch 'release/0.3.7' into develop
2013-08-26 16:19:02 -07:00
Jason Paryani
aa16a0de44
Merge branch 'release/0.3.7'
2013-08-26 16:18:38 -07:00
Jason Paryani
5546e36b46
Bump version for v0.3.7
2013-08-26 16:18:32 -07:00
Jason Paryani
7b33513bdb
Add a ton of docstrings and add to official docs
2013-08-26 16:16:58 -07:00
Jason Paryani
0856cf413b
Remove a bunch of cruft. Also re-namespace all private methods with _
2013-08-26 15:07:13 -07:00
Jason Paryani
48f8d995a6
Refactor clean various cruft
2013-08-26 14:57:48 -07:00
Jason Paryani
38ba5249c3
Add DynamicOrphan
2013-08-26 14:45:15 -07:00
Jason Paryani
2087cb5861
Update docs
2013-08-26 11:12:56 -07:00
Jason Paryani
413978c8b6
Merge branch 'release/0.3.6' into develop
2013-08-26 10:10:34 -07:00
Jason Paryani
5dcc99ac2f
Merge branch 'release/0.3.6'
2013-08-26 10:10:11 -07:00
Jason Paryani
dc90acd57a
Bump version for v0.3.6
2013-08-26 10:09:53 -07:00
Jason Paryani
5001726e02
Add requirements.txt to MANIFEST. Also add version
...
checking for setuptools to setup.py.
2013-08-26 10:08:34 -07:00
Jason Paryani
42cc239e56
Add intersphinx for linking to python docs
2013-08-26 10:08:16 -07:00
Jason Paryani
a4d2bd6020
Add some docstrings
2013-08-26 10:07:54 -07:00
Jason Paryani
56d4646c01
Add C++ library version check
2013-08-26 00:57:07 -07:00
Jason Paryani
57dc3aa9fe
Fix version detection
2013-08-25 17:56:59 -07:00