Migrate from setuptools + setuptools_scm to hatchling + hatch-vcs
[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.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.hatch]
+version.source = "vcs"
-[tool.setuptools_scm]
+[tool.hatch.version.raw-options]
local_scheme = "no-local-version"
+
+[tool.isort]
+profile = "black"
