Skip to content

Commit

Permalink
deps: update
Browse files Browse the repository at this point in the history
Fixes #36
  • Loading branch information
Fedir Zadniprovskyi authored and fedirz committed Jul 16, 2024
1 parent 458d971 commit 178b540
Show file tree
Hide file tree
Showing 7 changed files with 85 additions and 78 deletions.
13 changes: 9 additions & 4 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,18 @@ tasks:
sources:
- Dockerfile.*
- faster_whisper_server/*.py
compile:
pip-compile:
cmds:
- uv pip compile --output-file requirements.txt pyproject.toml
- uv pip compile --extra dev --output-file requirements-dev.txt pyproject.toml
- uv pip compile --all-extras --output-file requirements-all.txt pyproject.toml
- uv pip compile --override overrides.txt pyproject.toml {{.CLI_ARGS}} > requirements.txt
- uv pip compile --override overrides.txt --extra dev pyproject.toml {{.CLI_ARGS}} > requirements-dev.txt
- uv pip compile --override overrides.txt --all-extras pyproject.toml {{.CLI_ARGS}} > requirements-all.txt
sources:
- pyproject.toml
pip-sync:
cmds:
- uv pip sync requirements-all.txt
sources:
- requirements-all.txt
create-multi-arch-builder: docker buildx create --name main --driver=docker-container
docker-build:
cmds:
Expand Down
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
uv
];
shellHook = ''
source .venv/bin/activate
export LD_LIBRARY_PATH=${pkgs.stdenv.cc.cc.lib}/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=${pkgs.zlib}/lib:$LD_LIBRARY_PATH
source .env
Expand Down
Empty file added overrides.txt
Empty file.
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ dependencies = [
"httpx-sse",
"httpx",
"gradio",
"openai"
]

[project.optional-dependencies]
dev = ["ruff", "pytest", "pytest-xdist", "openai"]
other = ["youtube-dl@git+https://github.com/ytdl-org/youtube-dl.git", "aider-chat"]
dev = ["ruff", "pytest", "pytest-xdist"]

other = ["youtube-dl @ git+https://github.com/ytdl-org/youtube-dl.git@37cea84f775129ad715b9bcd617251c831fcc980", "aider-chat==0.39.0"]

# https://docs.astral.sh/ruff/configuration/
[tool.ruff]
Expand Down
28 changes: 12 additions & 16 deletions requirements-all.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file was autogenerated by uv via the following command:
# uv pip compile --all-extras --output-file requirements-all.txt pyproject.toml
# uv pip compile --override overrides.txt --all-extras pyproject.toml
aider-chat==0.39.0
# via faster-whisper-server (pyproject.toml)
aiofiles==23.2.1
Expand Down Expand Up @@ -95,7 +95,7 @@ email-validator==2.2.0
# via fastapi
execnet==2.1.1
# via pytest-xdist
fastapi==0.111.0
fastapi==0.111.1
# via
# faster-whisper-server (pyproject.toml)
# gradio
Expand All @@ -113,7 +113,7 @@ flake8==7.1.0
# via aider-chat
flatbuffers==24.3.25
# via onnxruntime
fonttools==4.53.0
fonttools==4.53.1
# via matplotlib
frozenlist==1.4.1
# via
Expand Down Expand Up @@ -166,9 +166,9 @@ googleapis-common-protos==1.63.1
# aider-chat
# google-api-core
# grpcio-status
gradio==4.37.2
gradio==4.38.1
# via faster-whisper-server (pyproject.toml)
gradio-client==1.0.2
gradio-client==1.1.0
# via gradio
greenlet==3.0.3
# via
Expand Down Expand Up @@ -266,7 +266,7 @@ markupsafe==2.1.5
# aider-chat
# gradio
# jinja2
matplotlib==3.9.0
matplotlib==3.9.1
# via gradio
mccabe==0.7.0
# via
Expand Down Expand Up @@ -300,17 +300,15 @@ numpy==1.26.4
# pydeck
# scipy
# streamlit
onnxruntime==1.18.0
onnxruntime==1.18.1
# via faster-whisper
openai==1.34.0
# via
# faster-whisper-server (pyproject.toml)
# aider-chat
# litellm
orjson==3.10.5
# via
# fastapi
# gradio
orjson==3.10.6
# via gradio
packaging==24.1
# via
# aider-chat
Expand Down Expand Up @@ -486,15 +484,15 @@ rsa==4.9
# via
# aider-chat
# google-auth
ruff==0.5.0
ruff==0.5.2
# via
# faster-whisper-server (pyproject.toml)
# gradio
scipy==1.13.1
# via aider-chat
semantic-version==2.10.0
# via gradio
setuptools==70.2.0
setuptools==70.3.0
# via ctranslate2
shellingham==1.5.4
# via typer
Expand Down Expand Up @@ -526,7 +524,7 @@ starlette==0.37.2
# via fastapi
streamlit==1.35.0
# via aider-chat
sympy==1.12.1
sympy==1.13.0
# via onnxruntime
tenacity==8.3.0
# via
Expand Down Expand Up @@ -591,8 +589,6 @@ tzdata==2024.1
# via
# aider-chat
# pandas
ujson==5.10.0
# via fastapi
uritemplate==4.1.1
# via
# aider-chat
Expand Down
42 changes: 19 additions & 23 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file was autogenerated by uv via the following command:
# uv pip compile --extra dev --output-file requirements-dev.txt pyproject.toml
# uv pip compile --override overrides.txt --extra dev pyproject.toml
aiofiles==23.2.1
# via gradio
altair==5.3.0
Expand All @@ -18,7 +18,7 @@ attrs==23.2.0
# referencing
av==12.2.0
# via faster-whisper
certifi==2024.6.2
certifi==2024.7.4
# via
# httpcore
# httpx
Expand Down Expand Up @@ -47,7 +47,7 @@ email-validator==2.2.0
# via fastapi
execnet==2.1.1
# via pytest-xdist
fastapi==0.111.0
fastapi==0.111.1
# via
# faster-whisper-server (pyproject.toml)
# gradio
Expand All @@ -61,15 +61,15 @@ filelock==3.15.4
# via huggingface-hub
flatbuffers==24.3.25
# via onnxruntime
fonttools==4.53.0
fonttools==4.53.1
# via matplotlib
fsspec==2024.6.1
# via
# gradio-client
# huggingface-hub
gradio==4.37.2
gradio==4.38.1
# via faster-whisper-server (pyproject.toml)
gradio-client==1.0.2
gradio-client==1.1.0
# via gradio
h11==0.14.0
# via
Expand All @@ -88,7 +88,7 @@ httpx==0.27.0
# openai
httpx-sse==0.4.0
# via faster-whisper-server (pyproject.toml)
huggingface-hub==0.23.4
huggingface-hub==0.23.5
# via
# faster-whisper-server (pyproject.toml)
# faster-whisper
Expand All @@ -112,7 +112,7 @@ jinja2==3.1.4
# altair
# fastapi
# gradio
jsonschema==4.22.0
jsonschema==4.23.0
# via altair
jsonschema-specifications==2023.12.1
# via jsonschema
Expand All @@ -124,7 +124,7 @@ markupsafe==2.1.5
# via
# gradio
# jinja2
matplotlib==3.9.0
matplotlib==3.9.1
# via gradio
mdurl==0.1.2
# via markdown-it-py
Expand All @@ -140,14 +140,12 @@ numpy==1.26.4
# matplotlib
# onnxruntime
# pandas
onnxruntime==1.18.0
onnxruntime==1.18.1
# via faster-whisper
openai==1.35.9
openai==1.35.14
# via faster-whisper-server (pyproject.toml)
orjson==3.10.5
# via
# fastapi
# gradio
orjson==3.10.6
# via gradio
packaging==24.1
# via
# altair
Expand All @@ -171,14 +169,14 @@ protobuf==5.27.2
# via onnxruntime
pycparser==2.22
# via cffi
pydantic==2.8.0
pydantic==2.8.2
# via
# faster-whisper-server (pyproject.toml)
# fastapi
# gradio
# openai
# pydantic-settings
pydantic-core==2.20.0
pydantic-core==2.20.1
# via pydantic
pydantic-settings==2.3.4
# via faster-whisper-server (pyproject.toml)
Expand Down Expand Up @@ -223,17 +221,17 @@ requests==2.32.3
# via huggingface-hub
rich==13.7.1
# via typer
rpds-py==0.18.1
rpds-py==0.19.0
# via
# jsonschema
# referencing
ruff==0.5.0
ruff==0.5.2
# via
# faster-whisper-server (pyproject.toml)
# gradio
semantic-version==2.10.0
# via gradio
setuptools==70.2.0
setuptools==70.3.0
# via ctranslate2
shellingham==1.5.4
# via typer
Expand All @@ -248,7 +246,7 @@ soundfile==0.12.1
# via faster-whisper-server (pyproject.toml)
starlette==0.37.2
# via fastapi
sympy==1.12.1
sympy==1.13.0
# via onnxruntime
tokenizers==0.19.1
# via faster-whisper
Expand Down Expand Up @@ -276,8 +274,6 @@ typing-extensions==4.12.2
# typer
tzdata==2024.1
# via pandas
ujson==5.10.0
# via fastapi
urllib3==2.2.2
# via
# gradio
Expand Down
Loading

0 comments on commit 178b540

Please sign in to comment.