From 3505f08ac1b530d0a2fae2f489c53541e2d13bb5 Mon Sep 17 00:00:00 2001 From: Ting Sun Date: Thu, 3 Jul 2025 11:00:11 +0100 Subject: [PATCH] Fix setuptools_scm configuration for version detection - Add [tool.setuptools] section to properly configure package discovery - Add [tool.setuptools_scm] section (though empty for now, using defaults) - This ensures the package version is correctly detected from git tags - Fixes the "Metadata is missing required fields: Name, Version" error The build was failing because setuptools_scm wasn't properly configured in pyproject.toml, causing the package to be built with version 0.0.0. --- pyproject.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 44c27a0..3642b8c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,3 +19,8 @@ dependencies = [ readme = "README.md" requires-python = ">=3.7" dynamic = ["version"] + +[tool.setuptools] +packages = ["umep-reqs"] + +[tool.setuptools_scm]