Skip to content

uv 極速本地安裝 ​

OneTTS 深度採用 uv 作為原生 Python 套件與虛擬環境管理器。


⚡ 基於 uv 的極速部署 ​

1. 安裝 uv ​

bash
# macOS & Linux
curl -LsSf https://astral.sh/uv/install.sh | sh

2. 複製原始碼與相依套件同步 ​

bash
git clone https://github.com/codeAndxv/OneTTS.git
cd OneTTS

# 一鍵建立虛擬環境並鎖定安裝開發與生產相依套件
uv sync --extra dev

3. 極速啟動服務 ​

bash
uv run uvicorn server.main:app --host 0.0.0.0 --port 8030

4. 執行單元測試 ​

bash
uv run pytest

Released under the Apache-2.0 License.