Skip to content

Commit db26d60

Browse files
authored
Pin cython to below version 3, Python 3.11 support (#320)
* 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?
1 parent 8f3bfc3 commit db26d60

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Pipfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ url = "https://pypi.org/simple"
44
verify_ssl = true
55

66
[packages]
7-
Cython = "*"
7+
Cython = "<3"
88
Jinja2 = "*"
99
black = "*"
1010
flake8 = "*"

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["setuptools", "wheel", "pkgconfig", "cython"]
2+
requires = ["setuptools", "wheel", "pkgconfig", "cython<3"]
33

44
[tool.pytest.ini_options]
5-
asyncio_mode = "auto"
5+
asyncio_mode = "auto"

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
jinja2
22
black
3-
cython
3+
cython<3
44
flake8
55
setuptools
66
pkgconfig

tox.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[tox]
2-
envlist = py37,py38,py39,py310
2+
envlist = py37,py38,py39,py310,py311
33
skipsdist = True
44

55
[testenv]
66
deps=
77
pkgconfig
88
Jinja2
99
pytest
10-
cython
10+
cython<3
1111

1212
commands =
1313
python setup.py install

0 commit comments

Comments
 (0)