From 54f90357501581ddc64086b878e2903a3b671992 Mon Sep 17 00:00:00 2001 From: Paul Natsuo Kishimoto Date: Mon, 13 Jan 2025 20:16:56 +0100 Subject: [PATCH] Work around astral-sh/uv#9513 / pypa/setuptools#4759 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Switch setuptools → hatchling as build backend. - Switch setuptools_scm → versioningit as version generator. --- pyproject.toml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index c5d3afcf6..be420d1e7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,6 @@ [build-system] -requires = ["build", "setuptools-scm"] +requires = ["hatchling", "versioningit"] +build-backend = "hatchling.build" [project] name = "sdmx1" @@ -69,6 +70,10 @@ exclude_also = [ "if TYPE_CHECKING:", ] +[tool.hatch] +build.targets.wheel.packages = ["sdmx"] +version.source = "versioningit" + [tool.mypy] files = [ "conftest.py", @@ -108,8 +113,5 @@ ignore = ["E501", "W191"] # - .writer.pandas.write_dataset: 12 mccabe.max-complexity = 10 -[tool.setuptools.packages] -find = {} - -[tool.setuptools_scm] -local_scheme = "no-local-version" +[tool.versioningit] +# Empty → default config