diff --git a/pyproject.toml b/pyproject.toml index 3e9af83..461b858 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,8 +1,8 @@ [build-system] -build-backend = "setuptools.build_meta" +build-backend = "hatchling.build" requires = [ - "setuptools>=61.2", - "setuptools-scm", + "hatch-vcs", + "hatchling", ] [project] @@ -57,17 +57,11 @@ Homepage = "https://github.com/pylast/pylast" Source = "https://github.com/pylast/pylast" +[tool.hatch] +version.source = "vcs" + +[tool.hatch.version.raw-options] +local_scheme = "no-local-version" + [tool.isort] profile = "black" - -[tool.setuptools] -package-dir = {"" = "src"} -license-files = ["LICENSE.txt"] -include-package-data = false - -[tool.setuptools.packages.find] -where = ["src"] -namespaces = false - -[tool.setuptools_scm] -local_scheme = "no-local-version"