mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-19 08:28:10 +02:00
feat: add devcontainer for local setup
This commit is contained in:
parent
a725fda274
commit
6b33addb25
26 changed files with 671 additions and 130 deletions
|
|
@ -25,24 +25,30 @@ if (-not $Dev) {
|
|||
git submodule update --init --recursive
|
||||
}
|
||||
|
||||
# Use uv (https://github.com/astral-sh/uv) for ~5-10x faster installs.
|
||||
if (-not (Get-Command uv -ErrorAction SilentlyContinue)) {
|
||||
Write-Host "Installing uv..."
|
||||
Invoke-RestMethod https://astral.sh/uv/install.ps1 | Invoke-Expression
|
||||
$env:Path = "$env:USERPROFILE\.local\bin;$env:Path"
|
||||
}
|
||||
|
||||
# Install dograh API requirements first so pipecat's extras win on any
|
||||
# shared transitive dependencies (matches api/Dockerfile and CI workflow).
|
||||
Write-Host "Installing dograh API requirements..."
|
||||
pip install -r api/requirements.txt
|
||||
uv pip install -r api/requirements.txt
|
||||
|
||||
if ($Dev) {
|
||||
Write-Host "Installing dograh API dev requirements..."
|
||||
pip install -r api/requirements.dev.txt
|
||||
uv pip install -r api/requirements.dev.txt
|
||||
}
|
||||
|
||||
# Install pipecat in editable mode with all extras
|
||||
Write-Host "Installing pipecat dependencies..."
|
||||
pip install -e './pipecat[cartesia,deepgram,openai,elevenlabs,groq,google,azure,sarvam,soundfile,silero,webrtc,speechmatics,openrouter,camb]'
|
||||
uv pip install -e './pipecat[cartesia,deepgram,openai,elevenlabs,groq,google,azure,sarvam,soundfile,silero,webrtc,speechmatics,openrouter,camb]'
|
||||
|
||||
if ($Dev) {
|
||||
Write-Host "Installing pipecat dev dependencies..."
|
||||
pip install --upgrade pip
|
||||
pip install --group pipecat/pyproject.toml:dev
|
||||
uv pip install --group pipecat/pyproject.toml:dev
|
||||
}
|
||||
|
||||
Write-Host "Setup complete! Requirements are installed."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue