Skip to contentSkip to conversation

python3-trove-classifiers: Add recipe

PATCH Superseded Trevor Gamblin 1 participant 1 message May 3, 2023

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 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.

v2 adds maintainer info to maintainers.inc.

---
 meta/conf/distro/include/maintainers.inc      |  1 +
 .../distro/include/ptest-packagelists.inc     |  1 +
 .../python3-trove-classifiers/run-ptest       |  3 +++
 .../python3-trove-classifiers_2023.4.29.bb    | 26 +++++++++++++++++++
 4 files changed, 31 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/maintainers.inc +1 -0
index 4853a905ef..650c7fc076 100644
@@ -699,6 +699,7 @@ RECIPE_MAINTAINER:pn-python3-subunit = "Oleksandr Kravchuk <open.source@oleksand
 RECIPE_MAINTAINER:pn-python3-testtools = "Oleksandr Kravchuk <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-toml = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-tomli = "Tim Orling <[email protected]>"
+RECIPE_MAINTAINER:pn-python3-trove-classifiers = "Trevor Gamblin <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-typing-extensions = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-typogrify = "Alexander Kanavin <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-unittest-automake-output = "Ross Burton <[email protected]>"
meta/conf/distro/include/ptest-packagelists.inc +1 -0
index bd95a13ff6..faa9bd6983 100644
@@ -65,6 +65,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
new file mode 100644
index 0000000000..8d2017d39c
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest --automake
meta/recipes-devtools/python/python3-trove-classifiers_2023.4.29.bb new file +26 -0
new file mode 100644
index 0000000000..4bbcea5489
@@ -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