From 0fed4d22e9cb96dfba3f8e6beef4597f28d2b27f Mon Sep 17 00:00:00 2001 From: nstarman Date: Thu, 14 Nov 2024 13:23:29 -0500 Subject: [PATCH 1/2] refactor: consolidate hatch config Signed-off-by: nstarman --- pyproject.toml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 13e565d..844920a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,14 +47,12 @@ dev = [ [project.urls] repository = "https://github.com/beartype/plum" -[tool.hatch.build] -include = ["plum*"] -[tool.hatch.version] -source = "vcs" +[tool.hatch] +version.source = "vcs" +build.include = ["plum*"] +build.hooks.vcs.version-file = "plum/_version.py" -[tool.hatch.build.hooks.vcs] -version-file = "plum/_version.py" # Development tools [tool.coverage.run] From 27845c1ba0e032c61e40a88c6d5cee01b44bd6a9 Mon Sep 17 00:00:00 2001 From: nstarman Date: Thu, 14 Nov 2024 13:24:58 -0500 Subject: [PATCH 2/2] refactor: move build system config more standard loc Signed-off-by: nstarman --- pyproject.toml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 844920a..26e9144 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,3 @@ -[build-system] -requires = ["hatchling>=1.8.0", "hatch-vcs"] -build-backend = "hatchling.build" - [project] name = "plum-dispatch" description="Multiple dispatch in Python" @@ -48,6 +44,11 @@ dev = [ repository = "https://github.com/beartype/plum" +[build-system] +requires = ["hatchling>=1.8.0", "hatch-vcs"] +build-backend = "hatchling.build" + + [tool.hatch] version.source = "vcs" build.include = ["plum*"]