From 3eff3ff39e04b1b30cf4da2bbd03fef90cb83506 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Thu, 27 Feb 2025 01:01:41 +0100 Subject: [PATCH] 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 --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 42d31145..adcdd805 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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