From 946ce4800df6021e37aa16a3e3b6033812c60461 Mon Sep 17 00:00:00 2001 From: Pamela Fox Date: Wed, 17 Jan 2024 23:09:41 +0000 Subject: [PATCH] Update dependencies and add subscription check to script --- infra/getkey.sh | 4 ++++ src/pyproject.toml | 4 ++-- src/requirements.txt | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/infra/getkey.sh b/infra/getkey.sh index 2176e1a..3a341cf 100755 --- a/infra/getkey.sh +++ b/infra/getkey.sh @@ -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 \"\"'" + 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 '"') diff --git a/src/pyproject.toml b/src/pyproject.toml index 93474f6..68d1c1e 100644 --- a/src/pyproject.toml +++ b/src/pyproject.toml @@ -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] diff --git a/src/requirements.txt b/src/requirements.txt index 3265ca5..af7af6a 100644 --- a/src/requirements.txt +++ b/src/requirements.txt @@ -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