From d0aaf4978c385812b4e90aa76a2f8de2dde555f0 Mon Sep 17 00:00:00 2001 From: AdamC_Smooch <44448030+DataWearsAHood@users.noreply.github.com> Date: Wed, 7 May 2025 16:22:38 -0400 Subject: [PATCH 1/3] fix(README.md): bump python runtime version to 3.10 Addresses error below, due to Type hinting syntax only available in Python >=3.10 ``` def get_reference_list(list_name: str) -> List[str] | None: TypeError: unsupported operand type(s) for |: '_GenericAlias' and 'NoneType'. [...] ``` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5a85e67..b79527c 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ Execute the following command from inside the previously created directory to deploy the cloud function. ``` -gcloud functions deploy --entry-point main --trigger-http --runtime python39 --env-vars-file .env.yml +gcloud functions deploy --entry-point main --trigger-http --runtime python310 --env-vars-file .env.yml ``` ## Support From 1f81ae797dcbac5f2db7e6a206d2a7d82bcc9132 Mon Sep 17 00:00:00 2001 From: AdamC_Smooch <44448030+DataWearsAHood@users.noreply.github.com> Date: Wed, 7 May 2025 16:30:08 -0400 Subject: [PATCH 2/3] fix(armis/README.md): bump python runtime version to 3.10 --- armis/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/armis/README.md b/armis/README.md index 0d8daf0..abe4d5a 100644 --- a/armis/README.md +++ b/armis/README.md @@ -61,7 +61,7 @@ Execute the following command from inside the previously created directory to deploy the cloud function. ``` -gcloud functions deploy --gen2 --entry-point main --trigger-http --runtime python39 --env-vars-file .env.yml +gcloud functions deploy --gen2 --entry-point main --trigger-http --runtime python310 --env-vars-file .env.yml ``` ### Cloud Function Default Specifications @@ -84,4 +84,4 @@ gcloud functions deploy --gen2 --entry-point main --trigger-http ## Resources - [Install the gcloud CLI](https://cloud.google.com/sdk/docs/install) -- [Deploying cloud functions from local machine](https://cloud.google.com/functions/docs/deploying/filesystem) \ No newline at end of file +- [Deploying cloud functions from local machine](https://cloud.google.com/functions/docs/deploying/filesystem) From facce106925e74671071720bb58b0401530db982 Mon Sep 17 00:00:00 2001 From: AdamC_Smooch <44448030+DataWearsAHood@users.noreply.github.com> Date: Wed, 7 May 2025 16:30:34 -0400 Subject: [PATCH 3/3] fix(dataminr/README.md): bump python runtime version to 3.10 --- dataminr/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dataminr/README.md b/dataminr/README.md index c4cb6c4..e668b82 100644 --- a/dataminr/README.md +++ b/dataminr/README.md @@ -62,7 +62,7 @@ Execute the following command from inside the previously created directory to deploy the cloud function. ``` -gcloud functions deploy --gen2 --entry-point main --trigger-http --runtime python39 --env-vars-file .env.yml +gcloud functions deploy --gen2 --entry-point main --trigger-http --runtime python310 --env-vars-file .env.yml ``` ### Cloud Function Default Specifications @@ -212,4 +212,4 @@ gcloud functions deploy --gen2 --entry-point main --trigger-http | target.resource.attribute.labels[post_media_video_info_variants_url] | post.media.video_info.variants.url | | | target.resource.resource_subtype | post.media.type | | | target.url | source.link | | -| target.user.user_display_name | source.displayName | | \ No newline at end of file +| target.user.user_display_name | source.displayName | |