From ca3f5877c8d09822193001072dea5fd3777ddfed Mon Sep 17 00:00:00 2001 From: Matt Wozniski Date: Wed, 24 Dec 2025 11:37:12 -0500 Subject: [PATCH] Include `resources` package when building wheels This had been included when building the sdist with `poetry-core` 1.x, but is not included in the built wheel if `poetry-core` 2.x is used. Per the `poetry` documentation, `include` defaults to including files only in the sdist, not in the wheel. --- pyproject.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index a36204b..9ea2d1e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pytest-textual-snapshot" -version = "1.1.0" +version = "1.1.1" description = "Snapshot testing for Textual apps" authors = ["Darren Burns "] maintainers = ["Will McGugan "] @@ -26,7 +26,9 @@ classifiers = [ "Operating System :: OS Independent", "License :: OSI Approved :: MIT License" ] -include = ["resources/**/*"] +include = [ + { path = "resources/**/*", format = ["sdist", "wheel"] } +] [tool.poetry.dependencies] python = "^3.8.1"