Skip to content

Commit 9a1204a

Browse files
committed
fix(coordinode): use sources mapping to include package files in wheel
packages = ["coordinode"] looks for coordinode/coordinode/ subdir which does not exist — pyproject.toml is inside the package directory itself. sources = {"." = "coordinode"} maps the current dir as the coordinode package, producing a wheel with actual Python files. The 0.4.1 wheel contained 0 Python files, making the package unimportable.
1 parent 2f55798 commit 9a1204a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

coordinode/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ raw-options = {root = ".."}
5151
version-file = "_version.py"
5252

5353
[tool.hatch.build.targets.wheel]
54-
packages = ["coordinode"]
54+
sources = {"." = "coordinode"}
5555

5656
[tool.pytest.ini_options]
5757
asyncio_mode = "auto"

0 commit comments

Comments
 (0)