From a031e798e160e287fee22bfcfe48ae115d31d26a Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Sun, 26 May 2024 12:59:13 +0100 Subject: [PATCH] fix: Don't install COPYING at top level of wheel (#105) Telling Poetry to install the `COPYING` file without qualification causes it to install that file at the very top level of the wheel, outside the `shortuuid/` directory, and thus to potentially clash with other packages. We only need to explicitly install it in the sdist. The wheel still ends up with a copy of the file in `shortuuid-*.dist-info/COPYING`, so no information is lost. --- pyproject.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index b1c318c..99c48bf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,9 @@ classifiers = [ homepage = "https://github.com/skorokithakis/shortuuid/" authors = ["Stavros Korokithakis "] readme = "README.md" -include = ["COPYING"] +include = [ + { path = "COPYING", format = "sdist" } +] [tool.poetry.scripts] shortuuid = "shortuuid.cli:cli"