mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
python3-calver: Add recipe
calver is "a setuptools extension for automatically defining your Python package version as a calendar version." It is required for python3-trove-classifiers (another new recipe), which in turn is required for the upgrade of python3-hatchling from 1.13.0 to work. (From OE-Core rev: 79ed4fcad6bd49c269ada3ab99ca4548aaf34e99) Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
a54cb25905
commit
1f6815e210
28
meta/recipes-devtools/python/python3-calver_2022.6.26.bb
Normal file
28
meta/recipes-devtools/python/python3-calver_2022.6.26.bb
Normal file
@@ -0,0 +1,28 @@
|
||||
SUMMARY = "Setuptools extension for CalVer package versions"
|
||||
HOMEPAGE = "https://github.com/di/calver"
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
|
||||
|
||||
SRC_URI = " \
|
||||
git://github.com/di/calver;branch=master;protocol=https \
|
||||
file://run-ptest \
|
||||
file://0001-setup.py-hard-code-version.patch \
|
||||
"
|
||||
SRCREV = "3268d8acf2c345f32a1c5f08ba25dc67f76cca81"
|
||||
|
||||
inherit python_setuptools_build_meta ptest
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
RDEPENDS:${PN}-ptest += " \
|
||||
${PYTHON_PN}-pretend \
|
||||
${PYTHON_PN}-pytest \
|
||||
${PYTHON_PN}-unittest-automake-output \
|
||||
"
|
||||
|
||||
do_install_ptest() {
|
||||
install -d ${D}${PTEST_PATH}/tests
|
||||
cp -rf ${S}/tests ${D}${PTEST_PATH}/
|
||||
}
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
Reference in New Issue
Block a user