Skip to content

Commit

Permalink
Merge pull request #11 from PadenZach/main
Browse files Browse the repository at this point in the history
docs(projects/rye): rm hatch build hook from workspace project file
  • Loading branch information
DavidVujic authored Sep 27, 2024
2 parents 5007158 + 37e87a7 commit b100aba
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 @@ -105,15 +105,11 @@ dev-dependencies = ["polylith-cli"]
```

The default build backend for Rye 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 Rye (and Hatch) aware of the way Polylith organizes source code:
Expand All @@ -124,6 +120,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 b100aba

Please sign in to comment.