poetry
poetry copied to clipboard
Account for symlinked .venv when removing
Pull Request Check List
Resolves: Sometimes the .venv is a symlink, such as in caching strategies for CI/CD environments (codebuild, etc)
Related: https://github.com/python-poetry/poetry/pull/2064
We are already asserting the file path is a directory, so if OS Error 20 is triggered, which is "Not a directory" we simply delete everything but the top level folder.
- [ X] Added tests for changed code.
- [ X] Updated documentation for changed code.