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,