Skip to content

Commit 658551a

Browse files
Explicitly declare py.typed in the wheel manifest
Hatchling's default file selection already picks up py.typed via the ``packages`` directory, but declaring it explicitly via force-include is the documented PEP 561 pattern and keeps the intent obvious to anyone auditing the wheel contents (or to any future refactor of the source layout). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent aa1c9cc commit 658551a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ dqlite = "sqlalchemydqlite:DqliteDialect"
4545
[tool.hatch.build.targets.wheel]
4646
packages = ["src/sqlalchemydqlite"]
4747

48+
# Hatchling's default file-selection would already ship ``py.typed`` via
49+
# ``packages``, but declaring it explicitly is the documented PEP 561
50+
# pattern and makes the intent obvious to anyone auditing the wheel.
51+
[tool.hatch.build.targets.wheel.force-include]
52+
"src/sqlalchemydqlite/py.typed" = "sqlalchemydqlite/py.typed"
53+
4854
[tool.pytest.ini_options]
4955
testpaths = ["tests"]
5056
pythonpath = ["src"]

0 commit comments

Comments
 (0)