Skip to content

Commit

Permalink
feat: Accelerate (#3386)
Browse files Browse the repository at this point in the history
Co-authored-by: Jacob Fuss <[email protected]>
Co-authored-by: Mehmet Nuri Deveci <[email protected]>
Co-authored-by: mingkun2020 <[email protected]>
Co-authored-by: Qingchuan Ma <[email protected]>
Co-authored-by: aws-sam-cli-bot <[email protected]>
  • Loading branch information
6 people authored Oct 26, 2021
1 parent eca103a commit ec9f5d8
Show file tree
Hide file tree
Showing 167 changed files with 16,189 additions and 1,728 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,11 @@ env.bak/
venv.bak/
venv-update-reproducible-requirements/

env.*/
venv.*/
.env.*/
.venv.*/

# Spyder project settings
.spyderproject
.spyproject
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ for:
# Runs only in Linux, logging Public ECR when running canary and cred is available
- sh: "
if [[ -n $BY_CANARY ]];
then echo Logging in Public ECR; aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws;
then echo Logging in Public ECR; aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws;
fi"

- sh: "pytest -vv tests/integration"
Expand Down
9 changes: 7 additions & 2 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,15 @@ docker~=4.2.0
dateparser~=1.0
requests==2.25.1
serverlessrepo==0.1.10
aws_lambda_builders==1.8.1
aws_lambda_builders==1.9.0
tomlkit==0.7.2
watchdog==2.1.2

# Needed for supporting Protocol in Python 3.6
typing_extensions==3.10.0.0
# Needed for supporting dataclasses decorator in Python3.6
dataclasses==0.8; python_version < '3.7'
# NOTE: regex is not a direct dependency of SAM CLI, but pin to 2021.9.30 due to 2021.10.8 not working on M1 Mac - https://bitbucket.org/mrabarnett/mrab-regex/issues/399/missing-wheel-for-macosx-and-the-new-m1
regex==2021.9.30
# NOTE: tzlocal is not a direct dependency of SAM CLI, but pin to 3.0 as 4.0 break appveyor jobs
tzlocal==3.0
tzlocal==3.0
17 changes: 9 additions & 8 deletions requirements/reproducible-linux.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ attrs==20.3.0 \
--hash=sha256:31b2eced602aa8423c2aea9c76a724617ed67cf9513173fd3a4f03e3a929c7e6 \
--hash=sha256:832aa3cde19744e49938b91fea06d69ecb9e649c93ba974535d08ad92164f700
# via jsonschema
aws-lambda-builders==1.8.1 \
--hash=sha256:21397c8596415506f3c450bbded5a5d361ba40af782034f3b58c17f088cd1410 \
--hash=sha256:7c2672cb9c0b4a5f5f24707ed25808e4920fc87c0ebec4d76dd6c50d02f3aa47 \
--hash=sha256:8fd7be03216fe9eee81875bef5e8d73fd7f5ddbc832646bc0d625a21be75a835
aws-lambda-builders==1.9.0 \
--hash=sha256:1498fb374d3f2e289a78a4843cfcee86f777011cd8d3c29f38826c16239839f9 \
--hash=sha256:335966e9dc19ab37ad9a600dbcf90ecb8d47f1fcffbf83ef6eebe61fcbdd6731 \
--hash=sha256:742a67123dc0ea91983e7a6947dad0f23dff9c958a28da46162ee675ae257273
# via aws-sam-cli (setup.py)
aws-sam-translator==1.39.0 \
--hash=sha256:410d11a14a71f5ecab9cd1c5c4415b3c2419b8a8ee4fb9e887f15bdcc6c7ac38 \
Expand Down Expand Up @@ -318,12 +318,13 @@ tomlkit==0.7.2 \
--hash=sha256:173ad840fa5d2aac140528ca1933c29791b79a374a0861a80347f42ec9328117 \
--hash=sha256:d7a454f319a7e9bd2e249f239168729327e4dd2d27b17dc68be264ad1ce36754
# via aws-sam-cli (setup.py)
typing-extensions==3.10.0.2 \
--hash=sha256:49f75d16ff11f1cd258e1b988ccff82a3ca5570217d7ad8c5f48205dd99a677e \
--hash=sha256:d8226d10bc02a29bcc81df19a26e56a9647f8b0a6d4a83924139f4a8b01f17b7 \
--hash=sha256:f1d25edafde516b146ecd0613dabcc61409817af4766fbbcfb8d1ad4ec441a34
typing-extensions==3.10.0.0 \
--hash=sha256:0ac0f89795dd19de6b97debb0c6af1c70987fd80a2d62d1958f7e56fcc31b497 \
--hash=sha256:50b6f157849174217d0656f99dc82fe932884fb250826c18350e159ec6cdf342 \
--hash=sha256:779383f6086d90c99ae41cf0ff39aac8a7937a9283ce0a414e5dd782f4c94a84
# via
# arrow
# aws-sam-cli (setup.py)
# importlib-metadata
tzlocal==3.0 \
--hash=sha256:c736f2540713deb5938d789ca7c3fc25391e9a20803f05b60ec64987cf086559 \
Expand Down
2 changes: 2 additions & 0 deletions samcli/cli/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
"samcli.commands.delete",
"samcli.commands.logs",
"samcli.commands.publish",
"samcli.commands.traces",
"samcli.commands.sync",
"samcli.commands.pipeline.pipeline",
# We intentionally do not expose the `bootstrap` command for now. We might open it up later
# "samcli.commands.bootstrap",
Expand Down
9 changes: 9 additions & 0 deletions samcli/cli/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def __init__(self):
self._aws_region = None
self._aws_profile = None
self._session_id = str(uuid.uuid4())
self._experimental = False

@property
def debug(self):
Expand Down Expand Up @@ -97,6 +98,14 @@ def session_id(self) -> str:
"""
return self._session_id

@property
def experimental(self):
return self._experimental

@experimental.setter
def experimental(self, value):
self._experimental = value

@property
def command_path(self):
"""
Expand Down
Loading

0 comments on commit ec9f5d8

Please sign in to comment.