From 6d2789452e23141be61b04b22afe6f3c065add4e Mon Sep 17 00:00:00 2001 From: Adriane Boyd Date: Thu, 10 Jun 2021 11:03:30 +0200 Subject: [PATCH] Restrict cython to <3.0 (#8337) --- pyproject.toml | 2 +- requirements.txt | 2 +- setup.cfg | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 3e34a0b2d..7a0e34376 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [build-system] requires = [ "setuptools", - "cython>=0.25", + "cython>=0.25,<3.0", "cymem>=2.0.2,<2.1.0", "preshed>=3.0.2,<3.1.0", "murmurhash>=0.28.0,<1.1.0", diff --git a/requirements.txt b/requirements.txt index dda9c7773..46337389c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -22,7 +22,7 @@ setuptools packaging>=20.0 typing_extensions>=3.7.4.1,<4.0.0.0; python_version < "3.8" # Development dependencies -cython>=0.25 +cython>=0.25,<3.0 pytest>=5.2.0 pytest-timeout>=1.3.0,<2.0.0 mock>=2.0.0,<3.0.0 diff --git a/setup.cfg b/setup.cfg index 6baa2f7bb..0928c8db0 100644 --- a/setup.cfg +++ b/setup.cfg @@ -31,7 +31,7 @@ zip_safe = false include_package_data = true python_requires = >=3.6 setup_requires = - cython>=0.25 + cython>=0.25,<3.0 numpy>=1.15.0 # We also need our Cython packages here to compile against cymem>=2.0.2,<2.1.0