Skip to content

Commit b93852b

Browse files
committed
Fix packaging configuration warnings
- Added explicit documentation files inclusion to MANIFEST.in to ensure all doc/*.rst and doc/*.py files are included in source distributions - Added wheel build configuration to properly specify package contents with only-include directive, addressing the implicit zip_safe concerns - The doc/_build prune directive is kept to exclude build artifacts Fixes: https://bugs.launchpad.net/testtools/+bug/803845
1 parent bbc5d85 commit b93852b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ include MANIFEST.in
44
include NEWS
55
include README.rst
66
include .gitignore
7+
recursive-include doc *.rst *.py
78
prune doc/_build

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ version = {version!r}
4949
__version__ = {version_tuple!r}
5050
"""
5151

52+
[tool.hatch.build.targets.wheel]
53+
# testtools is not zip safe due to dynamic imports and resource loading
54+
only-include = ["testtools"]
55+
5256
[tool.mypy]
5357
warn_redundant_casts = true
5458
warn_unused_configs = true

0 commit comments

Comments
 (0)