diff options
author | Trevor Gamblin <tgamblin@baylibre.com> | 2023-05-05 14:51:21 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-05-11 17:08:29 +0100 |
commit | 91d31b8670a7a221760dbf782e5311ff93a4f7a9 (patch) | |
tree | 59e12a98e6aa2e294d2c6dcb3754443694d43c1b | |
parent | b6557a5d9f3e0cd584bd3b3d50003f9460f2672e (diff) | |
download | poky-91d31b8670a7a221760dbf782e5311ff93a4f7a9.tar.gz |
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.
(From OE-Core rev: 1b417898c296b5732eac14465ba459411ebe4902)
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 files changed, 31 insertions, 0 deletions
diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc index e24d8545ba..a4fa2b4389 100644 --- a/meta/conf/distro/include/maintainers.inc +++ b/meta/conf/distro/include/maintainers.inc | |||
@@ -702,6 +702,7 @@ RECIPE_MAINTAINER:pn-python3-subunit = "Oleksandr Kravchuk <open.source@oleksand | |||
702 | RECIPE_MAINTAINER:pn-python3-testtools = "Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>" | 702 | RECIPE_MAINTAINER:pn-python3-testtools = "Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>" |
703 | RECIPE_MAINTAINER:pn-python3-toml = "Tim Orling <tim.orling@konsulko.com>" | 703 | RECIPE_MAINTAINER:pn-python3-toml = "Tim Orling <tim.orling@konsulko.com>" |
704 | RECIPE_MAINTAINER:pn-python3-tomli = "Tim Orling <tim.orling@konsulko.com>" | 704 | RECIPE_MAINTAINER:pn-python3-tomli = "Tim Orling <tim.orling@konsulko.com>" |
705 | RECIPE_MAINTAINER:pn-python3-trove-classifiers = "Trevor Gamblin <tgamblin@baylibre.com>" | ||
705 | RECIPE_MAINTAINER:pn-python3-typing-extensions = "Tim Orling <tim.orling@konsulko.com>" | 706 | RECIPE_MAINTAINER:pn-python3-typing-extensions = "Tim Orling <tim.orling@konsulko.com>" |
706 | RECIPE_MAINTAINER:pn-python3-typogrify = "Alexander Kanavin <alex.kanavin@gmail.com>" | 707 | RECIPE_MAINTAINER:pn-python3-typogrify = "Alexander Kanavin <alex.kanavin@gmail.com>" |
707 | RECIPE_MAINTAINER:pn-python3-unittest-automake-output = "Ross Burton <ross.burton@arm.com>" | 708 | RECIPE_MAINTAINER:pn-python3-unittest-automake-output = "Ross Burton <ross.burton@arm.com>" |
diff --git a/meta/conf/distro/include/ptest-packagelists.inc b/meta/conf/distro/include/ptest-packagelists.inc index 2f83132aeb..33a72d3eb8 100644 --- a/meta/conf/distro/include/ptest-packagelists.inc +++ b/meta/conf/distro/include/ptest-packagelists.inc | |||
@@ -64,6 +64,7 @@ PTESTS_FAST = "\ | |||
64 | python3-pluggy \ | 64 | python3-pluggy \ |
65 | python3-pyasn1 \ | 65 | python3-pyasn1 \ |
66 | python3-pytz \ | 66 | python3-pytz \ |
67 | python3-trove-classifiers \ | ||
67 | python3-wcwidth \ | 68 | python3-wcwidth \ |
68 | python3-webcolors \ | 69 | python3-webcolors \ |
69 | qemu \ | 70 | 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 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | 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 @@ | |||
1 | SUMMARY = "Canonical source for classifiers on PyPI (pypi.org)." | ||
2 | HOMEPAGE = "https://github.com/pypa/trove-classifiers" | ||
3 | LICENSE = "Apache-2.0" | ||
4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" | ||
5 | |||
6 | SRC_URI[sha256sum] = "8adcc06f1eb7c495f0bdceb698bd9c044b3e57b0d5767d99ec4b6b17c9bbe957" | ||
7 | |||
8 | inherit pypi python_setuptools_build_meta ptest | ||
9 | |||
10 | DEPENDS += " python3-calver-native" | ||
11 | |||
12 | SRC_URI += " \ | ||
13 | file://run-ptest \ | ||
14 | " | ||
15 | |||
16 | RDEPENDS:${PN}-ptest += " \ | ||
17 | ${PYTHON_PN}-pytest \ | ||
18 | ${PYTHON_PN}-unittest-automake-output \ | ||
19 | " | ||
20 | |||
21 | do_install_ptest() { | ||
22 | install -d ${D}${PTEST_PATH}/tests | ||
23 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
24 | } | ||
25 | |||
26 | BBCLASSEXTEND = "native nativesdk" | ||