From 4a172e8db4f0dbbecfe5577ec773acf7bfc2fb6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Colomb?= Date: Tue, 5 Aug 2025 13:03:49 +0200 Subject: [PATCH] build: Fix package auto-discovery. Commit 1fc63b5f4835eba80462c7892a2cd00f786ec9ce tried to limit the built packages to ignore other arbitrary top-level directories. But in turn, it disabled the auto-discovery in setuptools completely. This results in build warnings for the missing sub-packages that would have been auto-discovered. Switch to an explicit setuptools.packages.find configuration which still limits to the canopen top-level package. --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e9f3b871..98529bc6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,8 +35,8 @@ db_export = [ documentation = "https://canopen.readthedocs.io/en/stable/" repository = "https://github.com/canopen-python/canopen" -[tool.setuptools] -packages = ["canopen"] +[tool.setuptools.packages.find] +include = ["canopen", "canopen.*"] [tool.setuptools_scm] version_file = "canopen/_version.py"