Version control and poetry.xml

Answered

I went through a minor Python reconfiguration after moving a project directory and upgrading to 2024.1.1. My project uses Poetry, and the file “poetry.xml” ended up in the .idea directory. Based on what I went through, it seems to me that this file is necessary for my environment to run and it would be just as necessary for anyone to collaborate on the project. The problem is that the path in the option is relative to the project directory, which would not be the case for others.

Is there something I can do to make this file more portable? This is what the file looks like:

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="PoetryConfigService">
    <option name="poetryVirtualenvPaths">
      <set>
        <option value="$PROJECT_DIR$/../../../../Caches/pypoetry/virtualenvs/lazy-fisher-yates-shuffler-L1PZGcsF-py3.12/bin/python" />
      </set>
    </option>
  </component>
</project>

 

0
1 comment
Hello Kevin,
Unfortunately, there is no option to make the .idea folder portable. We strongly recommend excluding it from the repositories and reconfiguring the project if moved since it can produce quite odd errors.
0

Please sign in to leave a comment.