Skip to content

Commit

Permalink
Add documentation of auto-included files in wheels and sdist (#8555)
Browse files Browse the repository at this point in the history
  • Loading branch information
asikeero authored Oct 23, 2023
1 parent c41e213 commit 385e4b8
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion docs/libraries.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,18 @@ poetry build
This command will package your library in two different formats: `sdist` which is
the source format, and `wheel` which is a `compiled` package.

Once that's done you are ready to publish your library
Poetry will automatically include some metadata files when building a package. When building
a `wheel`, the following files are included in the `.dist-info` directory:
- `LICENSE`
- `LICENSE.*`
- `COPYING`
- `COPYING.*`
- `LICENSES/**`

When building an `sdist`, the following files will be included in the root folder:
- `LICENSE*`

Once building is done you are ready to publish your library.

## Publishing to PyPI

Expand Down

0 comments on commit 385e4b8

Please sign in to comment.