From ffb20fea3a72acf5b35e4005d959fc41ea62ba56 Mon Sep 17 00:00:00 2001 From: David Runge Date: Wed, 22 Sep 2021 10:10:51 +0200 Subject: [PATCH] Add tests directory to sdist tarball pyproject.toml: Change `tool.poetry.include` to include the tests directory recursively for the sdist format and change existing entries so that the array tracks the same type for all members. Fixes #251 Signed-off-by: David Runge --- pyproject.toml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 275d37f2..9eb22b3a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,10 +27,11 @@ packages = [ { include = "diff_cover" } ] include = [ - "templates/*.txt", - "templates/*.html", - "templates/*.css", - "templates/*.md" + {path = 'templates/*.txt'}, + {path = 'templates/*.html'}, + {path = 'templates/*.css'}, + {path = 'templates/*.md'}, + {path = 'tests/*', format = 'sdist'}, ] [tool.poetry.scripts]