Skip to content

Commit aa79a25

Browse files
Merge from aws/aws-sam-cli/develop
2 parents 9277063 + 3f0decd commit aa79a25

File tree

10 files changed

+575
-557
lines changed

10 files changed

+575
-557
lines changed

requirements/base.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ boto3>=1.29.2,<2
55
jmespath~=1.0.1
66
ruamel_yaml~=0.18.6
77
PyYAML~=6.0,>=6.0.1
8-
cookiecutter~=2.5.0
8+
cookiecutter~=2.6.0
99
aws-sam-translator==1.85.0
1010
#docker minor version updates can include breaking changes. Auto update micro version only.
1111
docker~=7.0.0
1212
dateparser~=1.2
1313
requests~=2.31.0
14-
aws_lambda_builders==1.46.0
14+
aws_lambda_builders==1.47.0
1515
tomlkit==0.12.3
16-
watchdog==3.0.0
16+
watchdog==4.0.0
1717
rich~=13.7.0
1818
pyopenssl~=24.0.0
1919
# Pin to <4.18 to until SAM-T no longer uses RefResolver
@@ -28,7 +28,7 @@ regex!=2021.10.8
2828
tzlocal==5.2
2929

3030
#Adding cfn-lint dependency for SAM validate
31-
cfn-lint~=0.85.1
31+
cfn-lint~=0.85.2
3232

3333
# Type checking boto3 objects
34-
boto3-stubs[apigateway,cloudformation,ecr,iam,lambda,s3,schemas,secretsmanager,signer,stepfunctions,sts,xray,sqs,kinesis]==1.34.43
34+
boto3-stubs[apigateway,cloudformation,ecr,iam,lambda,s3,schemas,secretsmanager,signer,stepfunctions,sts,xray,sqs,kinesis]==1.34.52

requirements/dev.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
-r pre-dev.txt
22

3-
coverage==7.4.1
3+
coverage==7.4.3
44
pytest-cov==4.1.0
55

66

@@ -12,19 +12,19 @@ types-pywin32==306.0.0.20240130
1212
types-PyYAML==6.0.12.12
1313
types-chevron==0.14.2.20240106
1414
types-psutil==5.9.5.20240205
15-
types-setuptools==69.1.0.20240215
15+
types-setuptools==69.1.0.20240229
1616
types-Pygments==2.17.0.20240106
1717
types-colorama==0.4.15.20240205
1818
types-dateparser==1.1.4.20240106
19-
types-docutils==0.20.0.20240201
19+
types-docutils==0.20.0.20240227
2020
types-jsonschema==4.21.0.20240118
21-
types-pyOpenSSL==24.0.0.20240130
21+
types-pyOpenSSL==24.0.0.20240228
2222
# as of types-requests>=2.31.0.7, this now requires `urllib3>2`, pin we are able to upgrade
2323
types-requests==2.31.0.6
2424
types-urllib3==1.26.25.14
2525

2626
# Test requirements
27-
pytest~=8.0.0
27+
pytest~=8.0.1
2828
parameterized==0.9.0
2929
pytest-xdist==3.5.0
3030
pytest-forked==1.6.0

requirements/pre-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ruff==0.2.1
1+
ruff==0.2.2

requirements/pyinstaller-build.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Executable binary builder requirements
2-
setuptools==69.1.0
2+
setuptools==69.1.1
33
pyinstaller==6.4.0

requirements/reproducible-linux.txt

Lines changed: 182 additions & 180 deletions
Large diffs are not rendered by default.

requirements/reproducible-mac.txt

Lines changed: 185 additions & 183 deletions
Large diffs are not rendered by default.

requirements/reproducible-win.txt

Lines changed: 182 additions & 180 deletions
Large diffs are not rendered by default.

samcli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
SAM CLI version
33
"""
44

5-
__version__ = "1.110.0"
5+
__version__ = "1.111.0"

samcli/local/docker/container.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ def wait_for_http_response(self, name, event, stdout) -> Tuple[Union[str, bytes]
402402

403403
try:
404404
# if response is an image then json.loads/dumps will throw a UnicodeDecodeError so return raw content
405-
if "image" in resp.headers["Content-Type"]:
405+
if resp.headers.get("Content-Type") and "image" in resp.headers["Content-Type"]:
406406
return resp.content, True
407407
return json.dumps(json.loads(resp.content), ensure_ascii=False), False
408408
except json.JSONDecodeError:

tests/integration/buildcmd/test_build_cmd.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ def test_with_default_requirements(self, runtime, use_container):
137137
]
138138
)
139139
def test_with_dockerfile_extension(self, runtime, use_container):
140+
if not runtime_supported_by_docker(f"python{runtime}") and IS_WINDOWS:
141+
self.skipTest(RUNTIME_NOT_SUPPORTED_BY_DOCKER_MSG)
142+
140143
_tag = uuid4().hex
141144
overrides = {
142145
"Runtime": runtime,
@@ -1230,6 +1233,9 @@ def test_dotnet_in_process(self, runtime, code_uri, mode, architecture="x86_64")
12301233
command_result = run_command(cmdlist, cwd=self.working_dir, env=newenv)
12311234
self.assertEqual(command_result.process.returncode, 0)
12321235

1236+
if not runtime_supported_by_docker(runtime) and IS_WINDOWS:
1237+
self.skipTest(RUNTIME_NOT_SUPPORTED_BY_DOCKER_MSG)
1238+
12331239
self._verify_built_artifact(
12341240
self.default_build_dir,
12351241
self.FUNCTION_LOGICAL_ID,
@@ -1280,6 +1286,9 @@ def test_dotnet_in_process(self, runtime, code_uri, mode, architecture="x86_64")
12801286
)
12811287
@skipIf(SKIP_DOCKER_TESTS or SKIP_DOCKER_BUILD, SKIP_DOCKER_MESSAGE)
12821288
def test_dotnet_in_container_mount_with_write_explicit(self, runtime, code_uri, mode, architecture="x86_64"):
1289+
if not runtime_supported_by_docker(runtime) and IS_WINDOWS:
1290+
self.skipTest(RUNTIME_NOT_SUPPORTED_BY_DOCKER_MSG)
1291+
12831292
overrides = {
12841293
"Runtime": runtime,
12851294
"CodeUri": code_uri,
@@ -1360,6 +1369,9 @@ def test_dotnet_in_container_mount_with_write_interactive(
13601369
mode,
13611370
architecture="x86_64",
13621371
):
1372+
if not runtime_supported_by_docker(runtime) and IS_WINDOWS:
1373+
self.skipTest(RUNTIME_NOT_SUPPORTED_BY_DOCKER_MSG)
1374+
13631375
overrides = {
13641376
"Runtime": runtime,
13651377
"CodeUri": code_uri,

0 commit comments

Comments
 (0)