From bfcfc884cedcd78db9686a09217b7b3a51b57b78 Mon Sep 17 00:00:00 2001 From: Thomas Roos Date: Fri, 17 May 2024 12:31:15 +0000 Subject: [PATCH] aws-crt-python, aws-iot-device-sdk-python-v2: add proper versioning https://github.com/aws/aws-iot-device-sdk-python-v2/blob/83c323bc1cdf7b84fc9405c8c9fa39e2b297408e/documents/FAQ.md?plain=1#L49 --- recipes-sdk/aws-crt-python/aws-crt-python_0.20.9.bb | 4 ++++ .../aws-iot-device-sdk-python-v2_1.21.4.bb | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/recipes-sdk/aws-crt-python/aws-crt-python_0.20.9.bb b/recipes-sdk/aws-crt-python/aws-crt-python_0.20.9.bb index d80d666f3..99e7b3941 100644 --- a/recipes-sdk/aws-crt-python/aws-crt-python_0.20.9.bb +++ b/recipes-sdk/aws-crt-python/aws-crt-python_0.20.9.bb @@ -40,6 +40,10 @@ RDEPENDS:${PN} += "python3-asyncio" CFLAGS:append = " -Wl,-Bsymbolic" +do_configure:prepend(){ + sed -i "s/__version__ = '1.0.0.dev0'/__version__ = '${PV}'/" ${S}/awscrt/__init__.py +} + RDEPENDS:${PN}-ptest += "\ ${PYTHON_PN} \ ${PYTHON_PN}-websockets \ diff --git a/recipes-sdk/aws-iot-device-sdk-python-v2/aws-iot-device-sdk-python-v2_1.21.4.bb b/recipes-sdk/aws-iot-device-sdk-python-v2/aws-iot-device-sdk-python-v2_1.21.4.bb index 9198af4b3..f058b14d8 100644 --- a/recipes-sdk/aws-iot-device-sdk-python-v2/aws-iot-device-sdk-python-v2_1.21.4.bb +++ b/recipes-sdk/aws-iot-device-sdk-python-v2/aws-iot-device-sdk-python-v2_1.21.4.bb @@ -18,6 +18,10 @@ BRANCH ?= "main" RDEPENDS:${PN} += "aws-crt-python python3-json" +do_configure:prepend(){ + sed -i "s/__version__ = '1.0.0-dev'/__version__ = '${PV}'/" ${S}/awsiot/__init__.py +} + RDEPENDS:${PN}-ptest += "\ ${PYTHON_PN} \ bash \