Skip to content

Commit

Permalink
feat: include tests and docs in sdist archives (#1142)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mgorny committed Apr 2, 2023
1 parent 199a4de commit da10a3b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pyproject.toml
Expand Up @@ -27,6 +27,12 @@ classifiers=[
packages = [
{ include = "zeroconf", from = "src" },
]
include = [
{ path = "CHANGELOG.md", format = "sdist" },
{ path = "COPYING", format = "sdist" },
{ path = "docs", format = "sdist" },
{ path = "tests", format = "sdist" },
]

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

0 comments on commit da10a3b

Please sign in to comment.