From 61effb56a2fe44b0bef0e22d2454b4989f38a84c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Fri, 29 Jul 2022 19:00:08 +0200 Subject: [PATCH] fix pyproject.toml not to install various files into site-packages Fix the `include` directives to include the specified files in sdist only. Without explicit format, they cause the specified files to be included both in sdist and in wheels, which in turn means they're going to be installed into the top-level directory of site-packages! --- pyproject.toml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index cf66462a..d1950a76 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,13 +23,11 @@ classifiers = [ repository = "https://github.com/csernazs/pytest-httpserver" include = [ - "tests", - "CHANGES.rst", - "CONTRIBUTION.md", - "tests/*.py", - "tests/assets/*", - "example*.py", - "doc", + { path = "tests", format = "sdist" }, + { path = "CHANGES.rst", format = "sdist" }, + { path = "CONTRIBUTION.md", format = "sdist" }, + { path = "example*.py", format = "sdist" }, + { path = "doc", format = "sdist" }, ] [tool.poetry.dependencies]