Commit graph

859 commits

Author SHA1 Message Date
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
Jacob Alexander
f7f682c509
Update README.md 2020-02-12 13:34:59 -08:00
Jacob Alexander
c118b78142 Adding pypi badge 2020-02-09 00:42:08 -08:00
Jacob Alexander
ac6cdec2d0
Fixes Issue #202
- __path__ was being set to a string
- It's supposed to be a list of strings or None

For pycapnp pydoc isn't super useful at the module level as pydoc will
scan all the files in the directory and just list them.

Here's thread_capnp for example, notice how it doesn't show any
information on the .capnp files.

Help on package thread_capnp:

NAME
    thread_capnp

PACKAGE CONTENTS
    addressbook
    async_calculator_client
    async_calculator_server
    async_client
    async_reconnecting_ssl_client
    async_server
    async_ssl_client
    async_ssl_server
    calculator_client
    calculator_server
    thread_client
    thread_server

DATA
    Example = <capnp.lib.capnp._InterfaceModule object>
    schema = <capnp.lib.capnp._ParsedSchema object>
2020-02-07 16:44:41 -08:00
Jacob Alexander
fb52a439b8
Merge pull request #201 from p4l1ly/master
fix: package_path is a _NamespacePath, not list
2020-01-22 08:41:55 -08:00
Pavol Vargovcik
f3ae35eedd fix: package_path is _NamespacePath, not list 2020-01-20 17:51:41 +01:00
Jacob Alexander
dd3551f978
Adding poll_once() to TwoPartyServer API
- poll_forever() doesn't allow for checking socket connection to client
  * Need to check for client, if eof received then we can close the
  connection and cleanup pycapnp cpu resources (async tasks)
- Updated async examples to fix bugs
  * Add checking code for socket connection to the client and gracefully
  cleanup resources once the client socket connection closes
  * Instanciate a new TwoPartyServer per connection (allows for multiple
  connections)
- Should resolve Issue #198
2020-01-08 18:06:26 -08:00
Jacob Alexander
ea0858352b
Didn't package the modified wheels correctly 2019-12-27 01:48:13 -08:00
Jacob Alexander
90b25b43dc
Adjusting linux_ tag to manylinux2010_ tag
- Done as a post-processing step using auditwheel
2019-12-27 01:03:55 -08:00