From 88856f6621a4136bc3fc7075bf15b0b89c4894d1 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Tue, 9 Aug 2022 11:57:34 -0500 Subject: [PATCH] Use hatch for example projects (#256) --- metakernel_echo/pyproject.toml | 7 +++++-- metakernel_python/pyproject.toml | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/metakernel_echo/pyproject.toml b/metakernel_echo/pyproject.toml index d51f431..d86b21c 100644 --- a/metakernel_echo/pyproject.toml +++ b/metakernel_echo/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["flit_core >=3.2,<4"] -build-backend = "flit_core.buildapi" +requires = ["hatchling >=1.5"] +build-backend = "hatchling.build" [project] name = "metakernel_echo" @@ -21,3 +21,6 @@ content-type = "text/plain" [project.urls] Homepage = "https://github.com/calysto/metakernel/tree/main/metakernel_echo" + +[tool.hatch.version] +path = "metakernel_echo.py" diff --git a/metakernel_python/pyproject.toml b/metakernel_python/pyproject.toml index d89ec0f..8e64a2e 100644 --- a/metakernel_python/pyproject.toml +++ b/metakernel_python/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["flit_core >=3.2,<4"] -build-backend = "flit_core.buildapi" +requires = ["hatchling >= 1.5"] +build-backend = "hatchling.build" [project] name = "metakernel_python" @@ -21,3 +21,6 @@ content-type = "text/plain" [project.urls] Homepage = "https://github.com/calysto/metakernel/tree/main/metakernel_python" + +[tool.hatch.version] +path = "metakernel_python.py"