capnproto / pycapnp

Cap'n Proto serialization/RPC system - Python bindings
BSD 2-Clause "Simplified" License
458 stars 125 forks source link

Pin cython to below version 3, Python 3.11 support #320

Closed kvelicka closed 12 months ago

kvelicka commented 12 months ago

Cython 3 includes backwards incompatible changes so it's no longer possible to install pycapnp from source.

I'm not sure if that tox file change is enough to start running CI for 3.11, but I'm much less worried about that part than the broken builds.

Fixes #319

haata commented 12 months ago

tox.ini isn't used within GitHub Actions so I believe we already have Python 3.11 support.

v1.3.0 already has python 3.11 wheels. https://pypi.org/project/pycapnp/#files

But your fix is appreciated regardless :+1:

kvelicka commented 12 months ago

Yep apologies for ignorance, I'm not quite up to date with the myriad of ways in which python packaging/github actions are configured 😅

alex-reilly-pronto commented 12 months ago

Is there any way to fix this for older versions as well? We're running 1.1.0

kvelicka commented 11 months ago

Would it be possible to release a new version with these pins on PyPI?

fungs commented 6 months ago

I'm running into this issue with a project on Python 3.12. Pip install fails as there is no prebuilt wheel for it, I assume. For now, I got around it using the cython constraint workaround in #319 and bundling upstream capnproto v1.0.2 into the package build.

However, the easier way to fix the for my development stage now was to install the beta like pip install pycapnp==2.0.0b2.

haata commented 5 months ago

I'll try to push the 2.0.0 in the next few days.