Skip to content
This repository was archived by the owner on Apr 20, 2025. It is now read-only.

Commit 3031bf5

Browse files
mgornysybrenstuvel
authored andcommitted
Do not include arbitrary files in wheel
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
1 parent c373662 commit 3031bf5

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
## Version 4.9 - in development
44

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

1012
## Version 4.8 - released 2021-11-24
1113

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ classifiers = [
2626
"Topic :: Security :: Cryptography",
2727
]
2828
include = [
29-
"LICENSE", "README.md", "CHANGELOG.md",
29+
{ path = "LICENSE", format = "sdist" },
30+
{ path = "README.md", format = "sdist" },
31+
{ path = "CHANGELOG.md", format = "sdist" },
3032
]
3133

3234
[tool.poetry.dependencies]

0 commit comments

Comments
 (0)