Madhava Jay
ea70dac5cb
Fixed black issues
...
- Disabled flake8 checks from blocking CI
- Added python 3.10 to packaging and manylinux
2022-04-06 13:32:52 +10:00
Jacob Alexander
6e7fffd7de
Applying black formatting
...
- Fixing flake8 configuration to agree with black
- Adding black validation check to github actions
2021-10-01 11:12:21 -07:00
John Vandenberg
0f6df849cd
Refine exception invoking which on non-union type
...
Related to https://github.com/capnproto/pycapnp/issues/254
2021-06-01 15:40:35 +08:00
John Vandenberg
c179c72087
Allow enum to be used with .init
2021-05-31 19:31:53 +08:00
John Vandenberg
1795cac230
_StructModuleWhich: Use enum
2021-05-31 18:57:40 +08:00
John Vandenberg
0c904443bd
Add Union on top level union messages
...
Closes https://github.com/capnproto/pycapnp/issues/247
2021-05-31 16:33:10 +08:00
Jacob Alexander
fc75e4083d
Fixing remaining flake8 lint warnings
2019-12-11 22:44:44 -08:00
Jacob Alexander
b3021e4f6b
Fixing flake8 warnings and errors
...
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --exclude benchmark
Excluding the benchmark directory (due to protobuf generated files)
Also removing some Python2 specific code
2019-09-27 00:15:13 -07:00
Jason Paryani
51c4bb1bb6
Add tuple setting test
2017-04-09 20:57:33 -07:00
Kamal Marhubi
b31b53b6a7
Add test for setting a field from a list
2015-05-30 19:45:58 -04:00
Jason Paryani
a5bf532d53
Add init method to lists
2015-05-04 11:00:25 -07:00
Jason Paryani
b9c9c6bc5c
Fix for upstream changes in kj::Exception
...
* Change from using Nature/Durability to Type
* Prefer to raise KjException directly instead of Value/RuntimError.
* Will still raise AttributeError appropriately.
2014-11-30 14:27:10 -08:00
Jason Paryani
b7fd9b526d
Fix typo in test_struct
2014-10-27 16:31:55 -07:00
Jason Paryani
1d19d9f407
Handle ordered option failing under Python 2.6
2014-10-27 16:11:19 -07:00
Jason Paryani
ac5590cfc1
Add tests for verbose and ordered options for to_dict
2014-10-27 15:37:38 -07:00
Jason Paryani
ea1be42252
Add {_get,_set,_has,_init}_by_field methods for faster field access
2014-09-03 15:20:26 -07:00
Jason Paryani
5befda532f
Fix test_to_dict_enum under Python3
2014-06-26 01:07:16 -07:00
Jason Paryani
3a0eaacc9d
Fix to_dict not converting enums to strings
...
Fixes #28
2014-06-26 00:53:16 -07:00
Jason Paryani
1c4b8d0135
Skip failing test if LIBCAPNP_VERSION < v0.5.0
2014-02-18 17:48:43 -08:00
Jason Paryani
307fcbf4e7
Fix problem with uninitialized unions in _from_dict
2014-02-18 17:34:34 -08:00
Jason Paryani
dceb437c44
Update tests with new which enum
2014-02-13 22:08:15 -08:00
Jason Paryani
68a45a194b
Add test showing off using a dictionary in new_message
2014-01-15 10:37:25 -08:00
Jason Paryani
f89af26fc3
Fix tests for change in exception type
2014-01-14 09:44:21 -08:00
Jason Paryani
e7e95abeed
Allow setting of fields with python dicts.
...
This change was a bit complicated because of a bug in cython fused
types. I had to flatten DynamicStruct.Builder to DynamicStruct_Builder
in order to get fused template specialization working.
2014-01-13 16:28:05 -08:00
Jason Paryani
540ed4cdba
Don't force utf8 encoding for unicode strings
2013-12-18 21:57:57 -08:00
Jason Paryani
20d7104111
Fix another typo in test
2013-12-18 13:10:33 -08:00
Jason Paryani
34e98881b1
Fix failing test
2013-12-18 13:06:52 -08:00
Jason Paryani
e9a8354676
Fix problems with null characters in Text/Data fields. Fixes #19
2013-12-18 12:39:56 -08:00
Jason Paryani
0892a63b23
Change tests to use tempfile
2013-12-09 17:16:39 -08:00
Jason Paryani
83e30f5a30
Add from_dict
2013-09-03 01:00:52 -07:00
Jason Paryani
c900690b96
Fix bug in exception handling for which(). Also standardize exceptions
...
to always be ValueError. Add the beginnings of to_dict()
2013-09-03 00:25:32 -07:00