Re: [PATCH] boto3: satisfy runtime dependencies


Bruce Ashfield
 

Thanks for the change.

This is now merged (and I appreciate the submission here, since it is nice
to keep the dependency close to what is using it .. until it becomes more
common and then we can move it if required).

Bruce


In message: [meta-virtualization][PATCH] boto3: satisfy runtime dependencies
on 29/03/2021 Bartosz Golaszewski wrote:

Currently boto3 can be built into an image but it won't work without
additional dependencies. First: botocore is needed at run-time, second:
there are other packages available in meta-python that need adding.

Signed-off-by: Bartosz Golaszewski <brgl@...>
---
recipes-devtools/python/python3-boto3_1.14.7.bb | 2 ++
recipes-devtools/python/python3-botocore_1.20.36.bb | 12 ++++++++++++
2 files changed, 14 insertions(+)
create mode 100644 recipes-devtools/python/python3-botocore_1.20.36.bb

diff --git a/recipes-devtools/python/python3-boto3_1.14.7.bb b/recipes-devtools/python/python3-boto3_1.14.7.bb
index f9e979e..0e9611c 100644
--- a/recipes-devtools/python/python3-boto3_1.14.7.bb
+++ b/recipes-devtools/python/python3-boto3_1.14.7.bb
@@ -13,3 +13,5 @@ SRC_URI[md5sum] = "fb8b77d4ac10a971570419dd3613196e"
SRC_URI[sha256sum] = "4856c8cb4150b900cc7dccbdf16f542fb8c12e97b17639979e58760847f7cf35"

inherit pypi setuptools3
+
+RDEPENDS_${PN} += "python3-botocore python3-urllib3 python3-unixadmin"
diff --git a/recipes-devtools/python/python3-botocore_1.20.36.bb b/recipes-devtools/python/python3-botocore_1.20.36.bb
new file mode 100644
index 0000000..4c4a825
--- /dev/null
+++ b/recipes-devtools/python/python3-botocore_1.20.36.bb
@@ -0,0 +1,12 @@
+SUMMARY = "The low-level, core functionality of boto 3."
+HOMEPAGE = "https://github.com/boto/botocore"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=2ee41112a44fe7014dce33e26468ba93"
+
+SRC_URI = "git://github.com/boto/botocore.git;protocol=https"
+SRCREV = "8c7123bd4683049dcac62bf3e11662e6a72c5eec"
+S = "${WORKDIR}/git"
+
+inherit setuptools3
+
+RDEPENDS_${PN} += "python3-jmespath python3-dateutil python3-logging"
--
2.30.1

Join meta-virtualization@lists.yoctoproject.org to automatically receive all group messages.