From 60b9d72a48497db356a5451a8b8d6aa0f041a1cd Mon Sep 17 00:00:00 2001
From: Michael Hall <mlh0079@uah.edu>
Date: Tue, 9 Jul 2024 14:05:07 -0500
Subject: [PATCH]  - Updating to python 3.10

---
 .github/workflows/python-package.yml | 8 ++++++--
 main.tf                              | 2 +-
 requirements-dev.txt                 | 6 +++---
 requirements.txt                     | 6 +++---
 4 files changed, 13 insertions(+), 9 deletions(-)

diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml
index c743a04..3159c9f 100644
--- a/.github/workflows/python-package.yml
+++ b/.github/workflows/python-package.yml
@@ -11,7 +11,7 @@ jobs:
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        python-version: ['3.8' ]
+        python-version: ['3.10' ]
 
     steps:
       - uses: actions/checkout@v3
@@ -44,7 +44,7 @@ jobs:
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        python-version: ['3.8' ]
+        python-version: ['3.10' ]
     steps:
         - uses: actions/checkout@v3
         - name: Get tag version
@@ -60,7 +60,11 @@ jobs:
         - name: Build a release
           run: |
             python --version
+            pwd
+            ls
             python create_package.py
+            
+            find -name ghrc_ghrc_rds_lambda_package.zip
             bash create_release.sh $SOURCE_TAG
           env:
             SOURCE_TAG: ${{ steps.tag_name.outputs.SOURCE_TAG }}
diff --git a/main.tf b/main.tf
index 7cf1d0b..f4c4a97 100644
--- a/main.tf
+++ b/main.tf
@@ -9,7 +9,7 @@ resource "aws_lambda_function" "rds_lambda" {
   function_name = "${var.stack_prefix}-rds-lambda"
   source_code_hash = filebase64sha256("${path.module}/${local.lambda_package}")
   handler = "task.lambda_handler.handler"
-  runtime = "python3.8"
+  runtime = "python3.10"
   filename = "${path.module}/${local.lambda_package}"
   role = var.cumulus_lambda_role_arn
   timeout = var.timeout
diff --git a/requirements-dev.txt b/requirements-dev.txt
index 2ff7372..741d998 100644
--- a/requirements-dev.txt
+++ b/requirements-dev.txt
@@ -1,3 +1,3 @@
-pytest==6.1.2
-flake8==3.8.4
-coverage==6.3.2
+pytest==7.4.3
+flake8==6.1.0
+coverage==7.3.2
diff --git a/requirements.txt b/requirements.txt
index 7e00c86..e85597f 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,3 +1,3 @@
-boto3~=1.26.90
-psycopg2-binary~=2.9.7
-cumulus-message-adapter-python~=2.2.0
\ No newline at end of file
+boto3==1.26.165
+cumulus_message_adapter_python==2.2.0
+psycopg2-binary==2.9.9