Skip to contentSkip to conversation

boto3: satisfy runtime dependencies

PATCH Bruce Ashfield 1 participant 1 message Mar 30, 2021 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

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

Quoted 42 lines · 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.

---
 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
recipes-devtools/python/python3-boto3_1.14.7.bb +2 -0
index f9e979e..0e9611c 100644
@@ -13,3 +13,5 @@ SRC_URI[md5sum] = "fb8b77d4ac10a971570419dd3613196e"
 SRC_URI[sha256sum] = "4856c8cb4150b900cc7dccbdf16f542fb8c12e97b17639979e58760847f7cf35"
 
 inherit pypi setuptools3
+
+RDEPENDS_${PN} += "python3-botocore python3-urllib3 python3-unixadmin"
recipes-devtools/python/python3-botocore_1.20.36.bb new file +12 -0
new file mode 100644
index 0000000..4c4a825
@@ -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"
Signature · 1 line
2.30.1