Skip to content

Commit e47c7e1

Browse files
authored
Switch from setuptools to hatchling in pyproject.toml.
1 parent 946ac53 commit e47c7e1

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

pyproject.toml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
[build-system]
2-
requires = ["setuptools", "wheel"]
3-
build-backend = "setuptools.build_meta"
2+
build-backend = "hatchling.build"
3+
requires = [
4+
"hatch-vcs",
5+
"hatchling",
6+
]
47

58
[project]
69
name = "sphinx-lint"
@@ -33,10 +36,11 @@ repository = "https://github.com/sphinx-contrib/sphinx-lint"
3336
[project.scripts]
3437
sphinx-lint = "sphinxlint.__main__:main"
3538

36-
[tool.setuptools]
37-
packages = ["sphinxlint"]
38-
include-package-data = false
39-
dynamic.version.attr = "sphinxlint.__version__"
39+
[tool.hatch]
40+
version.source = "vcs"
41+
42+
[tool.hatch.version.raw-options]
43+
local_scheme = "no-local-version"
4044

4145
[tool.black]
4246

0 commit comments

Comments
 (0)