Skip to content

Commit e2d2c2c

Browse files
authored
Merge branch 'develop' into remove-python-38
2 parents ea39efa + e7159a8 commit e2d2c2c

13 files changed

Lines changed: 35 additions & 27 deletions

File tree

requirements/dev.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ pytest-cov==5.0.0; python_version<"3.9"
99
# type checking and related stubs
1010
# mypy adds new rules in new minor versions, which could cause our PR check to fail
1111
# here we fix its version and upgrade it manually in the future
12-
mypy==1.14.1
13-
types-pywin32==308.0.0.20250128; python_version>="3.9"
12+
mypy==1.15.0
13+
types-pywin32==309.0.0.20250311; python_version>="3.9"
1414
types-pywin32==308.0.0.20241221; python_version<"3.9"
1515
types-PyYAML==6.0.12.20241230
1616
types-chevron==0.14.2.20250103
1717
types-psutil==7.0.0.20250218
18-
types-setuptools==75.8.0.20250210
19-
types-Pygments==2.19.0.20250219
18+
types-setuptools==76.0.0.20250313
19+
types-Pygments==2.19.0.20250305
2020
types-colorama==0.4.15.20240311
2121
types-dateparser==1.2.0.20250208
2222
types-docutils==0.21.0.20241128
@@ -25,12 +25,12 @@ types-pyOpenSSL==24.1.0.20240722
2525
# lucashuy: pin `types-request` based on the Python version since newer versions of
2626
# the types require a newer version of requests, which is only installed in newer versions of Python
2727
types-requests==2.31.0.6; python_version<"3.10"
28-
types-requests==2.32.0.20241016; python_version>="3.10"
28+
types-requests==2.32.0.20250306; python_version>="3.10"
2929
types-urllib3==1.26.25.14
3030

3131
# Test requirements
3232

33-
pytest==8.3.4
33+
pytest==8.3.5
3434

3535
parameterized==0.9.0
3636
pytest-xdist==3.6.1
@@ -42,7 +42,7 @@ pytest-rerunfailures==14.0; python_version<"3.9"
4242
pytest-metadata==3.1.1
4343
# NOTE (lucashuy): `pytest-json-report` was updated to `pytest-json-report-wip` as the original repository does not seem to be maintained anymore, if `-wip` is updated, validate the changes
4444
pytest-json-report-wip==1.5.1
45-
filelock==3.17.0; python_version>="3.9"
45+
filelock==3.18.0; python_version>="3.9"
4646
filelock==3.16.1; python_version<"3.9"
4747

4848
# formatter

requirements/pre-dev.txt

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

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.134.0"
5+
__version__ = "1.135.0"

samcli/lib/utils/tar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from contextlib import contextmanager
99
from pathlib import Path
1010
from tempfile import TemporaryFile
11-
from typing import IO, Callable, Dict, List, Optional, Union
11+
from typing import IO, Callable, Dict, List, Literal, Optional, Union
1212

1313
LOG = logging.getLogger(__name__)
1414

@@ -17,7 +17,7 @@
1717
def create_tarball(
1818
tar_paths: Dict[Union[str, Path], str],
1919
tar_filter: Optional[Callable[[tarfile.TarInfo], Union[None, tarfile.TarInfo]]] = None,
20-
mode: str = "w",
20+
mode: Literal["x", "x:", "a", "a:", "w", "w:", "w:tar"] = "w",
2121
dereference: bool = False,
2222
):
2323
"""
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.2.4
1+
3.2.7
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.2.4
1+
3.2.7
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.3.4
1+
3.3.7

tests/integration/testdata/buildcmd/terraform/build_image_docker/Dockerfile

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,29 @@
1-
FROM public.ecr.aws/amazonlinux/amazonlinux:2023
1+
FROM public.ecr.aws/amazonlinux/amazonlinux:2
22

33
RUN yum -y update \
4-
&& yum install -y unzip tar gzip ed less \
4+
&& yum install -y unzip tar gzip ed less wget \
55
&& rm -rf /var/cache/yum
66

7-
RUN yum -y install make \
8-
&& yum -y install zip
7+
RUN yum -y groupinstall "Development Tools"
8+
9+
RUN yum -y install openssl-devel bzip2-devel libffi-devel
910

1011
RUN yum install -y yum-utils \
1112
&& yum-config-manager --add-repo https://rpm.releases.hashicorp.com/AmazonLinux/hashicorp.repo \
1213
&& yum -y install terraform \
1314
&& terraform --version
1415

1516
# AWS Lambda Builders
16-
# AL2023 uses Python3.9 by default. This might fail in the future if that changes. We just need the proper version
17-
RUN curl -L get-pip.io | python3.9
18-
RUN pip3 install aws-lambda-builders
17+
RUN cd /tmp \
18+
&& wget https://www.python.org/ftp/python/3.9.17/Python-3.9.17.tgz \
19+
&& tar xvf Python-3.9.17.tgz \
20+
&& cd Python-3.9.17 \
21+
&& ./configure --enable-optimizations \
22+
&& make install
23+
24+
RUN python3 -m ensurepip
25+
RUN python3 -m pip install --upgrade pip
26+
RUN python3 -m pip install aws-lambda-builders
1927
RUN python3 --version
2028

2129
VOLUME /project
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.2.4
1+
3.2.7
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.2.4
1+
3.2.7

0 commit comments

Comments
 (0)