Skip to content

Commit 007c651

Browse files
committed
update build backend to hatchling + hatch-vcs
1 parent 7b858ab commit 007c651

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

pyproject.toml

+7-4
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,14 @@ docs = [
5050

5151

5252
[build-system]
53-
build-backend = "setuptools.build_meta"
54-
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"]
53+
requires = ["hatchling", "hatch-vcs"]
54+
build-backend = "hatchling.build"
5555

56-
[tool.setuptools_scm]
57-
write_to = "autoray/_version.py"
56+
[tool.hatch.version]
57+
source = "vcs"
58+
59+
[tool.hatch.build.hooks.vcs]
60+
version-file = "autoray/_version.py"
5861

5962
[tool.pytest.ini_options]
6063
testpaths = "tests"

0 commit comments

Comments
 (0)