Commit graph

834 commits

Author SHA1 Message Date
Jacob Alexander
08906920d1
Merge pull request #268 from jayvdb/changelog
Update CHANGELOG.md
2021-06-07 16:23:12 -07:00
John Vandenberg
0a2b10ae02 Update CHANGELOG.md 2021-06-08 07:02:29 +08:00
Jacob Alexander
e7b45a0571
Merge pull request #267 from jayvdb/patch-1
README.md: Mention Python.h is needed
2021-06-02 08:46:30 -07:00
John Vandenberg
4c8e68908f
README.md: Mention Python.h is needed 2021-06-02 14:10:31 +08:00
Jacob Alexander
e73261fe84
Merge pull request #263 from jayvdb/bare-except
Fix bare except
2021-06-01 13:30:55 -07:00
John Vandenberg
91550e5533 tox.ini: Update supported Pythons 2021-06-02 03:06:05 +08:00
John Vandenberg
2850b3792d packagingtest.yml: Prevent bare except
Fixes https://github.com/capnproto/pycapnp/issues/254
2021-06-01 16:31:14 +08:00
John Vandenberg
4797654323 remove_event_loop: Allow ignoring specific errors
Replaces a bare except with Exception, and updates the
test case to specify only a single exception that is
allowed to occur.

Related to https://github.com/capnproto/pycapnp/issues/254
2021-06-01 16:30:35 +08:00
John Vandenberg
bd91c52d57 Fix bare exception from str(obj)
There is no test coverage for these exception clauses,
however the invocation of obj.__str__() for client
objects could raise any exception, hence the very broad
exception catch.
2021-06-01 15:51:23 +08:00
John Vandenberg
a20e69dbe9 Replace bare exception from getfullargspec
getfullargspec is based on signature, which is documented to
raise TypeError and ValueError.

Related to https://github.com/capnproto/pycapnp/issues/254
2021-06-01 15:45:57 +08: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
927d8b5128 tox.ini: Use skipdist for faster recreate 2021-06-01 14:02:17 +08:00
Jacob Alexander
8d54f70679
Merge pull request #262 from jayvdb/use-enum
_StructModuleWhich: Use enum
2021-05-31 19:04:47 -07:00
Jacob Alexander
abdc6f1926
Merge pull request #261 from jayvdb/top-level-union-enum
Add Union on top level union messages
2021-05-31 19:02:47 -07: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
581332f9c9
Merge pull request #259 from p4l1ly/memleak_fix
memory leak fix: _SegmentArrayMessageReader: release each view
2021-05-13 08:33:06 -07:00
Pavol Vargovcik
c0109662d2 _SegmentArrayMessageReader: release each view 2021-05-13 13:33:16 +02:00
Jacob Alexander
73e83c91ee
Merge pull request #255 from jayvdb/delint
Remove many pycodestyle warnings
2021-05-03 04:07:40 -07:00
John Vandenberg
8c15feb4eb Remove many lint warnings
Mostly whitespace changes, with max-line-length set to 120
and double-quotes used, adopting black settings.

Related to https://github.com/capnproto/pycapnp/issues/128
2021-05-03 17:02:30 +08:00
Jacob Alexander
7556b102c3
Merge pull request #253 from jayvdb/hook-if-file-exists
Dont crash if __file__ is not set by importer
2021-04-29 21:03:03 -07:00
John Vandenberg
a730554030 Dont crash if __file__ is not set by importer 2021-04-30 10:41:15 +08:00
Jacob Alexander
ab976847c9
Merge pull request #250 from timthelion/cbool
bool → cbool (probably just a typo)
2021-04-25 18:59:12 -07:00
Timothy Hobbs
0353044587
bool → cbool (probably just a typo)
Fixes https://github.com/capnproto/pycapnp/issues/249
2021-04-25 21:51:12 +02:00
Jacob Alexander
125e9713ca
Merge pull request #246 from SergeyVystoropskyi/master
minor bug fixes for python3 + .c++ file support that is not destructive
2021-04-08 08:41:06 -07:00
Sergii Vystoropskyi
31ffe4ae2b minor bug fixes for python3 + .c++ file support that is not destructive 2021-04-08 00:53:45 -07:00
Jacob Alexander
3ebf8500d8
Merge pull request #244 from jayvdb/sdist
MANIFEST.in: Add test data
2021-04-04 10:13:28 -07:00
John Vandenberg
b0bff9c048 MANIFEST.in: Add test data 2021-04-04 17:01:19 +08:00
Jacob Alexander
1075ce005c
Merge pull request #239 from litghost/add_pyproject
Add pyproject.yaml.
2020-12-16 13:12:27 -08:00
Keith Rothman
4381e1f299 Add pyproject.yaml.
This file describes the dependencies needed to load the `setup.py` file.

Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2020-12-16 12:21:58 -08:00
Jacob Alexander
9bf79025dc
Merge pull request #238 from litghost/fix_struct_schema_inhertance
Add missing inhertance to _Schema for _StructSchema.
2020-12-14 12:01:45 -08:00
Keith Rothman
480a079a16 Add missing inhertance to _Schema for _StructSchema.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2020-12-14 11:11:38 -08:00
Jacob Alexander
a4ef16e831
Fixing flake8 linting errors
- Enabling builds to fail on simple lint failures now
2020-11-20 23:38:13 -08:00
Jacob Alexander
2e6d7be1dd
Changing PyPi classifier from Beta to Stable 2020-11-20 13:55:19 -08:00
Jacob Alexander
d6e73c8d75
Adding missing Python 3.9 category 2020-11-20 13:02:54 -08:00
Jacob Alexander
50d3a8e964
Preparing for v1.0.0 release 2020-11-20 11:50:09 -08:00
Jacob Alexander
ee16a83912
Adding note that capnproto-0.7.0 will also work
capnproto-0.8.0 should be the default though.
2020-11-20 00:41:32 -08:00
Jacob Alexander
3de13c3718
Updating simple example servers to not use run_forever (can't Ctrl+c)
- Adding xfail to simple servers as they tend to not like certain
  versions of python when called repeated for testing
2020-11-20 00:17:52 -08:00
Jacob Alexander
b16f35b977
Adding Python 3.9 build 2020-11-03 21:39:21 -08:00
Jacob Alexander
528bda300a
Updating LICENSE file and adding to setup.cfg 2020-10-16 21:51:08 -07:00
Jacob Alexander
cb32ddc320
Update CHANGELOG.md 2020-06-14 21:25:30 -07:00
Jacob Alexander
5e8ccba536
Updating docs for v1.0.0b2
- Full cleanup of all the docs
- General sphinx housekeeping
- Updated all the old/bad links
- More reliable tests
- Updated Changelog
- Removed dead/deprecated code
- Added documentation generation test
2020-06-14 17:05:45 -07:00
Jacob Alexander
6532ca571d Adding SSL version of the calculator example
- Used to test asyncio SSL on Windows mainly
- Skipping asyncio thread tests on Windows (due to getTimer wrapper bug
  on Windows)
2020-06-10 14:33:45 -07:00
Jacob Alexander
745887cee0 Typo from earlier commit (capnproto-0.8.0 update) 2020-06-09 00:27:43 -07:00
Jacob Alexander
b5cd22d569 Adding instructions to run the benchmarks
- Note that these tests don't test RPC, only data format
2020-06-09 00:04:07 -07:00
Jacob Alexander
49fd4854d8 Minor code cleanup
- Reducing linter errors
- Removing old Python 2-only code (__future__ print)
2020-06-08 23:51:07 -07:00
Jacob Alexander
255119b838 Updating to capnproto v0.8.0
- Includes some test stabilization
- Fixes manylinux2010 build issues (linker flag order due to old gcc)
- More rigorous python setup.py clean
- Requires capnproto v0.8.0 or greater
- Including system libcapnp include path for import (e.g. import
  stream_capnp)
- Bundle libcapnp .capnp files when not using system libcapnp
- Removing more distutils usage. Now using pkg-config to determine the
  system version of libcapnp (mainly for Linux, but should work on macOS
  with brew)
- Removed dead code

Resolves issues #215 #216 #217
Lots of fixes for Issue #218 (all sorts of retry methods needed for
GitHub Actions)
2020-06-08 11:49:17 -07:00
Jacob Alexander
7bfd5b962b
Updating libcapnp-url in README 2020-06-08 11:14:47 -07:00
Jacob Alexander
203dcbbf10
Merge pull request #221 from astronouth7303/patch-1
Update Installation Docs
2020-06-03 22:14:10 -07:00