Skip to content

Commit

Permalink
Feature: SAM Accelerate
Browse files Browse the repository at this point in the history
feat: Accelerate
  • Loading branch information
qingchm authored Sep 18, 2021
2 parents 187eeaf + 76caa20 commit 04b9678
Show file tree
Hide file tree
Showing 135 changed files with 12,943 additions and 1,261 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
10 changes: 9 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,17 @@ for:
- "pytest -n 4 tests/functional"

# Runs only in Linux, logging Public ECR when running canary and cred is available
- sh: "
if [[ -n $BY_CANARY ]] && [[ -n $DOCKER_USER ]] && [[ -n $DOCKER_PASS ]];
then echo Logging in Docker Hub; echo $DOCKER_PASS | docker login --username $DOCKER_USER --password-stdin registry-1.docker.io;
fi"
- 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: "
if [[ -n $BY_CANARY ]] || [[ -n $PRIVATE ]];
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
19 changes: 19 additions & 0 deletions installer/pyinstaller/hook-samcli.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,25 @@

hiddenimports = SAM_CLI_HIDDEN_IMPORTS

hiddenimports = [
"cookiecutter.extensions",
"jinja2_time",
"text_unidecode",
"samtranslator",
"samcli.commands.init",
"samcli.commands.validate.validate",
"samcli.commands.build",
"samcli.commands.local.local",
"samcli.commands.package",
"samcli.commands.deploy",
"samcli.commands.logs",
"samcli.commands.publish",
# default hidden import 'pkg_resources.py2_warn' is added
# since pyInstaller 4.0.
"pkg_resources.py2_warn",
"aws_lambda_builders.workflows",
"configparser",
]
datas = (
hooks.collect_data_files("samcli")
+ hooks.collect_data_files("samtranslator")
Expand Down
5 changes: 5 additions & 0 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,8 @@ serverlessrepo==0.1.10
aws_lambda_builders==1.7.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'
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
Loading

0 comments on commit 04b9678

Please sign in to comment.