From f8d8b81e9fc8e4b81c27b51927069376ebc211b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Wed, 18 May 2022 23:21:01 +0200 Subject: [PATCH] Use hatch for packaging --- pyproject.toml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index ec4761f..6fe59a0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,9 @@ [build-system] -requires = ["flit_core >=3.4,<4"] -build-backend = "flit_core.buildapi" +requires = ["hatchling", "hatch-vcs"] +build-backend = "hatchling.build" [project] name = "manifestoo" -version = "0.4.3.dev" description = "A tool to reason about Odoo addons manifests" authors = [ {name = "Stéphane Bidoul", email = "stephane.bidoul@acsone.eu"} @@ -26,6 +25,7 @@ dependencies = [ "importlib_metadata ; python_version<'3.8'", ] requires-python = ">=3.6" +dynamic = ["version"] [project.optional-dependencies] test = [ @@ -50,8 +50,13 @@ Source = "https://github.com/sbidoul/manifestoo" manifestoo = "manifestoo.main:app" moo = "manifestoo.main:app" -[tool.flit.sdist] -exclude = [".github/"] +[tool.hatch.version] +source = "vcs" + +[tool.hatch.build] +exclude = [ + "/.github", +] [tool.isort]