Skip to content

Commit da10a3b

Browse files
authored
feat: include tests and docs in sdist archives (#1142)
feat: Include tests and docs in sdist archives Include documentation and test files in source distributions, in order to make them more useful for packagers (Linux distributions, Conda). Testing is an important part of packaging process, and at least Gentoo users have requested offline documentation for Python packages. Furthermore, the COPYING file was missing from sdist, even though it was referenced in README.
1 parent 199a4de commit da10a3b

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
@@ -27,6 +27,12 @@ classifiers=[
2727
packages = [
2828
{ include = "zeroconf", from = "src" },
2929
]
30+
include = [
31+
{ path = "CHANGELOG.md", format = "sdist" },
32+
{ path = "COPYING", format = "sdist" },
33+
{ path = "docs", format = "sdist" },
34+
{ path = "tests", format = "sdist" },
35+
]
3036

3137
[tool.poetry.urls]
3238
"Bug Tracker" = "https://github.com/python-zeroconf/python-zeroconf/issues"

0 commit comments

Comments
 (0)