I try my best to move from a setup.py
managed lib to a pure pyproject.toml
one.
I have the following folder structure:
tests
└── <files>
docs
└── <files>
sepal_ui
└── <files>
pyproject.toml
and in my pyproject.toml
the following setup for file and packages discovery:
[build-system]
requires = ["setuptools>=61.2", "wheel"]
[tool.setuptools]
include-package-data = false
[tool.setuptools.packages.find]
include = ["sepal_ui*"]
exclude = ["docs*", "tests*"]
and in the produce wheel, I get the following:
tests
└── <files>
docs
└── <files>
sepal_ui
└── <files>
sepal_ui.egg-info
└── top-level.txt
looking at the top-level.txt, I see that only sepal_ui is included so my question is simple why do the extra "docs" and "tests" folder are still included even if they are not used? how to get rid of them ?
PS: I'm aware of the MANIFEST.in solution that I will accept if it's really the only one but I found it redundant to specify in 2 files.