Skip to content

Commit ba3a974

Browse files
authored
refactor: consolidate hatch config (#196)
* refactor: consolidate hatch config Signed-off-by: nstarman <[email protected]> * refactor: move build system config more standard loc Signed-off-by: nstarman <[email protected]> --------- Signed-off-by: nstarman <[email protected]>
1 parent 4895547 commit ba3a974

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

pyproject.toml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
[build-system]
2-
requires = ["hatchling>=1.8.0", "hatch-vcs"]
3-
build-backend = "hatchling.build"
4-
51
[project]
62
name = "plum-dispatch"
73
description="Multiple dispatch in Python"
@@ -47,14 +43,17 @@ dev = [
4743
[project.urls]
4844
repository = "https://github.com/beartype/plum"
4945

50-
[tool.hatch.build]
51-
include = ["plum*"]
5246

53-
[tool.hatch.version]
54-
source = "vcs"
47+
[build-system]
48+
requires = ["hatchling>=1.8.0", "hatch-vcs"]
49+
build-backend = "hatchling.build"
50+
51+
52+
[tool.hatch]
53+
version.source = "vcs"
54+
build.include = ["plum*"]
55+
build.hooks.vcs.version-file = "plum/_version.py"
5556

56-
[tool.hatch.build.hooks.vcs]
57-
version-file = "plum/_version.py"
5857

5958
# Development tools
6059
[tool.coverage.run]

0 commit comments

Comments
 (0)