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 Oct 9, 2024
1 parent 0e1bedc commit efcd9f3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docs/pyproject.md
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,17 @@ 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 %}}

### extras
```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`

**Deprecated**: Use `project.optional-dependencies` instead.

Expand Down

0 comments on commit efcd9f3

Please sign in to comment.