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

Question:

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

Asked By: SADIK KUZU

||

Answers:

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.

Answered By: Ryan

The copy paste equivalent of Ryan’s answer:

cp -R ~/Library/Application Support/pypoetry ~/Library/Preferences/
mv ~/Library/Application Support/pypoetry ~/Library/Application Support/pypoetry_bak
poetry -V

(Couldn’t comment with code block formatting)

Answered By: Maggie

Only the config.toml file need to move to ~/LibraryPreferences/pypoetry, meanwhile modify the ~/Library/Application Support/pypoetry/config.toml file name as config.toml_bak.

Answered By: KevinJ
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.