Fix packaging: Ensure resources are included in both sdist and wheel

Poetry's `include` directive defaults to only including files in the sdist.
See https://github.com/python-poetry/poetry-core/pull/773
pull/1128/head
Nick Bathum 6 months ago
parent 9ef7611fd6
commit 4ecaacf3fa
No known key found for this signature in database
GPG Key ID: 6F47A049DC3446FB

@ -7,7 +7,7 @@ authors = ["mingrammer <mingrammer@gmail.com>"]
readme = "README.md" readme = "README.md"
homepage = "https://diagrams.mingrammer.com" homepage = "https://diagrams.mingrammer.com"
repository = "https://github.com/mingrammer/diagrams" repository = "https://github.com/mingrammer/diagrams"
include = ["resources/**/*"] include = [{ path = "resources/**/*", format = ["sdist", "wheel"] }]
[tool.poetry.scripts] [tool.poetry.scripts]
diagrams="diagrams.cli:main" diagrams="diagrams.cli:main"

Loading…
Cancel
Save