Commit Graph

767 Commits

Author SHA1 Message Date
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
Jamie Bliss
47adaf603b Update Installation
Apparently, compiling capnproto separately isn't required anymore.

Update the docs to match.
2020-06-01 16:20:11 -04:00
Jacob Alexander
9aa3d981f1 Merge pull request #213 from fvannee/master
Avoid infinite loop on to_dict() for RPC results
2020-04-29 08:44:04 -07:00
Floris van Nee
8bbb0f47ae Avoid infinite loop on to_dict() for RPC results 2020-04-24 19:49:50 +02:00
Jacob Alexander
bca832c61d Merge pull request #207 from litghost/move_from_public_to_api
Move exported functions used in capabilityHelper.h from extern "C" to api
2020-03-02 08:45:22 -08:00
Keith Rothman
dbc9debbbf Move exported functions used in capabilityHelper.h from extern "C" to api.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2020-03-02 06:49:59 -08:00
Jacob Alexander
e0d3618aa6 Updating to checkout@v2
- Fixes some rebuild issues with GitHub Actions
2020-03-01 16:25:03 -08:00
Jacob Alexander
9de385900a Merge pull request #205 from litghost/remove_circular_imports
Rearrange declarations to avoid circular imports.
2020-02-28 18:43:16 -08:00
Jacob Alexander
8e783c53ff Merge pull request #206 from litghost/rename_promise
Rename capnp.lib.capnp.Promise to capnp.lib.capnp._Promise.
2020-02-28 18:35:15 -08:00
Keith Rothman
20d6c4eef7 Rename capnp.lib.capnp.Promise to capnp.lib.capnp._Promise.
This is to prevent aliasing with capnp.includes.capnp_cpp.Promise. This
aliasing is problematic if capnp/lib/capnp.pxd uses the template definition
from capnp.includes.capnp_cpp.Promise.

Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2020-02-28 16:53:52 -08:00
Keith Rothman
3b2eedb741 Rearrange declarations to avoid circular imports.
Circular imports make import pxd's order sensitive, and violating this
order results in hard to understand errors.  As far as I can tell, this
rearrangement removes the circular nature, and has no other side
affects.

Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2020-02-28 16:43:28 -08:00
Jacob Alexander
970d443911 Merge pull request #204 from litghost/fix_imports
Make imports absolute instead of relative.
2020-02-28 12:12:37 -08:00
Keith Rothman
707cda97f4 Make imports absolute instead of relative.
This enables Cython modules outside of pycapnp to use these imports.

Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2020-02-28 12:02:59 -08:00
Jacob Alexander
efadcab1c2 Merge pull request #203 from fHachenberg/fHachenberg-refined-quickstart-note
Refined note in quickstart doc
2020-02-13 19:52:02 -08:00
Fabian Hachenberg
fedbd877ff fixed wrong rst syntax 2020-02-13 22:47:30 +01:00
Fabian Hachenberg
8cef29f3ed Fixed link markup, refined link label 2020-02-13 22:46:31 +01:00
Fabian Hachenberg
e914dc8251 Refined description of what happens when you call init multiple times
The original note was misleading in that it implied an actual memory leakage (in the common sense of the term). This is not the case though since the memory is left as dead space in the message but is always correctly freed upon freeing the arena.
2020-02-13 22:43:54 +01:00
Jacob Alexander
432123edd4 Update README.md 2020-02-12 13:35:27 -08:00