Files
Tirsvad bc24f6d018
Tests / Run the tests (pull_request) Successful in 1m1s
Document Python 3.13 on Debian 12: the apt python3 is 3.11
No issue closed: documentation fix found while verifying the Debian commands.
2026-10-13 17:03:15 +08:00

1.3 KiB

🌐 English · Dansk · Bahasa Melayu

Pemasangan

Projek ini memerlukan Python 3.13 atau lebih baharu. Ia tiada kebergantungan masa jalan; pytest, ruff, mypy, yamllint dan actionlint ialah alat pembangunan.

Windows PowerShell

python -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"

Linux Debian

Pada Debian 13 (trixie) atau lebih baharu, python3 ialah 3.13:

sudo apt install python3 python3-venv
python3 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"

Pada Debian 12 (bookworm), python3 ialah 3.11 dan pip enggan memasang projek (requires a different Python). Dapatkan Python 3.13 dengan uv dan gunakannya untuk .venv:

sudo apt install python3 python3-venv
python3 -m venv .uvenv
.uvenv/bin/python -m pip install uv
.uvenv/bin/uv python install 3.13
.uvenv/bin/uv venv --seed --python 3.13 .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"

macOS

python3 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"

Seterusnya: Penggunaan.