Skip to content

Commit 061cf69

Browse files
Switch build system to hatch and add json files to sdist and wheel
This should be possible with setuptools but I followed their docs and it didn't work as I expected.
1 parent 371e2d7 commit 061cf69

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

pyproject.toml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "labthings-fastapi"
3-
version = "0.0.8"
3+
version = "0.0.9"
44
authors = [
55
{ name="Richard Bowman", email="[email protected]" },
66
]
@@ -39,8 +39,17 @@ server = [
3939
"Bug Tracker" = "https://github.com/rwb27/labthings-fastapi/issues"
4040

4141
[build-system]
42-
requires = ["setuptools>=61.0"]
43-
build-backend = "setuptools.build_meta"
42+
requires = ["hatchling"]
43+
build-backend = "hatchling.build"
44+
45+
[tool.hatch.build.targets.sdist]
46+
include = [
47+
"src"
48+
]
49+
artifacts = ["src/*.json"]
50+
51+
[tool.hatch.build.targets.wheel]
52+
artifacts = ["src/*.json"]
4453

4554
[tool.ruff]
4655
target-version = "py39"

0 commit comments

Comments
 (0)