Skip to article frontmatterSkip to article content

Rewriting Paths

hatchling can move files around in your Distribution package:

pyproject.toml
1
2
3
4
5
6
[tool.hatch.build.targets.wheel]
include = ["src/arrow_to_knee", "a-folder"]

[tool.hatch.build.targets.wheel.sources]
"src/arrow_to_knee" = "arrow_to_knee"
"a-folder" = "arrow_to_knee/renamed_folder"