Skip to content

Conversation

waketzheng
Copy link
Contributor

Description

uv is much more quickly than poetry, and it can build lib with dynamic version when using pdm-backend.

To use uv:

  • Install
pip install --U --user pipx
pipx ensurepath
pipx install uv
  • Set mirror
export UV_DEFAULT_INDEX="https://pypi.tuna.tsinghua.edu.cn/simple/"

Or:

mkdir -p ~/.config/uv
echo '
[[index]]
url = "https://pypi.tuna.tsinghua.edu.cn/simple/"
default = true
' > ~/.config/uv/uv.toml

See more at https://docs.astral.sh/uv/concepts/configuration-files/

  • Create virtual environment
uv venv
  • Activate virtual environment
source .venv/bin/activate
# For Windows: .venv\Scripts\activate
  • Install deps
uv sync --all-extras --all-groups

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant