Skip to content

Commit

Permalink
Added missing mention of type = "file" reference in [tool.poetry.scri…
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertoRoos committed Aug 19, 2024
1 parent 5d19ab0 commit 6bb6d15
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/pyproject.md
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,16 @@ Here, we will have the `my_package_cli` script installed which will execute the
When a script is added or updated, run `poetry install` to make them available in the project's virtualenv.
{{% /note %}}

```toml
[tool.poetry.scripts]
my_executable = { reference = "some_binary.exe", type = "file" }
```

With this configuration, Poetry will look for the referenced file in the active project and then copy it to the OS installation directory.

* On Windows the file is placed in the `Scripts/` directory.
* On *nix system the file is placed in the `bin/` directory.

## `extras`

Poetry supports extras to allow expression of:
Expand Down

0 comments on commit 6bb6d15

Please sign in to comment.