Skip to content

Commit

Permalink
Pin cython to below version 3, Python 3.11 support (capnproto#320)
Browse files Browse the repository at this point in the history
* Pin cython to below version 3

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

* Add py311 environment

I'm not sure if this is necessary, but 3.11 is out so might as well?
  • Loading branch information
kvelicka committed Jul 21, 2023
1 parent 8f3bfc3 commit db26d60
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Pipfile
Expand Up @@ -4,7 +4,7 @@ url = "https://pypi.org/simple"
verify_ssl = true

[packages]
Cython = "*"
Cython = "<3"
Jinja2 = "*"
black = "*"
flake8 = "*"
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools", "wheel", "pkgconfig", "cython"]
requires = ["setuptools", "wheel", "pkgconfig", "cython<3"]

[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_mode = "auto"
2 changes: 1 addition & 1 deletion requirements.txt
@@ -1,6 +1,6 @@
jinja2
black
cython
cython<3
flake8
setuptools
pkgconfig
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
@@ -1,13 +1,13 @@
[tox]
envlist = py37,py38,py39,py310
envlist = py37,py38,py39,py310,py311
skipsdist = True

[testenv]
deps=
pkgconfig
Jinja2
pytest
cython
cython<3

commands =
python setup.py install
Expand Down

0 comments on commit db26d60

Please sign in to comment.