Skip to content

Commit

Permalink
adapt explanation and examples to changed default
Browse files Browse the repository at this point in the history
  • Loading branch information
radoering committed Oct 11, 2024
1 parent 40e0205 commit 1e192e8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/pyproject.md
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ A list of patterns that will be excluded or included in the final package.
[tool.poetry]
# ...
exclude = ["my_package/excluded.py"]
include = ["my_package/data.txt"]
include = ["CHANGELOG.md"]
```

You can explicitly specify to Poetry that a set of globs should be ignored or included for the purposes of packaging.
Expand All @@ -654,7 +654,9 @@ include = [
]
```

If no format is specified, it will default to include both `sdist` and `wheel`.
If no format is specified, `include` defaults to only `sdist`.

In contrast, `exclude` defaults to both `sdist` and `wheel`.

{{% warning %}}
When a wheel is installed, its includes are unpacked straight into the `site-packages` directory.
Expand Down

0 comments on commit 1e192e8

Please sign in to comment.