-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1413 from awslabs/develop
chore: Release SAM CLI v0.22
- Loading branch information
Showing
219 changed files
with
8,176 additions
and
8,866 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
repos: | ||
- repo: https://github.com/python/black | ||
rev: 19.3b0 | ||
hooks: | ||
- id: black | ||
language_version: python3.7 | ||
exclude_types: ['markdown', 'ini', 'toml'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
version: 1.0.{build} | ||
image: Windows Server 2019 | ||
build: off | ||
|
||
# Change the clone folder to somewhere in "D:\" because this is shared by default with Docker. We need this to mount folders. | ||
clone_folder: D:\source | ||
|
||
environment: | ||
AWS_DEFAULT_REGION: us-east-1 | ||
SAM_CLI_DEV: 1 | ||
|
||
# In Windows, tempdir is usually in C:\. But in AppVeyor only D:\ is shared in Docker. | ||
# Therefore change TEMPDIR it to D: for invoke tests to work. Python uses $TMPDIR envvar | ||
# to find root of tempdir | ||
TMPDIR: D:\tmp | ||
TEMP: D:\tmp | ||
TMP: D:\tmp | ||
|
||
# MSI Installers only use Py3.6.6. It is sufficient to test with this version here. | ||
PYTHON_HOME: "C:\\Python36-x64" | ||
PYTHON_SCRIPTS: "C:\\Python36-x64\\Scripts" | ||
PYTHON_EXE: "C:\\Python36-x64\\python.exe" | ||
PYTHON_VERSION: '3.6.8' | ||
PYTHON_ARCH: '64' | ||
HOME: 'C:\Users\appveyor' | ||
HOMEDRIVE: 'C:' | ||
HOMEPATH: 'C:\Users\appveyor' | ||
|
||
init: | ||
# Uncomment this for RDP | ||
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) | ||
- ps: gcim Win32_Processor | % { "$($_.NumberOfLogicalProcessors) logical CPUs" } | ||
- ps: gcim Win32_OperatingSystem | % { "$([int]($_.TotalVisibleMemorySize/1mb)) Gb" } | ||
|
||
cache: | ||
- C:\ProgramData\chocolatey\bin -> appveyor.yml | ||
- C:\ProgramData\chocolatey\lib -> appveyor.yml | ||
|
||
install: | ||
|
||
# Make sure the temp directory exists for Python to use. | ||
- ps: "mkdir -Force D:\\tmp" | ||
- "echo %PATH%" | ||
- "python --version" | ||
|
||
# Upgrade setuptools, wheel and virtualenv | ||
- "python -m pip install --upgrade setuptools wheel virtualenv" | ||
|
||
# Create new virtual environment with chosen python version and activate it | ||
- "rm -rf venv" | ||
- "dir C:\\Python36-x64" | ||
- "virtualenv -p %PYTHON_EXE% venv" | ||
- "venv\\Scripts\\activate" | ||
- "python -c \"import sys; print(sys.executable)\"" | ||
- "python --version" | ||
|
||
# Actually install SAM CLI's dependencies | ||
- "pip install -e \".[dev]\"" | ||
|
||
|
||
# To run Nodejs workflow integ tests | ||
- "choco install nodejs-lts -y --force" | ||
- "refreshenv" | ||
# setup Ruby | ||
- "choco install ruby --version 2.5.3.1 --force -y" | ||
- "refreshenv" | ||
- "ruby --version" | ||
- "gem --version" | ||
- "gem install bundler -v 2.0.2" | ||
- "refreshenv" | ||
- "bundler --version" | ||
- "echo %PATH%" | ||
|
||
# setup Java, Maven and Gradle | ||
- "refreshenv" | ||
- "choco install jdk8 -y --force" | ||
- "refreshenv" | ||
- "choco install maven -y --force" | ||
- "refreshenv" | ||
- "choco install gradle -y --force" | ||
- "refreshenv" | ||
- "java -version" | ||
- "gradle -v" | ||
- "mvn --version" | ||
|
||
# Switch to Docker Linux containers | ||
- ps: Switch-DockerLinux | ||
|
||
# Echo final Path | ||
- "echo %PATH%" | ||
|
||
test_script: | ||
# Reactivate virtualenv before running tests | ||
- "venv\\Scripts\\activate" | ||
- "docker system prune -a -f" | ||
- "pytest -vv tests/integration" | ||
|
||
# Uncomment for RDP | ||
# on_finish: | ||
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[build-system] | ||
requires = ["setuptools", "wheel"] # PEP 508 specifications. | ||
|
||
|
||
[tool.black] | ||
line-length = 120 | ||
target_version = ['py37', 'py27', 'py36'] | ||
exclude = ''' | ||
( | ||
/( | ||
\.eggs # exclude a few common directories in the | ||
| \.git # root of the project | ||
| \.tox | ||
| \.venv | ||
| build | ||
| dist | ||
| pip-wheel-metadata | ||
| samcli/local/init/templates | ||
)/ | ||
) | ||
''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
[pytest] | ||
env = | ||
AWS_DEFAULT_REGION = ap-southeast-1 | ||
|
||
filterwarnings = | ||
error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
coverage==4.3.4 | ||
flake8==3.3.0 | ||
tox==2.2.1 | ||
pytest-cov==2.4.0 | ||
# astroid > 2.0.4 is not compatible with pylint1.7 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
arrow==0.15.2 | ||
attrs==19.1.0 | ||
aws-lambda-builders==0.4.0 | ||
aws-sam-translator==1.14.0 | ||
binaryornot==0.4.4 | ||
boto3==1.9.228 | ||
botocore==1.12.228 | ||
certifi==2019.9.11 | ||
chardet==3.0.4 | ||
chevron==0.13.1 | ||
Click==7.0 | ||
cookiecutter==1.6.0 | ||
dateparser==0.7.1 | ||
docker==4.0.2 | ||
docutils==0.15.2 | ||
Flask==1.0.4 | ||
future==0.17.1 | ||
idna==2.8 | ||
itsdangerous==1.1.0 | ||
Jinja2==2.10.1 | ||
jinja2-time==0.2.0 | ||
jmespath==0.9.4 | ||
jsonschema==3.0.2 | ||
MarkupSafe==1.1.1 | ||
poyo==0.5.0 | ||
pyrsistent==0.15.4 | ||
python-dateutil==2.8.0 | ||
pytz==2019.2 | ||
PyYAML==5.1.2 | ||
regex==2019.8.19 | ||
requests==2.22.0 | ||
s3transfer==0.2.1 | ||
serverlessrepo==0.1.9 | ||
six==1.11.0 | ||
tzlocal==2.0.0 | ||
urllib3==1.25.3 | ||
websocket-client==0.56.0 | ||
Werkzeug==0.15.6 | ||
whichcraft==0.6.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
SAM CLI version | ||
""" | ||
|
||
__version__ = '0.21.0' | ||
__version__ = "0.22.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.