-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release v0.31.0 #1511
Merged
Release v0.31.0 #1511
Conversation
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
If no explicit `--event` is passed in, the default assumption is that no event is desired. STDIN events must be explicit. This is a breaking change.
We don't want an exception, the test is invalid.
Make --no-event the default for local invoke
* feat: sam package without awscli pre-installed - rely on boto3 instead - port over code from aws cli * tests: port artifact exporter unit tests * tests: add package command unit tests * refactor: package context class - unit tests for package context class - removal old `test_package.py` * feat: s3 uploader changes - add unit tests for s3 uploader * refactor: sam package - artifact exporter - refactor of the port from `aws-cli` for artifact exporter - add unit tests for artifact exporter * refactor: unit tests for `package context` class * feat: sam package `click` wiring - added unit tests for the click wiring * tests: fix unit tests on windows - fix for smoke tests * tests: fixing temporary files usage for windows - https://docs.python.org/3/library/tempfile.html * refactor: cleanup package command - remove unneeded variables - remove unneeded exceptions, inherit package specific exceptions from UserException - refactor resources and their respective properties enums to its own file. This file is cross-referenced across package and other commands. - include jmespath as explicit dependency - refactor unit tests as required based on code structure changes. * fix: resources and property locations in `sam package` help text Usage: samdev package [OPTIONS] The SAM package command creates a zip of your code and dependencies and uploads it to S3. The command returns a copy of your template, replacing references to local artifacts with the S3 location where the command uploaded the artifacts. The following resources and their property locations are supported. Resource : AWS::ServerlessRepo::Application | Location : LicenseUrl Resource : AWS::ServerlessRepo::Application | Location : ReadmeUrl Resource : AWS::Serverless::Function | Location : CodeUri Resource : AWS::Serverless::Api | Location : DefinitionUri Resource : AWS::AppSync::GraphQLSchema | Location :DefinitionS3Location Resource : AWS::AppSync::Resolver | Location : RequestMappingTemplateS3Location Resource : AWS::AppSync::Resolver | Location : ResponseMappingTemplateS3Location Resource : AWS::AppSync::FunctionConfiguration | Location : RequestMappingTemplateS3Location Resource : AWS::AppSync::FunctionConfiguration | Location : ResponseMappingTemplateS3Location Resource : AWS::Lambda::Function | Location : Code Resource : AWS::ApiGatewayRestApi | Location : BodyS3Location Resource : AWS::ElasticBeanstalk::ApplicationVersion | Location : SourceBundle Resource : AWS::CloudFormation::Stack | Location : TemplateURL Resource : AWS::Serverless::Application | Location : Location Resource : AWS::Lambda::LayerVersion | Location : Content Resource : AWS::Serverless::LayerVersion | Location : ContentUri Resource : AWS::Glue::Job | Location : Command.ScriptLocation * chore: change pylint line similiarity * tests: seed integration tests for sam package - add one barebones test to check `sam package` works * fix: resource naming for resources enum * tests: sam package integration tests - With AWS::Serverless::Function Resource * fix: port code base to remove python2 quirks - rebased on top of develop which removes python2 support * tests: add all supported resources for sam package integ tests * feat: sam package supports --metadata - Additional metadata click parameter type - Added unit, integration tests for `--metadata` * fix: stricter checking on `--metadata` flag on `sam package` - Dont allow list or dict in values portion of a metadata dict * fix: missed integ test for `sam package` - added tests for `AWS::ServerlessRepo::Application` Metadata field * tests: regression test suite for `sam package` - compare output template-file from `sam package` and `aws cloudformation package` * fix: better comments, exception handling - template can now be specified as `-t`, `--template-file` and `--template`. Future PR will standardize it across the codebase. Current commit aims to fix it only in `package` space. - exception handling on passing an unknown profile name - refactor catching of OSError within package_context.py - New exception class for package failures. * refactor: regression test suite - move regression checking logic to base class - address comments on exceptions, appveyor file, encoding * lint: linter fixes
* Experience Improvements to sam init * Add Numeric Key Prompt for Dependency Managers * Remove Output Dir Prompt, Clean Up Formatting * Improve Prompt Formatting * Improve Init User Flows * Additional Changes to Init Flow * Linter Changes * Constrain python-dateutil Dependency botocore sets a maximum version number and pip can't figure that out.
awood45
approved these changes
Nov 6, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue #, if available:
Description of changes:
Checklist:
make pr
passesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.