Message ID | 20230502123053.604642-2-tgamblin@baylibre.com |
---|---|
State | Under Review |
Headers | show |
Series | [1/3] python3-calver: Add recipe | expand |
it needs maintainer entry as well. On Tue, May 2, 2023 at 5:31 AM Trevor Gamblin <tgamblin@baylibre.com> wrote: > > 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 <tgamblin@baylibre.com> > --- > .../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 > > diff --git a/meta/conf/distro/include/ptest-packagelists.inc b/meta/conf/distro/include/ptest-packagelists.inc > index 78750a0d98..cbbf84f2d4 100644 > --- a/meta/conf/distro/include/ptest-packagelists.inc > +++ b/meta/conf/distro/include/ptest-packagelists.inc > @@ -64,6 +64,7 @@ PTESTS_FAST = "\ > python3-pluggy \ > python3-pyasn1 \ > python3-pytz \ > + python3-trove-classifiers \ > python3-wcwidth \ > python3-webcolors \ > qemu \ > diff --git a/meta/recipes-devtools/python/python3-trove-classifiers/run-ptest b/meta/recipes-devtools/python/python3-trove-classifiers/run-ptest > new file mode 100644 > index 0000000000..8d2017d39c > --- /dev/null > +++ b/meta/recipes-devtools/python/python3-trove-classifiers/run-ptest > @@ -0,0 +1,3 @@ > +#!/bin/sh > + > +pytest --automake > diff --git a/meta/recipes-devtools/python/python3-trove-classifiers_2023.4.29.bb b/meta/recipes-devtools/python/python3-trove-classifiers_2023.4.29.bb > new file mode 100644 > index 0000000000..4bbcea5489 > --- /dev/null > +++ b/meta/recipes-devtools/python/python3-trove-classifiers_2023.4.29.bb > @@ -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: openembedded-core+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- >
diff --git a/meta/conf/distro/include/ptest-packagelists.inc b/meta/conf/distro/include/ptest-packagelists.inc index 78750a0d98..cbbf84f2d4 100644 --- a/meta/conf/distro/include/ptest-packagelists.inc +++ b/meta/conf/distro/include/ptest-packagelists.inc @@ -64,6 +64,7 @@ PTESTS_FAST = "\ python3-pluggy \ python3-pyasn1 \ python3-pytz \ + python3-trove-classifiers \ python3-wcwidth \ python3-webcolors \ qemu \ diff --git a/meta/recipes-devtools/python/python3-trove-classifiers/run-ptest b/meta/recipes-devtools/python/python3-trove-classifiers/run-ptest new file mode 100644 index 0000000000..8d2017d39c --- /dev/null +++ b/meta/recipes-devtools/python/python3-trove-classifiers/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh + +pytest --automake diff --git a/meta/recipes-devtools/python/python3-trove-classifiers_2023.4.29.bb b/meta/recipes-devtools/python/python3-trove-classifiers_2023.4.29.bb new file mode 100644 index 0000000000..4bbcea5489 --- /dev/null +++ b/meta/recipes-devtools/python/python3-trove-classifiers_2023.4.29.bb @@ -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"
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 <tgamblin@baylibre.com> --- .../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