From 343f4f21d706971be93757b430bad39e9ed49ed3 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Wed, 11 Dec 2024 14:13:28 +0100 Subject: [PATCH] Enable Python 3.13 --- build-constraints.txt | 6 +----- pyproject.toml | 3 +-- setup.cfg | 2 +- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/build-constraints.txt b/build-constraints.txt index b1cf596ca..94ebdc070 100644 --- a/build-constraints.txt +++ b/build-constraints.txt @@ -1,6 +1,2 @@ # build version constraints for use with wheelwright -numpy==1.15.0; python_version=='3.7' and platform_machine!='aarch64' -numpy==1.19.2; python_version=='3.7' and platform_machine=='aarch64' -numpy==1.17.3; python_version=='3.8' and platform_machine!='aarch64' -numpy==1.19.2; python_version=='3.8' and platform_machine=='aarch64' -numpy>=1.25.0; python_version>='3.9' +numpy>=2.0.0,<3.0.0 diff --git a/pyproject.toml b/pyproject.toml index 2edbadefc..7d72f6b74 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,8 +6,7 @@ requires = [ "preshed>=3.0.2,<3.1.0", "murmurhash>=0.28.0,<1.1.0", "thinc>=8.3.0,<8.4.0", - "numpy>=2.0.0,<2.1.0; python_version < '3.9'", - "numpy>=2.0.0,<2.1.0; python_version >= '3.9'", + "numpy>=2.0.0,<3.0.0" ] build-backend = "setuptools.build_meta" diff --git a/setup.cfg b/setup.cfg index dc2493ed7..2afea1a3b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -30,7 +30,7 @@ project_urls = [options] zip_safe = false include_package_data = true -python_requires = >=3.9,<3.13 +python_requires = >=3.9,<3.14 # NOTE: This section is superseded by pyproject.toml and will be removed in # spaCy v4 setup_requires =