Skip to content

Commit 317fd3d

Browse files
authored
build: Fix package auto-discovery (ref #468) (#608)
Commit 1fc63b5 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.
1 parent b50616b commit 317fd3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ db_export = [
3535
documentation = "https://canopen.readthedocs.io/en/stable/"
3636
repository = "https://github.com/canopen-python/canopen"
3737

38-
[tool.setuptools]
39-
packages = ["canopen"]
38+
[tool.setuptools.packages.find]
39+
include = ["canopen", "canopen.*"]
4040

4141
[tool.setuptools_scm]
4242
version_file = "canopen/_version.py"

0 commit comments

Comments
 (0)