Skip to content

Commit a943b1a

Browse files
authored
Merge pull request #182 from awslabs/develop
release: 1.0.0
2 parents 30818b9 + 4ff4077 commit a943b1a

File tree

9 files changed

+31
-16
lines changed

9 files changed

+31
-16
lines changed

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

aws_lambda_builders/workflows/dotnet_clipackage/actions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ def __init__(self, subprocess_dotnet):
3030
def execute(self):
3131
try:
3232
LOG.debug("Installing Amazon.Lambda.Tools Global Tool")
33-
self.subprocess_dotnet.run(["tool", "install", "-g", "Amazon.Lambda.Tools"])
33+
self.subprocess_dotnet.run(["tool", "install", "-g", "Amazon.Lambda.Tools", "--ignore-failed-sources"])
3434
except DotnetCLIExecutionError as ex:
3535
LOG.debug("Error installing probably due to already installed. Attempt to update to latest version.")
3636
try:
37-
self.subprocess_dotnet.run(["tool", "update", "-g", "Amazon.Lambda.Tools"])
37+
self.subprocess_dotnet.run(["tool", "update", "-g", "Amazon.Lambda.Tools", "--ignore-failed-sources"])
3838
except DotnetCLIExecutionError as ex:
3939
raise ActionFailedError("Error configuring the Amazon.Lambda.Tools .NET Core Global Tool: " + str(ex))
4040

aws_lambda_builders/workflows/python_pip/packager.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,13 @@ class DependencyBuilder(object):
150150
packager.
151151
"""
152152

153-
_MANYLINUX_COMPATIBLE_PLATFORM = {"any", "linux_x86_64", "manylinux1_x86_64"}
153+
_MANYLINUX_COMPATIBLE_PLATFORM = {
154+
"any",
155+
"linux_x86_64",
156+
"manylinux1_x86_64",
157+
"manylinux2010_x86_64",
158+
"manylinux2014_x86_64",
159+
}
154160
_COMPATIBLE_PACKAGE_WHITELIST = {"sqlalchemy"}
155161

156162
def __init__(self, osutils, runtime, pip_runner=None):
@@ -243,7 +249,6 @@ def _download_dependencies(self, directory, requirements_filename):
243249
compatible_wheels.add(package)
244250
else:
245251
incompatible_wheels.add(package)
246-
247252
LOG.debug("initial compatible: %s", compatible_wheels)
248253
LOG.debug("initial incompatible: %s", incompatible_wheels | sdists)
249254

@@ -622,7 +627,7 @@ def download_manylinux_wheels(self, packages, directory, lambda_abi):
622627
"--only-binary=:all:",
623628
"--no-deps",
624629
"--platform",
625-
"manylinux1_x86_64",
630+
"manylinux2014_x86_64",
626631
"--implementation",
627632
"cp",
628633
"--abi",

requirements/dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ pytest-cov==2.4.0
66
astroid>=1.5.8,<2.1.0; python_version < '3.8'
77
pylint==1.7.2; python_version < '3.8'
88
pylint==2.4.4; python_version >= '3.8'
9+
isort>=4.2.5,<5; python_version < '3.8'
910

1011
# Test requirements
1112
pytest==3.0.7

tests/functional/workflows/python_pip/test_packager.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ def test_can_replace_incompat_whl(self, tmpdir, osutils, pip_runner):
555555
"--only-binary=:all:",
556556
"--no-deps",
557557
"--platform",
558-
"manylinux1_x86_64",
558+
"manylinux2014_x86_64",
559559
"--implementation",
560560
"cp",
561561
"--abi",
@@ -589,7 +589,7 @@ def test_whitelist_sqlalchemy(self, tmpdir, osutils, pip_runner):
589589
"--only-binary=:all:",
590590
"--no-deps",
591591
"--platform",
592-
"manylinux1_x86_64",
592+
"manylinux2014_x86_64",
593593
"--implementation",
594594
"cp",
595595
"--abi",
@@ -721,7 +721,7 @@ def test_build_into_existing_dir_with_preinstalled_packages(self, tmpdir, osutil
721721
"--only-binary=:all:",
722722
"--no-deps",
723723
"--platform",
724-
"manylinux1_x86_64",
724+
"manylinux2014_x86_64",
725725
"--implementation",
726726
"cp",
727727
"--abi",

tests/integration/workflows/custom_make/test_custom_make.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ def test_must_build_python_project_through_makefile(self):
4646
"idna",
4747
"urllib3-1.25.9.dist-info",
4848
"chardet-3.0.4.dist-info",
49-
"certifi-2020.4.5.1.dist-info",
49+
"certifi-2020.4.5.2.dist-info",
5050
"certifi",
51-
"idna-2.9.dist-info",
51+
"idna-2.10.dist-info",
5252
"requests",
5353
"requests-2.23.0.dist-info",
5454
}
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
requests==2.23.0
1+
requests==2.23.0
2+
3+
# Pinning so the test can expect a given version
4+
certifi==2020.4.5.2 # dep of requests

tests/unit/workflows/dotnet_clipackage/test_actions.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,20 @@ def tearDown(self):
1919
def test_global_tool_install(self):
2020
action = GlobalToolInstallAction(self.subprocess_dotnet)
2121
action.execute()
22-
self.subprocess_dotnet.run.assert_called_once_with(["tool", "install", "-g", "Amazon.Lambda.Tools"])
22+
self.subprocess_dotnet.run.assert_called_once_with(
23+
["tool", "install", "-g", "Amazon.Lambda.Tools", "--ignore-failed-sources"]
24+
)
2325

2426
def test_global_tool_update(self):
2527
self.subprocess_dotnet.run.side_effect = [DotnetCLIExecutionError(message="Already Installed"), None]
2628
action = GlobalToolInstallAction(self.subprocess_dotnet)
2729
action.execute()
28-
self.subprocess_dotnet.run.assert_any_call(["tool", "install", "-g", "Amazon.Lambda.Tools"])
29-
self.subprocess_dotnet.run.assert_any_call(["tool", "update", "-g", "Amazon.Lambda.Tools"])
30+
self.subprocess_dotnet.run.assert_any_call(
31+
["tool", "install", "-g", "Amazon.Lambda.Tools", "--ignore-failed-sources"]
32+
)
33+
self.subprocess_dotnet.run.assert_any_call(
34+
["tool", "update", "-g", "Amazon.Lambda.Tools", "--ignore-failed-sources"]
35+
)
3036

3137
def test_global_tool_update_failed(self):
3238
self.subprocess_dotnet.run.side_effect = [

tests/unit/workflows/python_pip/test_packager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def test_download_wheels(self, pip_factory):
234234
"--only-binary=:all:",
235235
"--no-deps",
236236
"--platform",
237-
"manylinux1_x86_64",
237+
"manylinux2014_x86_64",
238238
"--implementation",
239239
"cp",
240240
"--abi",

0 commit comments

Comments
 (0)