Skip to content

Commit 15ad9e0

Browse files
mgornycsernazs
authored andcommitted
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!
1 parent 200e713 commit 15ad9e0

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

pyproject.toml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,11 @@ classifiers = [
2323
repository = "https://github.com/csernazs/pytest-httpserver"
2424

2525
include = [
26-
"tests",
27-
"CHANGES.rst",
28-
"CONTRIBUTION.md",
29-
"tests/*.py",
30-
"tests/assets/*",
31-
"example*.py",
32-
"doc",
26+
{ path = "tests", format = "sdist" },
27+
{ path = "CHANGES.rst", format = "sdist" },
28+
{ path = "CONTRIBUTION.md", format = "sdist" },
29+
{ path = "example*.py", format = "sdist" },
30+
{ path = "doc", format = "sdist" },
3331
]
3432

3533
[tool.poetry.dependencies]

0 commit comments

Comments
 (0)