summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-pyyaml-include_1.4.1.bb
diff options
context:
space:
mode:
authorMingli Yu <mingli.yu@windriver.com>2024-03-27 15:16:36 +0800
committerArmin Kuster <akuster808@gmail.com>2024-04-28 13:10:23 -0400
commita246e26a4686863290998a1be2d4989cbe996ba9 (patch)
treeeddef172b915ff43c45a19d3c96654a47a45999f /meta-python/recipes-devtools/python/python3-pyyaml-include_1.4.1.bb
parentb0e6f9c1de07fe3456e9e5902174719f56b086f1 (diff)
downloadmeta-openembedded-a246e26a4686863290998a1be2d4989cbe996ba9.tar.gz
python3-pyyaml-include: Upgrade 1.3.2 -> 1.4.1
* Upgrade to 1.4.1 to make it work with setuptools 59.x as it doesn't support pep 621 [1], so remove pyproject.toml and add setup.cfg back [2]. * Add python3-toml to RDEPENDS to fix below error: self = <yamlinclude.readers.TomlReader object at 0x7faceccdbd30> def __call__(self): if sys.version_info >= (3, 11): with open(self._path, "rb") as fp: return tomllib.load(fp) else: try: import toml except ImportError as err: # pragma: no cover > raise ImportError(f'Un-supported file "{self._path}".\n`pip install toml` should solve the problem.\n\n{err}') E ImportError: Un-supported file "tests/data/include.d/1.toml". E `pip install toml` should solve the problem. E E No module named 'toml' ../../python3.10/site-packages/yamlinclude/readers.py:69: ImportError [1] https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html [2] https://github.com/tanbro/pyyaml-include/issues/43 Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-pyyaml-include_1.4.1.bb')
-rw-r--r--meta-python/recipes-devtools/python/python3-pyyaml-include_1.4.1.bb29
1 files changed, 29 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pyyaml-include_1.4.1.bb b/meta-python/recipes-devtools/python/python3-pyyaml-include_1.4.1.bb
new file mode 100644
index 0000000000..6768e959f4
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pyyaml-include_1.4.1.bb
@@ -0,0 +1,29 @@
1SUMMARY = "Extending PyYAML with a custom constructor for including YAML files within YAML files"
2HOMEPAGE = "https://github.com/tanbro/pyyaml-include"
3LICENSE = "GPL-3.0-only"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=d32239bcb673463ab874e80d47fae504"
5SRCREV = "0f86bf16343d2ad52b53b793e0b35bb7ed7cd85b"
6
7SRC_URI = " \
8 git://github.com/tanbro/pyyaml-include;protocol=https;branch=1.x \
9 file://run-ptest \
10 "
11
12S = "${WORKDIR}/git"
13
14inherit python_setuptools_build_meta ptest
15
16do_install_ptest() {
17 install -d ${D}${PTEST_PATH}/tests
18 cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
19}
20
21RDEPENDS:${PN} += " \
22 python3-pyyaml \
23 python3-toml \
24"
25RDEPENDS:${PN}-ptest += " \
26 python3-pytest \
27 python3-unittest-automake-output \
28"
29