Module ds.parsers.pyproject_poetry
pyproject.toml
parser for poetry
.
Functions
def loads(s: str, /, *, parse_float: ParseFloat = builtins.float) ‑> dict[str, typing.Any]
-
Parse TOML from a string.
def parse_workspace(config: Config, key: str = 'tool.poetry.workspace') ‑> Dict[pathlib.Path, bool]
-
Workspaces are not officially defined for
poetry
.There are two plugins that have two different patterns: - https://github.com/jacksmith15/poetry-workspace-plugin - https://pypi.org/project/poetry-workspace-plugin2/
def parse_tasks(config: Config, key: str = 'tool.poetry.scripts') ‑> Dict[str, Task]
-
poetry
only supports acall
script.https://python-poetry.org/docs/cli/#run
Features: - Not Supported: disabled task - Not Supported:
task.help
- task description - Supported (partial):task.cmd
- basic task (call
only) - Not Supported:task.args
- argument interpolation - Not Supported:task.cwd
- working directory - Not Supported:task.depends
- composite task - Not Supported:task.env
- environments - Not Supported:task.keep_going
- error suppression