From 47d078d03f20e08fc6d140a2f914c70412dc66eb Mon Sep 17 00:00:00 2001 From: Martine Lenders <m.lenders@fu-berlin.de> Date: Tue, 18 Jul 2023 10:50:14 +0200 Subject: [PATCH] Pin Cython dependency to <3 DTLSSocket currently does not build with Cython 3.0.0 (released 2023-07-17). --- pyproject.toml | 2 +- setup.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 3bc257f..7cdcf68 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,2 +1,2 @@ [build-system] -requires = ["Cython", "setuptools", "wheel"] +requires = ["Cython<3", "setuptools", "wheel"] diff --git a/setup.py b/setup.py index 74adc1c..b5b701f 100644 --- a/setup.py +++ b/setup.py @@ -41,8 +41,8 @@ setup( url = "https://git.fslab.de/jkonra2m/tinydtls-cython", py_modules = [ "DTLSSocket.DTLSSocket"], cmdclass = {"build_ext": prepare_tinydtls}, - setup_requires = ['setuptools>=18.0','Cython'], - install_requires = ['Cython'], + setup_requires = ['setuptools>=18.0','Cython<3'], + install_requires = ['Cython<3'], ext_modules = [Extension("DTLSSocket.dtls", [ "DTLSSocket/dtls.pyx", -- GitLab