diff --git a/docs/docs/pyproject.md b/docs/docs/pyproject.md index 14221b8b03a..5f514b6aff1 100644 --- a/docs/docs/pyproject.md +++ b/docs/docs/pyproject.md @@ -173,6 +173,19 @@ If a VCS is being used for a package, the exclude field will be seeded with the include = ["CHANGELOG.md"] ``` +You can also specify the formats for which these patterns have to be included, as shown here: + +```toml +[tool.poetry] +# ... +include = [ + { path = "tests", format = "sdist" }, + { path = "for_wheel.txt", format = ["sdist", "wheel"] } +] +``` + +If no format is specified, it will default to include both `sdist` and `wheel`. + ```toml exclude = ["my_package/excluded.py"] ```