Skip to content

Commit 7e82c45

Browse files
Merge pull request #100 from labthings/package-json
Switch build system to hatch and add json files to sdist and wheel
2 parents a19991b + 992deb2 commit 7e82c45

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

pyproject.toml

Lines changed: 13 additions & 4 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="richard.bowman@cantab.net" },
66
]
@@ -39,11 +39,20 @@ 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]
46-
target-version = "py39"
55+
target-version = "py310"
4756

4857
[tool.mypy]
4958
plugins = ["pydantic.mypy", "numpy.typing.mypy_plugin"]

0 commit comments

Comments
 (0)