Skip to content

Commit d8b3ce9

Browse files
committed
fix(docs for Hatchling): add missing project-specific build target
1 parent 36530ea commit d8b3ce9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/projects.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ build-backend = "hatchling.build"
5353

5454
[tool.hatch.build.hooks.polylith-bricks]
5555
# this section is needed to enable the hook in the build process, even if empty.
56+
57+
# This section is needed for building
58+
[tool.hatch.build.targets.wheel]
59+
packages = ["<the polylith top namespace here>"]
5660
```
5761

5862
Polylith bricks are added in the `[tool.polylith.bricks]` section:
@@ -128,6 +132,10 @@ build-backend = "hatchling.build"
128132

129133
[tool.hatch.build.hooks.polylith-bricks]
130134
# this section is needed to enable the hook in the build process, even if empty.
135+
136+
# This section is needed for building
137+
[tool.hatch.build.targets.wheel]
138+
packages = ["<the polylith top namespace here>"]
131139
```
132140

133141
Polylith bricks are added in the `[tool.polylith.bricks]` section:
@@ -178,6 +186,10 @@ build-backend = "hatchling.build"
178186

179187
[tool.hatch.build.hooks.polylith-bricks]
180188
# this section is needed to enable the hook in the build process, even if empty.
189+
190+
# This section is needed for building
191+
[tool.hatch.build.targets.wheel]
192+
packages = ["<the polylith top namespace here>"]
181193
```
182194

183195
Polylith bricks are added in the `[tool.polylith.bricks]` section:

0 commit comments

Comments
 (0)