Skip to content

Commit 40da77a

Browse files
authored
Explicitly inform build tools about package structure (#157)
* "Build & Inspect Distributions" to fix #156 * Explicitly tell setuptools what is the package rather than relying on auto-discovery * Remove "Build & Inspect Distributions" workflow used in debug
1 parent b20f070 commit 40da77a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,13 @@ publishing = [
129129
"instamatic.autoconfig" = "instamatic.config.autoconfig:main"
130130

131131
[tool.setuptools]
132-
packages = ["instamatic"]
133132
package-dir = {"" = "src"}
134133
include-package-data = true
135134

135+
[tool.setuptools.packages.find]
136+
where = ["src"]
137+
include = ["instamatic*"]
138+
136139
[tool.ruff]
137140
target-version = 'py39'
138141
line-length = 96

0 commit comments

Comments
 (0)