From 864325af879780141ee4dd1199071cbca43af149 Mon Sep 17 00:00:00 2001 From: Miro <200482516+Mirochill@users.noreply.github.com> Date: Mon, 25 May 2026 15:15:29 +0200 Subject: [PATCH] Use Cython 3 on Python 3.13+ --- requirements.txt | 3 ++- setup.py | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 07a74f9..bfe21f2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,2 @@ -Cython==0.29.20 +Cython==0.29.20; python_version < "3.13" +Cython>=3.0.12,<4; python_version >= "3.13" diff --git a/setup.py b/setup.py index 337ad4c..82ee1d3 100644 --- a/setup.py +++ b/setup.py @@ -33,7 +33,10 @@ description="python代码一键加密", long_description=long_description, long_description_content_type="text/markdown", - install_requires=["Cython==0.29.20"], + install_requires=[ + "Cython==0.29.20; python_version < '3.13'", + "Cython>=3.0.12,<4; python_version >= '3.13'", + ], entry_points={"console_scripts": ["jmpy = jmpy.cmdline:execute"]}, url="https://github.com/Boris-code/jmpy.git", packages=packages,