I just got into using UV, and I needed to onboard a few projects.
uv init- Creates
pyproject.tomlif it does not exist.
- Creates
uv venv- This is the only command you need to run, whether venv has been set up or not yet.
uv add -r requirements.txt- Moves dependencies defined in
requirements.txtintopyproject.toml
- Moves dependencies defined in
uv run .\file.py- Runs the script