diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-09-21 12:55:28 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-09-21 23:54:39 +0100 |
commit | fa9295c476ad3358fedec6c3e84b3969b6e7776f (patch) | |
tree | a0d1dca53f1e35979c447ff6c71480dcc6af6711 /meta | |
parent | 9c763f3b1d38eb5adfa0a458f8ac99eb42ebf44e (diff) | |
download | poky-fa9295c476ad3358fedec6c3e84b3969b6e7776f.tar.gz |
python3-jinja2: Import from meta-oe/meta-python
This is used by some of the results handling code and needed as part of
buildtools tarball on various autobuilder worker for testing.
ptest is disabled for OE-Core, at least for now since it depends on
python3-pytest which in turn has may other dependencies.
Acked-by: Tim Orling <ticotimo@gmail.com>
(From OE-Core rev: 9d30a3b95ef4dce8925f88c8d8d854ed48c5f367)
Signed-off-by: Tim Orling <ticotimo@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/conf/distro/include/maintainers.inc | 1 | ||||
-rw-r--r-- | meta/recipes-devtools/python/python3-jinja2/run-ptest | 3 | ||||
-rw-r--r-- | meta/recipes-devtools/python/python3-jinja2_2.11.2.bb | 45 |
3 files changed, 49 insertions, 0 deletions
diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc index 84f473290a..d349382cb9 100644 --- a/meta/conf/distro/include/maintainers.inc +++ b/meta/conf/distro/include/maintainers.inc | |||
@@ -589,6 +589,7 @@ RECIPE_MAINTAINER_pn-python3-extras = "Oleksandr Kravchuk <open.source@oleksandr | |||
589 | RECIPE_MAINTAINER_pn-python3-git = "Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>" | 589 | RECIPE_MAINTAINER_pn-python3-git = "Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>" |
590 | RECIPE_MAINTAINER_pn-python3-gitdb = "Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>" | 590 | RECIPE_MAINTAINER_pn-python3-gitdb = "Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>" |
591 | RECIPE_MAINTAINER_pn-python3-iniparse = "Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>" | 591 | RECIPE_MAINTAINER_pn-python3-iniparse = "Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>" |
592 | RECIPE_MAINTAINER_pn-python3-jinja2 = "Richard Purdie <richard.purdie@linuxfoundation.org>" | ||
592 | RECIPE_MAINTAINER_pn-python3-libarchive-c = "Joshua Watt <JPEWhacker@gmail.com>" | 593 | RECIPE_MAINTAINER_pn-python3-libarchive-c = "Joshua Watt <JPEWhacker@gmail.com>" |
593 | RECIPE_MAINTAINER_pn-python3-magic = "Joshua Watt <JPEWhacker@gmail.com>" | 594 | RECIPE_MAINTAINER_pn-python3-magic = "Joshua Watt <JPEWhacker@gmail.com>" |
594 | RECIPE_MAINTAINER_pn-python3-mako = "Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>" | 595 | RECIPE_MAINTAINER_pn-python3-mako = "Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>" |
diff --git a/meta/recipes-devtools/python/python3-jinja2/run-ptest b/meta/recipes-devtools/python/python3-jinja2/run-ptest new file mode 100644 index 0000000000..5cec711696 --- /dev/null +++ b/meta/recipes-devtools/python/python3-jinja2/run-ptest | |||
@@ -0,0 +1,3 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | pytest | ||
diff --git a/meta/recipes-devtools/python/python3-jinja2_2.11.2.bb b/meta/recipes-devtools/python/python3-jinja2_2.11.2.bb new file mode 100644 index 0000000000..89538d2f27 --- /dev/null +++ b/meta/recipes-devtools/python/python3-jinja2_2.11.2.bb | |||
@@ -0,0 +1,45 @@ | |||
1 | DESCRIPTION = "Python Jinja2: A small but fast and easy to use stand-alone template engine written in pure python." | ||
2 | |||
3 | LICENSE = "BSD-3-Clause" | ||
4 | LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=5dc88300786f1c214c1e9827a5229462" | ||
5 | |||
6 | SRC_URI[sha256sum] = "89aab215427ef59c34ad58735269eb58b1a5808103067f7bb9d5836c651b3bb0" | ||
7 | |||
8 | PYPI_PACKAGE = "Jinja2" | ||
9 | |||
10 | CLEANBROKEN = "1" | ||
11 | |||
12 | inherit pypi setuptools3 | ||
13 | # ptest disabled in OE-Core for now due to missing dependencies | ||
14 | |||
15 | |||
16 | SRC_URI += " \ | ||
17 | file://run-ptest \ | ||
18 | " | ||
19 | |||
20 | do_install_ptest() { | ||
21 | install -d ${D}${PTEST_PATH}/tests | ||
22 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
23 | } | ||
24 | |||
25 | RDEPENDS_${PN}-ptest += " \ | ||
26 | ${PYTHON_PN}-pytest \ | ||
27 | ${PYTHON_PN}-unixadmin \ | ||
28 | " | ||
29 | |||
30 | RDEPENDS_${PN} += " \ | ||
31 | ${PYTHON_PN}-asyncio \ | ||
32 | ${PYTHON_PN}-crypt \ | ||
33 | ${PYTHON_PN}-io \ | ||
34 | ${PYTHON_PN}-json \ | ||
35 | ${PYTHON_PN}-markupsafe \ | ||
36 | ${PYTHON_PN}-math \ | ||
37 | ${PYTHON_PN}-netclient \ | ||
38 | ${PYTHON_PN}-numbers\ | ||
39 | ${PYTHON_PN}-pickle \ | ||
40 | ${PYTHON_PN}-pprint \ | ||
41 | ${PYTHON_PN}-shell \ | ||
42 | ${PYTHON_PN}-threading \ | ||
43 | " | ||
44 | |||
45 | BBCLASSEXTEND = "native nativesdk" | ||