Page content

title: “uv” date: 2020-04-30T16:13:23+02:00 categories: - “Draft” tags: - “dummy_tag” isCKJLanguage: false mathjax: false comments: false draft: true

How it manages version

Pyton version, under ~/.local/bin:

uv python install 3.12.7 --preview  # Adds `python3.12` to `~/.local/bin`

Project structd

tree.
.
├── .python-version
├── README.md
├── main.py
└── pyproject.toml

❯ cat .python-version
3.10

❯ cat pyproject.toml
[project]
name = "hello-world"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.10"
dependencies = []

❯ tree .venv/
.venv/
├── bin
│   ├── activate
│   ├── activate.bat
│   ├── activate.csh
│   ├── activate.fish
│   ├── activate.nu
│   ├── activate.ps1
│   ├── activate_this.py
│   ├── deactivate.bat
│   ├── pydoc.bat
│   ├── python -> /usr/bin/python3.10
│   ├── python3 -> python
│   └── python3.10 -> python
├── CACHEDIR.TAG
├── lib
│   └── python3.10
│       └── site-packages
│           ├── _virtualenv.pth
│           └── _virtualenv.py
├── lib64 -> lib
└── pyvenv.cfg


uv add requests

❯ cat pyproject.toml
[project]
name = "hello-world"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
    "requests>=2.32.3",
]

❯ tree .venv/ -L 4
.venv/
├── bin
│   ├── activate
│   ├── activate.bat
│   ├── activate.csh
│   ├── activate.fish
│   ├── activate.nu
│   ├── activate.ps1
│   ├── activate_this.py
│   ├── deactivate.bat
│   ├── normalizer
│   ├── pydoc.bat
│   ├── python -> /usr/bin/python3.10
│   ├── python3 -> python
│   └── python3.10 -> python
├── CACHEDIR.TAG
├── lib
│   └── python3.10
│       └── site-packages
│           ├── certifi
│           ├── certifi-2025.4.26.dist-info
│           ├── charset_normalizer
│           ├── charset_normalizer-3.4.2.dist-info
│           ├── idna
│           ├── idna-3.10.dist-info
│           ├── requests
│           ├── requests-2.32.3.dist-info
│           ├── urllib3
│           ├── urllib3-2.4.0.dist-info
│           ├── _virtualenv.pth
│           └── _virtualenv.py
├── lib64 -> lib
└── pyvenv.cfg