Skip to content

Commit f7b60c7

Browse files
authored
Merge pull request #160 from awslabs/develop
chore: Release 0.8.0
2 parents 5133086 + 10594cf commit f7b60c7

File tree

16 files changed

+73
-12
lines changed

16 files changed

+73
-12
lines changed

.appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ environment:
1818
NEW_FLAKE8: 0
1919
JAVA_HOME: "C:\\Program Files\\Java\\jdk11"
2020
- PYTHON: "C:\\Python36-x64"
21-
PYTHON_VERSION: '3.6.9'
21+
PYTHON_VERSION: '3.6.10'
2222
PYTHON_ARCH: '64'
2323
LINE_COVERAGE: '91'
2424
NEW_FLAKE8: 0
@@ -30,7 +30,7 @@ environment:
3030
NEW_FLAKE8: 0
3131
JAVA_HOME: "C:\\Program Files\\Java\\jdk11"
3232
- PYTHON: "C:\\Python38-x64"
33-
PYTHON_VERSION: '3.8.0'
33+
PYTHON_VERSION: '3.8.2'
3434
PYTHON_ARCH: '64'
3535
LINE_COVERAGE: '72'
3636
NEW_FLAKE8: 1

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.7.0"
4+
__version__ = "0.8.0"
55
RPC_PROTOCOL_VERSION = "0.3"

aws_lambda_builders/workflows/go_dep/workflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class GoDepWorkflow(BaseWorkflow):
2525

2626
CAPABILITY = Capability(language="go", dependency_manager="dep", application_framework=None)
2727

28-
EXCLUDED_FILES = ".aws-sam"
28+
EXCLUDED_FILES = (".aws-sam", ".git")
2929

3030
def __init__(self, source_dir, artifacts_dir, scratch_dir, manifest_path, runtime=None, osutils=None, **kwargs):
3131

aws_lambda_builders/workflows/go_modules/validator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def validate(self, runtime_path):
4747
if p.returncode == 0:
4848
out_parts = out.decode().split()
4949
if len(out_parts) >= 3:
50-
version_parts = [int(x) for x in out_parts[2].replace(self.LANGUAGE, "").split(".")]
50+
version_parts = [int(x.replace("rc", "")) for x in out_parts[2].replace(self.LANGUAGE, "").split(".")]
5151
if len(version_parts) >= 2:
5252
if version_parts[0] == expected_major_version and version_parts[1] >= min_expected_minor_version:
5353
self._valid_runtime_path = runtime_path

aws_lambda_builders/workflows/nodejs_npm/workflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class NodejsNpmWorkflow(BaseWorkflow):
2020

2121
CAPABILITY = Capability(language="nodejs", dependency_manager="npm", application_framework=None)
2222

23-
EXCLUDED_FILES = ".aws-sam"
23+
EXCLUDED_FILES = (".aws-sam", ".git")
2424

2525
def __init__(self, source_dir, artifacts_dir, scratch_dir, manifest_path, runtime=None, osutils=None, **kwargs):
2626

tests/functional/workflows/python_pip/test_packager.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -756,11 +756,9 @@ def test_build_into_existing_dir_with_preinstalled_packages(self, tmpdir, osutil
756756
class TestSubprocessPip(object):
757757
def test_can_invoke_pip(self):
758758
pip = SubprocessPip(python_exe=sys.executable)
759-
rc, out, err = pip.main(["--version"])
760-
# Simple assertion that we can execute pip and it gives us some output
761-
# and nothing on stderr.
759+
rc, _, _ = pip.main(["--version"])
760+
# Simple assertion that we can execute pip
762761
assert rc == 0
763-
assert err == b""
764762

765763
def test_does_error_code_propagate(self):
766764
pip = SubprocessPip(python_exe=sys.executable)

tests/integration/workflows/go_dep/data/src/excluded-files/.aws-sam/.keep

Whitespace-only changes.

tests/integration/workflows/go_dep/data/src/excluded-files/Gopkg.lock

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[prune]
2+
go-tests = true
3+
unused-packages = true
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package main
2+
3+
import "fmt"
4+
5+
func main() {
6+
fmt.Println("hello, world")
7+
}

0 commit comments

Comments
 (0)