From 490ea95363a3331aa89ee8fc9ef0b9b833c554a4 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Wed, 22 Apr 2026 07:52:03 +0200 Subject: [PATCH] build: replace setuptools with hatchling Our team standardizes on hatchling as a lightweight build backend. Replace setuptools + setuptools_scm with hatchling + hatch-vcs. Co-Authored-By: Claude Opus 4.6 --- pyproject.toml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 4bd8e7f..f30fbcb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,8 +1,8 @@ # SPDX-License-Identifier: Apache-2.0 [build-system] -requires = ["setuptools>=64", "setuptools_scm>=8"] -build-backend = "setuptools.build_meta" +requires = ["hatchling>=1.25", "hatch-vcs>=0.4"] +build-backend = "hatchling.build" [project] name = "elfdeps" @@ -74,7 +74,8 @@ exclude_lines = [ "if typing.TYPE_CHECKING", ] -[tool.setuptools_scm] +[tool.hatch.version] +source = "vcs" [tool.ruff] target-version = "py311"