Advanced uv dependencies: Git deps, path deps, editable installs, groups, extras, custom indexes. Use when the user mentions git+https deps, editable installs, or private indexes.
Advanced uv dependencies: Git deps, path deps, editable installs, groups, extras, custom indexes. Use when the user mentions git+https deps, editable installs, or private indexes.
user-invocable
false
allowed-tools
Bash, Read, Grep, Glob
UV Advanced Dependencies
Quick reference for advanced dependency scenarios in UV projects.
When to Use This Skill
Use this skill when...
Use a focused sibling instead when...
Pinning a dependency to a git URL, branch, or tag, or installing in editable mode
Adding a normal PyPI dependency — use uv-project-management
Configuring [tool.uv.sources], dependency groups, extras, or custom indexes
Sharing source declarations across workspace members — use uv-workspaces
Setting up private package indexes or build-time constraints
Running an ephemeral script with --with deps — use uv-run
When This Skill Applies
Git repository dependencies
Local path dependencies
Editable installations
Dependency constraints
Custom package indexes
Dependency groups and extras
Build dependencies
Quick Reference
Git Dependencies
# Add from Git repository
uv add git+https://github.com/psf/requests
uv add git+https://github.com/pallets/flask@main
uv add git+ssh://git@github.com/user/repo.git@v1.0.0
# Specific branch, tag, or commit
uv add git+https://github.com/user/repo@feature-branch
uv add git+https://github.com/user/repo@v2.0.0
uv add git+https://github.com/user/repo@abc123
# Add to named group
uv add --group docs sphinx mkdocs
uv add --group test pytest pytest-cov
# Install specific groups
uv sync --group docs
uv sync --group test --group docs
# Install all groups
uv sync --all-groups
Extras (Optional Dependencies)
# Install package with extras
uv add 'fastapi[all]'
uv add 'sqlalchemy[postgresql,mypy]'# Define extras in pyproject.toml
[project.optional-dependencies]
dev = ["pytest", "ruff"]
docs = ["mkdocs", "mkdocs-material"]