From 3dcdcba6d1cb07a6f08f7dae1f4ee00a1f29b296 Mon Sep 17 00:00:00 2001 From: Samuel Anderson <119458760+AWS-Samuel@users.noreply.github.com> Date: Thu, 13 Mar 2025 21:46:48 +0000 Subject: [PATCH] chore: update python used in tests Signed-off-by: Samuel Anderson <119458760+AWS-Samuel@users.noreply.github.com> --- src/deadline_test_fixtures/deadline/worker.py | 8 ++++---- test/test_copyright_headers.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/deadline_test_fixtures/deadline/worker.py b/src/deadline_test_fixtures/deadline/worker.py index 8821d69..ff1a5a7 100644 --- a/src/deadline_test_fixtures/deadline/worker.py +++ b/src/deadline_test_fixtures/deadline/worker.py @@ -609,11 +609,11 @@ def userdata(self, s3_files) -> str: userdata = f""" $ProgressPreference = 'SilentlyContinue' -Invoke-WebRequest -Uri "https://www.python.org/ftp/python/3.12.8/python-3.12.8-amd64.exe" -OutFile "C:\python-3.12.8-amd64.exe" -$installerHash=(Get-FileHash "C:\python-3.12.8-amd64.exe" -Algorithm "MD5") -$expectedHash="2f2ab2472a6aa29f8755c72c58f58f4b" +Invoke-WebRequest -Uri "https://www.python.org/ftp/python/3.12.9/python-3.12.9-amd64.exe" -OutFile "C:\python-3.12.9-amd64.exe" +$installerHash=(Get-FileHash "C:\python-3.12.9-amd64.exe" -Algorithm "MD5") +$expectedHash="1cfb1bbf96007b12b98db895dcd86487" if ($installerHash.Hash -ne $expectedHash) {{ throw "Could not verify Python installer." }} -Start-Process -FilePath "C:\python-3.12.8-amd64.exe" -ArgumentList "/quiet InstallAllUsers=1 PrependPath=1 AppendPath=1" -Wait +Start-Process -FilePath "C:\python-3.12.9-amd64.exe" -ArgumentList "/quiet InstallAllUsers=1 PrependPath=1 AppendPath=1" -Wait Invoke-WebRequest -Uri "https://awscli.amazonaws.com/AWSCLIV2.msi" -Outfile "C:\AWSCLIV2.msi" Start-Process msiexec.exe -ArgumentList "/i C:\AWSCLIV2.msi /quiet" -Wait $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") diff --git a/test/test_copyright_headers.py b/test/test_copyright_headers.py index 00e5151..ac8e9fc 100644 --- a/test/test_copyright_headers.py +++ b/test/test_copyright_headers.py @@ -8,7 +8,7 @@ _copyright_header_re = re.compile( r"Copyright Amazon\.com, Inc\. or its affiliates\. All Rights Reserved\.", re.IGNORECASE ) -_generated_by_scm = re.compile(r"# file generated by setuptools_scm", re.IGNORECASE) +_generated_by_scm = re.compile(r"# file generated by setuptools[_-]scm", re.IGNORECASE) class CopyrightHeaderNotFoundException(Exception):