Skip to content

Commit

Permalink
fix: Don't install COPYING at top level of wheel (#105)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cjwatson authored May 26, 2024
1 parent 16374d2 commit a031e79
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ classifiers = [
homepage = "https://github.com/skorokithakis/shortuuid/"
authors = ["Stavros Korokithakis <[email protected]>"]
readme = "README.md"
include = ["COPYING"]
include = [
{ path = "COPYING", format = "sdist" }
]

[tool.poetry.scripts]
shortuuid = "shortuuid.cli:cli"
Expand Down

0 comments on commit a031e79

Please sign in to comment.