Skip to content

Commit e23afce

Browse files
committed
fix(build): remove duplicate templates in wheel package
The force-include directive caused templates/ to be packaged twice, resulting in "Duplicate filename in local headers" error when uploading to PyPI. Since templates/ is already under src/doc2anki/, hatchling includes it automatically via the packages directive.
1 parent b264a23 commit e23afce

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

pyproject.toml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,9 @@ build-backend = "hatchling.build"
3535
[tool.hatch.build.targets.wheel]
3636
packages = ["src/doc2anki"]
3737

38-
[tool.hatch.build.targets.wheel.force-include]
39-
"src/doc2anki/templates" = "doc2anki/templates"
40-
4138
[tool.hatch.build.targets.sdist]
4239
include = [
43-
"src/doc2anki/**/*.py",
44-
"src/doc2anki/**/*.j2",
45-
"src/doc2anki/py.typed",
40+
"src/doc2anki/**/*.py",
41+
"src/doc2anki/**/*.j2",
42+
"src/doc2anki/py.typed",
4643
]

0 commit comments

Comments
 (0)