diff --git a/pyproject.toml b/pyproject.toml index 4eac7c559..ca6cbdb01 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,9 @@ [build-system] -requires = ["setuptools", "wheel"] -build-backend = "setuptools.build_meta" +build-backend = "hatchling.build" +requires = [ + "hatch-vcs", + "hatchling", +] [project] name = "sphinx-lint" @@ -33,10 +36,11 @@ repository = "https://github.com/sphinx-contrib/sphinx-lint" [project.scripts] sphinx-lint = "sphinxlint.__main__:main" -[tool.setuptools] -packages = ["sphinxlint"] -include-package-data = false -dynamic.version.attr = "sphinxlint.__version__" +[tool.hatch] +version.source = "vcs" + +[tool.hatch.version.raw-options] +local_scheme = "no-local-version" [tool.black]