Skip to content

Commit cccd1d8

Browse files
Merge from aws/aws-sam-cli/develop
2 parents 46f78e4 + 1f1bfd1 commit cccd1d8

23 files changed

Lines changed: 75 additions & 77 deletions

File tree

.github/workflows/need-attention-label.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,21 +63,21 @@ pr: init dev schema black-check
6363
# to consider combining these files again
6464
update-reproducible-linux-reqs:
6565
python3.11 -m venv venv-update-reproducible-linux
66-
venv-update-reproducible-linux/bin/pip install --upgrade pip-tools pip
66+
venv-update-reproducible-linux/bin/pip install pip==24.0 pip-tools==7.4.1
6767
venv-update-reproducible-linux/bin/pip install -r requirements/base.txt
6868
venv-update-reproducible-linux/bin/pip-compile --generate-hashes --allow-unsafe -o requirements/reproducible-linux.txt
6969

7070
update-reproducible-mac-reqs:
7171
python3.11 -m venv venv-update-reproducible-mac
72-
venv-update-reproducible-mac/bin/pip install --upgrade pip-tools pip
72+
venv-update-reproducible-mac/bin/pip install pip==24.0 pip-tools==7.4.1
7373
venv-update-reproducible-mac/bin/pip install -r requirements/base.txt
7474
venv-update-reproducible-mac/bin/pip-compile --generate-hashes --allow-unsafe -o requirements/reproducible-mac.txt
7575

7676
# note that this should be run on a windows environment with python3.8 as default interpreter
7777
update-reproducible-win-reqs:
7878
python -m venv venv-update-reproducible-win
7979
.\venv-update-reproducible-win\Scripts\activate
80-
python.exe -m pip install --upgrade pip-tools pip
80+
python.exe -m pip install pip==24.0 pip-tools==7.4.1
8181
pip install -r requirements\base.txt
8282
pip-compile --generate-hashes --allow-unsafe -o requirements\reproducible-win.txt
8383

requirements/base.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
chevron~=0.12
2-
click~=8.1
2+
click==8.1.8
33
Flask<3.2
44
boto3>=1.29.2,<2
55
jmespath~=1.0.1

requirements/dev.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ types-pywin32==308.0.0.20241221; python_version<"3.9"
1515
types-PyYAML==6.0.12.20250402
1616
types-chevron==0.14.2.20250103
1717
types-psutil==7.0.0.20250401
18-
types-setuptools==80.0.0.20250429
18+
types-setuptools==80.3.0.20250505
1919
types-Pygments==2.19.0.20250305
2020
types-colorama==0.4.15.20240311
2121
types-dateparser==1.2.0.20250408
@@ -35,8 +35,8 @@ pytest==8.3.5
3535
parameterized==0.9.0
3636
pytest-xdist==3.6.1
3737
pytest-forked==1.6.0
38-
pytest-timeout==2.3.1
39-
pytest-rerunfailures==15.0; python_version>="3.9"
38+
pytest-timeout==2.4.0
39+
pytest-rerunfailures==15.1; python_version>="3.9"
4040
pytest-rerunfailures==14.0; python_version<"3.9"
4141
# NOTE (hawflau): DO NOT upgrade pytest-metadata and pytest-json-report unless pytest-json-report addresses https://github.com/numirias/pytest-json-report/issues/89
4242
pytest-metadata==3.1.1

requirements/pre-dev.txt

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

requirements/reproducible-linux.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,9 @@ chevron==0.14.0 \
248248
--hash=sha256:87613aafdf6d77b6a90ff073165a61ae5086e21ad49057aa0e53681601800ebf \
249249
--hash=sha256:fbf996a709f8da2e745ef763f482ce2d311aa817d287593a5b990d6d6e4f0443
250250
# via aws-sam-cli (setup.py)
251-
click==8.1.7 \
252-
--hash=sha256:ae74fb96c20a0277a1d615f1e4d73c8414f5a98db8b799a7931d1582f3390c28 \
253-
--hash=sha256:ca9853ad459e787e2192211578cc907e7594e294c7ccc834310722b41b9ca6de
251+
click==8.1.8 \
252+
--hash=sha256:63c132bbbed01578a06712a2d1f497bb62d9c1c0d329b7903a866228027263b2 \
253+
--hash=sha256:ed53c9d8990d83c2a27deae68e4ee337473f6330c040a31d4225c9574d16096a
254254
# via
255255
# aws-sam-cli (setup.py)
256256
# cookiecutter

requirements/reproducible-mac.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,9 @@ chevron==0.14.0 \
248248
--hash=sha256:87613aafdf6d77b6a90ff073165a61ae5086e21ad49057aa0e53681601800ebf \
249249
--hash=sha256:fbf996a709f8da2e745ef763f482ce2d311aa817d287593a5b990d6d6e4f0443
250250
# via aws-sam-cli (setup.py)
251-
click==8.1.7 \
252-
--hash=sha256:ae74fb96c20a0277a1d615f1e4d73c8414f5a98db8b799a7931d1582f3390c28 \
253-
--hash=sha256:ca9853ad459e787e2192211578cc907e7594e294c7ccc834310722b41b9ca6de
251+
click==8.1.8 \
252+
--hash=sha256:63c132bbbed01578a06712a2d1f497bb62d9c1c0d329b7903a866228027263b2 \
253+
--hash=sha256:ed53c9d8990d83c2a27deae68e4ee337473f6330c040a31d4225c9574d16096a
254254
# via
255255
# aws-sam-cli (setup.py)
256256
# cookiecutter

requirements/reproducible-win.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,9 @@ chevron==0.14.0 \
248248
--hash=sha256:87613aafdf6d77b6a90ff073165a61ae5086e21ad49057aa0e53681601800ebf \
249249
--hash=sha256:fbf996a709f8da2e745ef763f482ce2d311aa817d287593a5b990d6d6e4f0443
250250
# via aws-sam-cli (setup.py)
251-
click==8.1.7 \
252-
--hash=sha256:ae74fb96c20a0277a1d615f1e4d73c8414f5a98db8b799a7931d1582f3390c28 \
253-
--hash=sha256:ca9853ad459e787e2192211578cc907e7594e294c7ccc834310722b41b9ca6de
251+
click==8.1.8 \
252+
--hash=sha256:63c132bbbed01578a06712a2d1f497bb62d9c1c0d329b7903a866228027263b2 \
253+
--hash=sha256:ed53c9d8990d83c2a27deae68e4ee337473f6330c040a31d4225c9574d16096a
254254
# via
255255
# aws-sam-cli (setup.py)
256256
# cookiecutter

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.138.0"
5+
__version__ = "1.139.0"

samcli/cli/command.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from collections import OrderedDict
88

99
import click
10+
from click import Group
1011

1112
from samcli.cli.formatters import RootCommandHelpTextFormatter
1213
from samcli.cli.root.command_list import SAM_CLI_COMMANDS
@@ -37,7 +38,7 @@
3738
]
3839

3940

40-
class BaseCommand(click.MultiCommand):
41+
class BaseCommand(Group):
4142
"""
4243
Dynamically loads commands. It takes a list of names of Python packages representing the commands, loads
4344
these packages, and initializes them as Click commands. If a command "hello" is available in a Python package
@@ -244,7 +245,7 @@ def list_commands(self, ctx):
244245

245246
def get_command(self, ctx, cmd_name):
246247
"""
247-
Overrides method from ``click.MultiCommand`` that returns Click CLI object for given command name, if found.
248+
Overrides method from ``Group`` that returns Click CLI object for given command name, if found.
248249
249250
:param ctx: Click context
250251
:param cmd_name: Top-level command name

0 commit comments

Comments
 (0)