Skip to content

Commit 4e1e50d

Browse files
committed
build: Use hatchling for building
1 parent 5d2fa60 commit 4e1e50d

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

pyproject.toml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,16 @@ repository = "https://github.com/bow/volt"
4242
[project.scripts]
4343
volt = "volt.cli:main"
4444

45+
[build-system]
46+
requires = ["hatchling"]
47+
build-backend = "hatchling.build"
48+
49+
[tool.hatch.build.targets.sdist]
50+
include = ["src", "tests"]
51+
52+
[tool.hatch.build.targets.bdist]
53+
include = ["src"]
54+
4555
[dependency-groups]
4656
dev = [
4757
"bandit==1.*",
@@ -130,6 +140,3 @@ exclude_lines = [
130140
"if __name__ == .__main__.:",
131141
]
132142
omit = ["tests/*"]
133-
134-
[tool.distutils.bdist_wheel]
135-
universal = true

0 commit comments

Comments
 (0)