Skip to content

Commit

Permalink
Do not include arbitrary files in wheel
Browse files Browse the repository at this point in the history
Fix the include key to apply to sdist format only.  Otherwise, the
listed files are added to the top directory of wheel as well and end up
being installed in top-level site-packages directory, e.g.:

 *  FILES:+usr/lib/python3.9/site-packages/CHANGELOG.md
 *  FILES:+usr/lib/python3.9/site-packages/LICENSE
 *  FILES:+usr/lib/python3.9/site-packages/README.md
  • Loading branch information
mgorny authored and sybrenstuvel committed Mar 13, 2022
1 parent c373662 commit 3031bf5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
## Version 4.9 - in development

- Remove debug logging from `rsa/key.py`
([#194](https://github.com/sybrenstuvel/python-rsa/pull/194)).
([#194](https://github.com/sybrenstuvel/python-rsa/issues/194)).
- Remove overlapping slots in `PrivateKey` and `PublicKey`.
([#189](https://github.com/sybrenstuvel/python-rsa/pull/189)).
- Do not include CHANGELOG/LICENSE/README.md in wheel
([#191](https://github.com/sybrenstuvel/python-rsa/pull/191)).

## Version 4.8 - released 2021-11-24

Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ classifiers = [
"Topic :: Security :: Cryptography",
]
include = [
"LICENSE", "README.md", "CHANGELOG.md",
{ path = "LICENSE", format = "sdist" },
{ path = "README.md", format = "sdist" },
{ path = "CHANGELOG.md", format = "sdist" },
]

[tool.poetry.dependencies]
Expand Down

0 comments on commit 3031bf5

Please sign in to comment.