Skip to content

Commit 0620b0e

Browse files
authored
Merge pull request #124 from awslabs/develop
Version 0.4.0
2 parents f40c0ae + d07ea93 commit 0620b0e

File tree

7 files changed

+30
-12
lines changed

7 files changed

+30
-12
lines changed

CONTRIBUTING.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ GitHub provides additional document on [forking a repository](https://help.githu
4444
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any ['help wanted'](https://github.com/awslabs/aws-lambda-builders/labels/help%20wanted) issues is a great place to start.
4545

4646

47+
## Testing with SAM CLI
48+
49+
1. [Activate Virtualenv](https://github.com/awslabs/aws-sam-cli/blob/develop/DEVELOPMENT_GUIDE.md) that is used for SAM CLI development.
50+
2. Navigate to aws-lambda-builders project on your machine
51+
3. `pip install -e .` (This will install the editable version of the aws-lambda-builers into SAM CLI's Virtualenv)
52+
4753
## Code of Conduct
4854
This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct).
4955
For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187
same "printed page" as the copyright notice for easier
188188
identification within third-party archives.
189189

190-
Copyright [yyyy] [name of copyright owner]
190+
Copyright 2018-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
191191

192192
Licensed under the Apache License, Version 2.0 (the "License");
193193
you may not use this file except in compliance with the License.

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,17 @@
66
Lambda Builders is a Python library to compile, build and package AWS Lambda functions for several runtimes &
77
frameworks.
88

9-
We are in the process of implementing this project . If you are a developer and interested in contributing,
10-
read the [DESIGN DOCUMENT](./DESIGN.md) to understand how this works.
9+
Lambda Builders currently contains the following workflows
10+
11+
* Java with Gradle
12+
* Java with Maven
13+
* Dotnet with amazon.lambda.tools
14+
* Python with Pip
15+
* Javascript with Npm
16+
* Ruby with Bundler
17+
* Go with Dep
18+
* Go with Mod
19+
20+
Lambda Builders is the brains behind the `sam build` command from [AWS SAM CLI](https://github.com/awslabs/aws-sam-cli)
21+
22+
If you are a developer and interested in contributing, read the [DESIGN DOCUMENT](./DESIGN.md) to understand how this works.

aws_lambda_builders/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
22
AWS Lambda Builder Library
33
"""
4-
__version__ = '0.3.0'
4+
__version__ = '0.4.0'
55
RPC_PROTOCOL_VERSION = "0.3"

aws_lambda_builders/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def copytree(source, destination, ignore=None):
3636
try:
3737
# Let's try to copy the directory metadata from source to destination
3838
shutil.copystat(source, destination)
39-
except WindowsError as ex: # pylint: disable=undefined-variable
39+
except OSError as ex:
4040
# Can't copy file access times in Windows
4141
LOG.debug("Unable to copy file access times from %s to %s", source, destination, exc_info=ex)
4242

aws_lambda_builders/workflows/python_pip/actions.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class PythonPipBuildAction(BaseAction):
1414
PURPOSE = Purpose.RESOLVE_DEPENDENCIES
1515
LANGUAGE = 'python'
1616

17-
def __init__(self, artifacts_dir, manifest_path, scratch_dir, runtime, binaries):
17+
def __init__(self, artifacts_dir, scratch_dir, manifest_path, runtime, binaries):
1818
self.artifacts_dir = artifacts_dir
1919
self.manifest_path = manifest_path
2020
self.scratch_dir = scratch_dir
@@ -34,9 +34,9 @@ def execute(self):
3434
dependency_builder=dependency_builder)
3535
try:
3636
package_builder.build_dependencies(
37-
self.artifacts_dir,
38-
self.manifest_path,
39-
self.scratch_dir
37+
artifacts_dir_path=self.artifacts_dir,
38+
scratch_dir_path=self.scratch_dir,
39+
requirements_path=self.manifest_path
4040
)
4141
except PackagerError as ex:
4242
raise ActionFailedError(str(ex))

tests/unit/workflows/python_pip/test_actions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ def test_action_must_call_builder(self, PythonPipDependencyBuilderMock):
2424
})
2525
action.execute()
2626

27-
builder_instance.build_dependencies.assert_called_with("artifacts",
28-
"scratch_dir",
29-
"manifest")
27+
builder_instance.build_dependencies.assert_called_with(artifacts_dir_path="artifacts",
28+
scratch_dir_path="scratch_dir",
29+
requirements_path="manifest")
3030

3131
@patch("aws_lambda_builders.workflows.python_pip.actions.PythonPipDependencyBuilder")
3232
def test_must_raise_exception_on_failure(self, PythonPipDependencyBuilderMock):

0 commit comments

Comments
 (0)