pyproject.toml: fix tests getting installed

Instead of automatic python package discovery that for some reason still
picks up the test module even though it should be excluded, specify the
"pmb" module manually to be installed.

Follow-up to MR 2551.

Fixes: issue 2541
This commit is contained in:
Oliver Smith 2025-02-27 01:01:41 +01:00
parent 60a4ed7f84
commit 3eff3ff39e
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -25,8 +25,8 @@ Homepage = "https://www.postmarketos.org"
[tool.setuptools.dynamic]
version = {attr = "pmb.__version__"}
[tool.setuptools.packages.find]
exclude = ["aports", "docs", "keys", "test", "test.pmb_test"]
[tool.setuptools.package-dir]
pmb = "pmb"
[tool.ruff]
line-length=100