Poetry

From YM2149.org
Revision as of 16:46, 6 February 2025 by Andrzej (talk | contribs)
Jump to navigationJump to search

Same old

  • as with many so-called modern tools, solutions take a back seat to gloss
    • composability also suffers

Install

  • recommended install of poetry itself is to a venv (makes sense) but you must not activate that venv
    • this violates the principle of least astonishment, especially when poetry then breezily installs app requirements into its own venv

Solution

  • install poetry command using motivate -S poetry where motivate is provided by venvpool
    • the poetry command will the create/use a suitable venv for itself just-in-time
    • you can specify a particular version e.g. motivate -S poetry==2.0.1
      • use -f to overwrite existing command