Skip to content

Commit

Permalink
poetry: Use include[] instead of package[]
Browse files Browse the repository at this point in the history
Including tests with `package[]` made setup.py install a package named
`test` which was not intended. This commit fixes this

See-also: d2419b1 (poetry/sdist: Include tests and completions in tarball (#178))
Signed-off-by: Mubashshir <ahmubashshir@gmail.com>
  • Loading branch information
ahmubashshir authored and iamkroot committed Mar 1, 2022
1 parent d0722c9 commit 8f8453f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@ classifiers = [
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"Operating System :: OS Independent",
]

packages = [
{include = "trakt_scrobbler"},
{include = "tests", format = "sdist"},
{include = "completions/**/*.*?sh", format = "sdist"}
include = [
{path = "tests", format = "sdist"},
{path = "completions/**/*.*?sh", format = "sdist"}
]

[tool.poetry.dependencies]
Expand Down

0 comments on commit 8f8453f

Please sign in to comment.