diff options
author | Changqing Li <changqing.li@windriver.com> | 2025-04-14 16:27:13 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2025-04-15 12:52:19 -0700 |
commit | a09d8cfc5a094c8cf22d794a01d91fba4e4e6d04 (patch) | |
tree | 38aa6bf7afbf5082f9535e38016f3a0353acb0b2 | |
parent | e3b7463fc1da44a62d2c7ffdf5e82af625be5fbc (diff) | |
download | meta-openembedded-a09d8cfc5a094c8cf22d794a01d91fba4e4e6d04.tar.gz |
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>
-rw-r--r-- | meta-python/recipes-devtools/python/python3-pyyaml-include_2.2.bb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pyyaml-include_2.2.bb b/meta-python/recipes-devtools/python/python3-pyyaml-include_2.2.bb index 49e643c710..5a3b2f0ab2 100644 --- a/meta-python/recipes-devtools/python/python3-pyyaml-include_2.2.bb +++ b/meta-python/recipes-devtools/python/python3-pyyaml-include_2.2.bb | |||
@@ -3,7 +3,7 @@ HOMEPAGE = "https://github.com/tanbro/pyyaml-include" | |||
3 | LICENSE = "GPL-3.0-only" | 3 | LICENSE = "GPL-3.0-only" |
4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=d32239bcb673463ab874e80d47fae504" | 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=d32239bcb673463ab874e80d47fae504" |
5 | DEPENDS += "python3-setuptools-scm-native" | 5 | DEPENDS += "python3-setuptools-scm-native" |
6 | SRCREV = "c5be2b7dfc4aaa91e44dbeb6fa42adc80936ef9d" | 6 | SRCREV = "3e0db562a7b03fa1bf5cbe392c47658042596dd0" |
7 | 7 | ||
8 | SRC_URI = " \ | 8 | SRC_URI = " \ |
9 | git://github.com/tanbro/pyyaml-include;protocol=https;branch=main \ | 9 | git://github.com/tanbro/pyyaml-include;protocol=https;branch=main \ |
@@ -13,6 +13,10 @@ S = "${WORKDIR}/git" | |||
13 | 13 | ||
14 | inherit python_setuptools_build_meta ptest-python-pytest | 14 | inherit python_setuptools_build_meta ptest-python-pytest |
15 | 15 | ||
16 | do_compile:prepend() { | ||
17 | export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} | ||
18 | } | ||
19 | |||
16 | RDEPENDS:${PN} += " \ | 20 | RDEPENDS:${PN} += " \ |
17 | python3-pyyaml \ | 21 | python3-pyyaml \ |
18 | python3-fsspec \ | 22 | python3-fsspec \ |