python3-calver: Add recipe
PATCH 1/3 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.
--- .../python/python3-calver_2022.6.26.bb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 meta/recipes-devtools/python/python3-calver_2022.6.26.bb
meta/recipes-devtools/python/python3-calver_2022.6.26.bb new file +10 -0
@@ -0,0 +1,10 @@ +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[sha256sum] = "e05493a3b17517ef1748fbe610da11f10485faa7c416b9d33fd4a52d74894f8b" + +inherit pypi python_setuptools_build_meta + +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.40.0
PATCH 2/3 python3-trove-classifiers: Add recipe
python3-trove-classifiers is "Canonical source for classifiers on PyPI.". It is required to update python3-hatchling from the current version (1.13.0) in oe-core, and depends on python3-calver (another new recipe). Also add ptests.
--- .../distro/include/ptest-packagelists.inc | 1 + .../python3-trove-classifiers/run-ptest | 3 +++ .../python3-trove-classifiers_2023.4.29.bb | 26 +++++++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 meta/recipes-devtools/python/python3-trove-classifiers/run-ptest create mode 100644 meta/recipes-devtools/python/python3-trove-classifiers_2023.4.29.bb
meta/conf/distro/include/ptest-packagelists.inc +1 -0
@@ -64,6 +64,7 @@ PTESTS_FAST = "\ python3-pluggy \ python3-pyasn1 \ python3-pytz \ + python3-trove-classifiers \ python3-wcwidth \ python3-webcolors \ qemu \
meta/recipes-devtools/python/python3-trove-classifiers/run-ptest new file +3 -0
@@ -0,0 +1,3 @@ +#!/bin/sh + +pytest --automake
meta/recipes-devtools/python/python3-trove-classifiers_2023.4.29.bb new file +26 -0
@@ -0,0 +1,26 @@ +SUMMARY = "Canonical source for classifiers on PyPI (pypi.org)." +HOMEPAGE = "https://github.com/pypa/trove-classifiers" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" + +SRC_URI[sha256sum] = "8adcc06f1eb7c495f0bdceb698bd9c044b3e57b0d5767d99ec4b6b17c9bbe957" + +inherit pypi python_setuptools_build_meta ptest + +DEPENDS += " python3-calver-native" + +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS:${PN}-ptest += " \ + ${PYTHON_PN}-pytest \ + ${PYTHON_PN}-unittest-automake-output \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ +} + +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.40.0
Re: [OE-core][PATCH 2/3] python3-trove-classifiers: Add recipe
it needs maintainer entry as well.
Quoted 80 lines · Trevor Gamblin
python3-trove-classifiers is "Canonical source for classifiers on PyPI.". It is required to update python3-hatchling from the current version (1.13.0) in oe-core, and depends on python3-calver (another new recipe). Also add ptests.
Signed-off-by Trevor Gamblin <[email protected]>--- .../distro/include/ptest-packagelists.inc | 1 + .../python3-trove-classifiers/run-ptest | 3 +++ .../python3-trove-classifiers_2023.4.29.bb | 26 +++++++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 meta/recipes-devtools/python/python3-trove-classifiers/run-ptest create mode 100644 meta/recipes-devtools/python/python3-trove-classifiers_2023.4.29.bbmeta/conf/distro/include/ptest-packagelists.inc +1
-0@@ -64,6 +64,7 @@ PTESTS_FAST = "\ python3-pluggy \ python3-pyasn1 \ python3-pytz \ + python3-trove-classifiers \ python3-wcwidth \ python3-webcolors \ qemu \meta/recipes-devtools/python/python3-trove-classifiers/run-ptest new file +3
-0@@ -0,0 +1,3 @@ +#!/bin/sh + +pytest --automakemeta/recipes-devtools/python/python3-trove-classifiers_2023.4.29.bb new file +26
-1@@ -0,0 +1,26 @@ +SUMMARY = "Canonical source for classifiers on PyPI (pypi.org)." +HOMEPAGE = "https://github.com/pypa/trove-classifiers" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" + +SRC_URI[sha256sum] = "8adcc06f1eb7c495f0bdceb698bd9c044b3e57b0d5767d99ec4b6b17c9bbe957" + +inherit pypi python_setuptools_build_meta ptest + +DEPENDS += " python3-calver-native" + +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS:${PN}-ptest += " \ + ${PYTHON_PN}-pytest \ + ${PYTHON_PN}-unittest-automake-output \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ +} + +BBCLASSEXTEND = "native nativesdk" --2.40.0
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#180725): https://lists.openembedded.org/g/openembedded-core/message/180725
Mute This Topic: https://lists.openembedded.org/mt/98637420/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
PATCH 3/3 python3-hatchling: upgrade 1.13.0 -> 1.14.1
In reply to Trevor GamblinThis upgrade depends on python3-calver and python3-trove-classifiers, which have new recipes being submitted.
---
...ython3-hatchling_1.13.0.bb => python3-hatchling_1.14.1.bb} | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
rename meta/recipes-devtools/python/{python3-hatchling_1.13.0.bb => python3-hatchling_1.14.1.bb} (72%)meta/recipes-devtools/python/python3-hatchling_1.14.1.bb renamed from meta/recipes-devtools/python/python3-hatchling_1.13.0.bb +2 -2
@@ -5,10 +5,10 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=cbe2fd33fc9297692812fc94b7d27fd9" inherit pypi python_hatchling -DEPENDS += "python3-pluggy-native python3-pathspec-native python3-packaging-native python3-editables-native" +DEPENDS += "python3-pluggy-native python3-pathspec-native python3-packaging-native python3-editables-native python3-trove-classifiers-native" DEPENDS:remove:class-native = "python3-hatchling-native" -SRC_URI[sha256sum] = "f8d275a2cc720735286b7c2e2bc35da05761e6d3695c2fa416550395f10c53c7" +SRC_URI[sha256sum] = "55fbc88cbd0d96c09c3e9392b51db513fd4cb4caf47615d65f935a5ef1756133" do_compile:prepend() { export PYTHONPATH=src
Signature · 1 line
2.40.0