Skip to content

Commit

Permalink
Merge pull request #63 from pamelafox/dep-updates
Browse files Browse the repository at this point in the history
Update dependencies and add subscription check to script
  • Loading branch information
pamelafox authored Jan 17, 2024
2 parents c3fa08a + 946ce48 commit 34ad670
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions infra/getkey.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ if [ -z "$(az account show)" ]; then
exit 1
fi

echo "Logged in, using this subscription:"
az account show --query "{subscriptionId:id, name:name}"
echo "If that is not the correct subscription, please run 'az account set --subscription \"<SUBSCRIPTION-NAME>\"'"

echo "Getting environment variables from .env file..."
openAiService=$(grep "AZURE_OPENAI_RESOURCE=" .env | cut -d '=' -f2 | tr -d '"')
resourceGroupName=$(grep "AZURE_OPENAI_RESOURCE_GROUP=" .env | cut -d '=' -f2 | tr -d '"')
Expand Down
4 changes: 2 additions & 2 deletions src/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ dependencies = [
"openai",
"azure-identity",
"aiohttp",
"python-dotenv==0.21.1", # Pinned due to docker-in-docker issue: https://github.com/devcontainers/features/issues/616
"pyyaml==5.3.1" # Pinned due to docker-in-docker issue: https://github.com/devcontainers/features/issues/616
"python-dotenv",
"pyyaml"
]

[build-system]
Expand Down
4 changes: 2 additions & 2 deletions src/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@ pydantic-core==2.14.6
# via pydantic
pyjwt[crypto]==2.8.0
# via msal
python-dotenv==0.21.1
python-dotenv==1.0.0
# via
# quartapp (pyproject.toml)
# uvicorn
pyyaml==5.3.1
pyyaml==6.0.1
# via
# quartapp (pyproject.toml)
# uvicorn
Expand Down

0 comments on commit 34ad670

Please sign in to comment.