-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We've been installing Python dependencies with Pip, and not tracking their versions. Since we've started using uv in some other Python projects it probably makes sense to add here so that speech-to-text can be tracked by infra-team's weekly dependency update process. Closes #80 Refs #65
- Loading branch information
Showing
7 changed files
with
2,247 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
|
||
#!/bin/bash | ||
|
||
# This script is called by our weekly dependency update job in Jenkins | ||
|
||
pip3 install uv > was-pywb.txt && | ||
~/.local/bin/uv lock --upgrade >> speech-to-text.txt | ||
|
||
retVal=$? | ||
|
||
git add uv.lock && | ||
git commit -m "Update Python dependencies" | ||
|
||
if [ $retVal -ne 0 ]; then | ||
echo "ERROR UPDATING PYTHON (speech-to-text)" | ||
cat speech-to-text.txt | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
AWS_ACCESS_KEY_ID=CHANGE_ME | ||
AWS_SECRET_ACCESS_KEY=CHANGE_ME | ||
AWS_DEFAULT_REGION=us-west-2 | ||
AWS_ROLE_ARN=CHANGE_ME | ||
SPEECH_TO_TEXT_S3_BUCKET=CHANGE_ME | ||
SPEECH_TO_TEXT_BATCH_JOB_QUEUE=CHANGE_ME | ||
SPEECH_TO_TEXT_BATCH_JOB_DEFINITION=CHANGE_ME | ||
SPEECH_TO_TEXT_DONE_SQS_QUEUE=CHANGE_ME | ||
SPEECH_TO_TEXT_S3_BUCKET=my-speech-to-text-development | ||
SPEECH_TO_TEXT_BATCH_JOB_QUEUE=my-speech-to-text-development | ||
SPEECH_TO_TEXT_BATCH_JOB_DEFINITION=my-speech-to-text-development | ||
SPEECH_TO_TEXT_DONE_SQS_QUEUE=speech-to-text-development | ||
HONEYBADGER_API_KEY=CHANGE_ME | ||
HONEYBADGER_ENV=CHANGE_ME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[project] | ||
name = "speech-to-text" | ||
version = "0.0.1" | ||
description = "" | ||
readme = "README.md" | ||
requires-python = ">= 3.8" | ||
dependencies = [ | ||
"boto3>=1.36.9", | ||
"boto3-stubs[s3,sqs,sts]>=1.36.9", | ||
"honeybadger>=0.20.3", | ||
"moto[s3,sqs,sts]>=5.0.27", | ||
"openai-whisper>=20240930", | ||
"python-dotenv[cli]>=1.0.1", | ||
] | ||
|
||
[dependency-groups] | ||
dev = [ | ||
"mypy>=1.14.1", | ||
"pytest>=8.3.4", | ||
"pytest-cov>=5.0.0", | ||
"ruff>=0.9.4", | ||
] |
This file was deleted.
Oops, something went wrong.