Debian Codegraph @

debian/patches/copying-sdist-only.patch

raw
1 From: Colin Watson <[email protected]>
2 Date: Sun, 26 May 2024 12:27:28 +0100
3 Subject: Don't install COPYING at top level of wheel
4
5 Telling Poetry to install the `COPYING` file without qualification
6 causes it to install that file at the very top level of the wheel,
7 outside the `shortuuid/` directory, and thus to potentially clash with
8 other packages.
9
10 We only need to explicitly install it in the sdist. The wheel still
11 ends up with a copy of the file in `shortuuid-*.dist-info/COPYING`, so
12 no information is lost.
13
14 Forwarded: https://github.com/skorokithakis/shortuuid/pull/105
15 Last-Update: 2024-05-26
16 ---
17 pyproject.toml | 4 +++-
18 1 file changed, 3 insertions(+), 1 deletion(-)
19
20 diff --git a/pyproject.toml b/pyproject.toml
21 index 284b05d..c151ede 100644
22 --- a/pyproject.toml
23 +++ b/pyproject.toml
24 @@ -17,7 +17,9 @@ classifiers = [
25 homepage = "https://github.com/skorokithakis/shortuuid/"
26 authors = ["Stavros Korokithakis <[email protected]>"]
27 readme = "README.md"
28 -include = ["COPYING"]
29 +include = [
30 + { path = "COPYING", format = "sdist" }
31 +]
32
33 [tool.poetry.scripts]
34 shortuuid = "shortuuid.cli:cli"