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
…pts] (#9510)
  • Loading branch information
Robert-DEMCON committed Jul 23, 2024
1 parent 2e3a421 commit 1f643b2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/pyproject.md
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,15 @@ 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, the file `some_binary.exe` is looked for in the directory of the active `pyproject.toml` and copied into the installation folder.
On Windows, the `.exe` extension is added to the file and the file will be placed in the `Scripts/` directory.
On Linux no extension is added and the destination is `bin/`.

## `extras`

Poetry supports extras to allow expression of:
Expand Down

0 comments on commit 1f643b2

Please sign in to comment.