python3-pyyaml-include: update SRCREV

* Current SRCREV is v2.2a1, update to v2.2
* pyyaml-include use setuptools_scm to get package version, but it not
  works well with git shallow clone, and will return a invalid version
  like 0.1.dev1+gc5be2b7, make pyyaml-include is installed to a wrong
  path: /usr/lib/python3.13/site-packages/pyyaml_include-0.1.dev1+gc5be2b7.dist-info,
  and also version in PKG-INFO is wrong.
  export SETUPTOOLS_SCM_PRETEND_VERSION to get correct package version.

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Changqing Li 2025-04-14 16:27:13 +08:00 committed by Khem Raj
parent e3b7463fc1
commit a09d8cfc5a
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -3,7 +3,7 @@ HOMEPAGE = "https://github.com/tanbro/pyyaml-include"
LICENSE = "GPL-3.0-only"
LIC_FILES_CHKSUM = "file://LICENSE;md5=d32239bcb673463ab874e80d47fae504"
DEPENDS += "python3-setuptools-scm-native"
SRCREV = "c5be2b7dfc4aaa91e44dbeb6fa42adc80936ef9d"
SRCREV = "3e0db562a7b03fa1bf5cbe392c47658042596dd0"
SRC_URI = " \
git://github.com/tanbro/pyyaml-include;protocol=https;branch=main \
@ -13,6 +13,10 @@ S = "${WORKDIR}/git"
inherit python_setuptools_build_meta ptest-python-pytest
do_compile:prepend() {
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
}
RDEPENDS:${PN} += " \
python3-pyyaml \
python3-fsspec \