diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-01-27 10:26:23 +0100 |
---|---|---|
committer | Sybren A. Stüvel <sybren@stuvel.eu> | 2022-03-13 12:12:51 +0100 |
commit | 3031bf5c6ae64083431e849903b0104d2cfae893 (patch) | |
tree | 2ecd50101456a41532d670980404c515602a870f /pyproject.toml | |
parent | c373662e16d3ea1b014ec2a26500b6c0603fcabd (diff) | |
download | rsa-git-3031bf5c6ae64083431e849903b0104d2cfae893.tar.gz |
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
Diffstat (limited to 'pyproject.toml')
-rw-r--r-- | pyproject.toml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pyproject.toml b/pyproject.toml index 275eaa2..fcee728 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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] |