https://github.com/jabbalaci/uv_venv
With uv, create a .venv folder in ~/.virtualenvs and put a symlink on it.
https://github.com/jabbalaci/uv_venv
poetry tool uv venv virtual-environment
Last synced: 9 months ago
JSON representation
With uv, create a .venv folder in ~/.virtualenvs and put a symlink on it.
- Host: GitHub
- URL: https://github.com/jabbalaci/uv_venv
- Owner: jabbalaci
- License: mit
- Created: 2025-03-22T17:14:30.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-01T09:47:48.000Z (about 1 year ago)
- Last Synced: 2025-04-01T10:32:49.733Z (about 1 year ago)
- Topics: poetry, tool, uv, venv, virtual-environment
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# uv_venv
With [uv](https://docs.astral.sh/uv/), create the `.venv` folder in `~/.virtualenvs` and put a symlink on it in your project folder.
## Description
The command `uv venv` creates `.venv/` in the project folder.
This script creates the virt. env. in a separate folder (`~/.virtualenvs`),
and in the project folder it creates a symbolic link called `.venv` that points
on the virt. env. located in `~/.virtualenvs`.
## Rationale
[Poetry](https://python-poetry.org/) works like this by default. With this
script I can make `uv` behave similarly to Poetry.
I prefer storing my projects in Dropbox. Since a `.venv/` folder can grow really huge, it makes no sense
to store these folders in Dropbox. I prefer putting
them in a separate folder, outside of Dropbox.
## Usage
Create the folder `~/.virtualenvs`. Virt. environments
will be created there.
Put a symbolic link or an alias on this script and
name it `uv_venv`. Then:
```shell
$ uv init
$ uv_venv
```