From 88c2357dbb0f203db9ffdd12f8c051352be67a91 Mon Sep 17 00:00:00 2001 From: David Escalona Date: Thu, 18 May 2023 14:07:42 +0200 Subject: [PATCH] meta-digi-dey: python3-xbee: update recipe to compile Github code Instead of depending on library releases in Pypi, update the recipe to compile latest Github code. This allows to use minor fixes in DEY before a new release of the library is available. While on it, set the 'SRCREV' to point to the last commit of the repository for traceability. Signed-off-by: David Escalona --- .../{python3-xbee_1.4.1.bb => python3-xbee_git.bb} | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) rename meta-digi-dey/recipes-devtools/python3-xbee/{python3-xbee_1.4.1.bb => python3-xbee_git.bb} (64%) diff --git a/meta-digi-dey/recipes-devtools/python3-xbee/python3-xbee_1.4.1.bb b/meta-digi-dey/recipes-devtools/python3-xbee/python3-xbee_git.bb similarity index 64% rename from meta-digi-dey/recipes-devtools/python3-xbee/python3-xbee_1.4.1.bb rename to meta-digi-dey/recipes-devtools/python3-xbee/python3-xbee_git.bb index 6baa3db83..9fa6381c4 100644 --- a/meta-digi-dey/recipes-devtools/python3-xbee/python3-xbee_1.4.1.bb +++ b/meta-digi-dey/recipes-devtools/python3-xbee/python3-xbee_git.bb @@ -1,4 +1,4 @@ -# Copyright (C) 2022 Digi International Inc. +# Copyright (C) 2022, 2023 Digi International Inc. SUMMARY = "Python library to interact with Digi International's XBee radio frequency modules." DESCRIPTION = "The XBee Python Library provides the ability to communicate with remote nodes in the network, IoT devices and other interfaces of the local device." @@ -7,11 +7,15 @@ SECTION = "devel/python" LICENSE = "MPL-2.0" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=f74526e982749d58a537b3fcdb5d3318" -SRC_URI[md5sum] = "0608ecc8051b31d821b58dcec5396705" -SRC_URI[sha256sum] = "3b10e749431f406d80c189d872f4673b8d3cd510f7b411f817780a0e72499cd2" +SRCBRANCH ?= "master" +SRCREV = "1024d8954e1b445fe6aacd7f0880de65978c351b" -PYPI_PACKAGE = "digi-xbee" +SRC_URI = " \ + git://github.com/digidotcom/xbee-python.git;protocol=https;branch=${SRCBRANCH} \ +" -inherit pypi setuptools3 +S = "${WORKDIR}/git" + +inherit setuptools3 RDEPENDS:${PN} = "python3-asyncio python3-pyserial"