Skip to content

Commit 0540742

Browse files
committed
Fix package build to include all subpackages
Updated pyproject.toml to explicitly include magic_admin.resources and magic_admin.utils subpackages. This fixes the ModuleNotFoundError that occurred when importing magic_admin from the PyPI package. The previous configuration only included the top-level magic_admin package, causing the resources and utils modules to be missing from the distribution.
1 parent b2db170 commit 0540742

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ dependencies = [
3131
Website = "https://magic.link"
3232

3333
[tool.setuptools]
34-
packages = ["magic_admin"]
34+
packages = ["magic_admin", "magic_admin.resources", "magic_admin.utils"]
3535

3636
[tool.setuptools.package-data]
3737
magic_admin = ["*.txt", "*.md"]

0 commit comments

Comments
 (0)