Skip to content

Commit 09f837e

Browse files
authored
Merge pull request #178 from jfuss/allow-newer-manylinux-versions
feat(python): Support downloading manylinux2010 and manylinux2014
2 parents 4493a84 + ec4182a commit 09f837e

File tree

5 files changed

+17
-9
lines changed

5 files changed

+17
-9
lines changed

aws_lambda_builders/workflows/python_pip/packager.py

+8-3
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",

tests/functional/workflows/python_pip/test_packager.py

+3-3
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ 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",
5151
"idna-2.9.dist-info",
5252
"requests",
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/python_pip/test_packager.py

+1-1
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)