pythonpython-poetry

What is the python-poetry config file after 1.2.0 release?


I have been using python-poetry for over a year now.
After poetry 1.2.0 release, I get such an info warning:

Configuration file exists at ~/Library/Application Support/pypoetry,
reusing this directory.

Consider moving configuration to ~/Library/Preferences/pypoetry,
as support for the legacy directory will be removed in an upcoming release.

But in docs, it is still indicated for macOS: ~/Library/Application Support/pypoetry
https://python-poetry.org/docs/configuration/

My question is that if ~/Library/Preferences/pypoetry is the latest decision what should I do for moving configuration to there?
Is just copy-pasting enough?

poetry-config-file-for-macos


Solution

  • Looks like it is as simple as copy/pasting to the new directory.

    I got the same error after upgrading to Poetry 1.2. So I created a pypoetry folder in the new Preferences directory, copy/pasted the config.toml to it, and just to be safe, I renamed the original folder to:

    ~/Library/Application Support/pypoetry_bak

    After doing this and running poetry -V, the error is gone.