Skip to content

Commit

Permalink
Merge pull request #12 from DavidVujic/fix-uv-workspace-project-setup…
Browse files Browse the repository at this point in the history
…-typo

fix(projects): typo in how to setup uv
  • Loading branch information
DavidVujic authored Sep 27, 2024
2 parents b100aba + fe73d4a commit e163e3f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions docs/projects.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,15 +155,11 @@ dev-dependencies = ["polylith-cli"]
```

The default build backend for uv is Hatch.
Add the `hatch-polylith-bricks` build hook plugin to the `pyproject.toml` file.

``` toml
[build-system]
requires = ["hatchling", "hatch-polylith-bricks"]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build.hooks.polylith-bricks]
# this section is needed to enable the hook in the build process, even if empty.
```

Make uv (and Hatch) aware of the way Polylith organizes source code:
Expand All @@ -174,6 +170,7 @@ dev-mode-dirs = ["components", "bases", "development", "."]


### The project-specific pyproject.toml file(s)
Add the `hatch-polylith-bricks` build hook plugin to the `pyproject.toml` file.
``` toml
[build-system]
requires = ["hatchling", "hatch-polylith-bricks"]
Expand Down

0 comments on commit e163e3f

Please sign in to comment.