From 6596f84389b4eeadbafdfe933091559f0b0c6ed9 Mon Sep 17 00:00:00 2001 From: Yegor Yefremov Date: Fri, 23 Oct 2026 06:08:41 +0200 Subject: [PATCH] setup.py: drop use_scm_version in the fallback The fallback setup() call sets use_scm_version to False. But when setuptools_scm is installed, its use_scm_version keyword handler is still invoked, and since setuptools_scm 8.0 it only accepts True, a dict or a callable: File ".../setuptools_scm/_integration/setuptools.py", line 174, in get_keyword_overrides assert isinstance(value, dict), "version_keyword expects a dict or True" AssertionError: version_keyword expects a dict or True The fallback is always taken when building through a PEP 517 frontend such as pypa/build, because setuptools' build_meta backend raises SetupRequirementsError for the setup_requires entry. So remi can't be built whenever setuptools_scm is installed in the build environment. Remove the keyword instead, so that the static version is used. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Yegor Yefremov --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 263e7aee..d92cd86f 100644 --- a/setup.py +++ b/setup.py @@ -27,5 +27,5 @@ setup(**params) except: del params['setup_requires'] - params['use_scm_version'] = False + del params['use_scm_version'] setup(**params)