From f40326f9b27a4f7ff6c4439d8391d494b0cc6ea7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Gl=C3=A4=C3=9Fle?= Date: Sun, 15 Dec 2024 23:48:26 +0100 Subject: [PATCH] Fix build error introduced by new setuptools version Fixes "TypeError: canonicalize_version() got an unexpected keyword argument 'strip_trailing_zero'" See e.g.: https://github.com/pypa/setuptools/issues/4483 https://github.com/pypa/setuptools/issues/4501 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 738c18fa..8d0df499 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -57,7 +57,7 @@ optional-dependencies.dev = [ [build-system] build-backend = "setuptools.build_meta" requires = [ - "setuptools >= 61.0", + "setuptools[core] >= 61.0", "cython>=3.1.0a1 ; python_version >= '3.13'", # Cython3.1 needed for free-threaded python "cython<3 ; python_version < '3.8'", # Cython3.1 dropped support for python<3.8 "cython ; python_version >= '3.8' and python_version < '3.13'", # no particular requirements