Skip to content

Commit

Permalink
Add wheel build target to avoid Hatch ValueError
Browse files Browse the repository at this point in the history
Hatchling 1.9 added a requirement for additional wheel metadata.
"ValueError: Unable to determine which files to ship inside the wheel"
may be seen without the metadata.

This commit will update `pyproject.toml` to include wheel metadata.

https://hatch.pypa.io/latest/plugins/builder/wheel/
https://github.com/pypa/hatch/releases/tag/hatchling-v1.19.0
  • Loading branch information
br3ndonland committed Jan 13, 2024
1 parent 9c541be commit b61a49e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ source = ["template_python", "tests"]
[tool.hatch.build.targets.sdist]
include = ["/template_python"]

[tool.hatch.build.targets.wheel]
packages = ["template_python"]

[tool.hatch.envs.ci]
dev-mode = false
features = [
Expand Down

0 comments on commit b61a49e

Please sign in to comment.