Skip to content

Commit 11148b2

Browse files
committed
Try different way to avoid src flattening in sdist
1 parent cf38a41 commit 11148b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ expression = "get_version()"
6868
[tool.hatch.build]
6969
# Include as much as possible in the source distribution, to help redistributors.
7070
exclude = ["**/.pytest_cache", "**/.mypy_cache"]
71-
sources = ["src"]
7271

7372
[tool.hatch.build.targets.sdist]
7473
include = [
@@ -88,6 +87,7 @@ include = [
8887
# Manual pages can be included in the wheel.
8988
# Depending on the installation tool, they will be accessible to users.
9089
# pipx supports it, uv does not yet, see https://github.com/astral-sh/uv/issues/4731.
90+
sources = ["src/"]
9191
artifacts = ["share/**/*"]
9292

9393
[dependency-groups]

0 commit comments

Comments
 (0)