uv icon indicating copy to clipboard operation
uv copied to clipboard

Allow creating a virtual environment in a folder with existing files

Open gaborbernat opened this issue 1 year ago • 1 comments

❯ lsd --tree .venv/
 .venv
└──  magic.txt
~/git/github/tox-uv on  main [!?⇕]
❯ uv venv
Using Python 3.12.1 interpreter at: /Users/bgabor8/.pyenv/versions/3.12.1/bin/python3
Creating virtualenv at: .venv
uv::venv::creation

  × Failed to create virtualenv
  ╰─▶ The directory `.venv` exists, but it's not a virtualenv

tox likes to put a few other files (tmp folder, .tox-info.json, etc) in this folder that breaks uv venv....

Is fine if is hidden behind a --allow-extra-content flag.

gaborbernat avatar Mar 18 '24 23:03 gaborbernat

I wonder if this should just be gated by a simple --force flag.

zanieb avatar Mar 18 '24 23:03 zanieb

Works for me 😀

gaborbernat avatar Mar 19 '24 01:03 gaborbernat