diff mbox series

[meta-python] python3-breathe: new recipe version 4.36.0

Message ID 20250330194034.371789-1-jan.vermaete@gmail.com
State Accepted
Headers show
Series [meta-python] python3-breathe: new recipe version 4.36.0 | expand

Commit Message

Jan Vermaete March 30, 2025, 7:40 p.m. UTC
Breathe is a Sphinx plugin providing beautifully integrated Doxygen output in your user-facing documentation

Added to ptest list.

Signed-off-by: Jan Vermaete <jan.vermaete@gmail.com>
---
 .../ptest-packagelists-meta-python.inc        |  1 +
 .../recipes/devtool/python3-breathe/run-ptest |  3 +++
 .../recipes/devtool/python3-breathe_4.36.0.bb | 22 +++++++++++++++++++
 3 files changed, 26 insertions(+)
 create mode 100644 meta-python/recipes/devtool/python3-breathe/run-ptest
 create mode 100644 meta-python/recipes/devtool/python3-breathe_4.36.0.bb

Comments

Khem Raj April 2, 2025, 3:12 p.m. UTC | #1
On Sun, Mar 30, 2025 at 12:40 PM Jan Vermaete via
lists.openembedded.org <jan.vermaete=gmail.com@lists.openembedded.org>
wrote:
>
> Breathe is a Sphinx plugin providing beautifully integrated Doxygen output in your user-facing documentation
>
> Added to ptest list.
>
> Signed-off-by: Jan Vermaete <jan.vermaete@gmail.com>
> ---
>  .../ptest-packagelists-meta-python.inc        |  1 +
>  .../recipes/devtool/python3-breathe/run-ptest |  3 +++
>  .../recipes/devtool/python3-breathe_4.36.0.bb | 22 +++++++++++++++++++
>  3 files changed, 26 insertions(+)
>  create mode 100644 meta-python/recipes/devtool/python3-breathe/run-ptest
>  create mode 100644 meta-python/recipes/devtool/python3-breathe_4.36.0.bb
>
> diff --git a/meta-python/conf/include/ptest-packagelists-meta-python.inc b/meta-python/conf/include/ptest-packagelists-meta-python.inc
> index 101d39d969..fc71eb4003 100644
> --- a/meta-python/conf/include/ptest-packagelists-meta-python.inc
> +++ b/meta-python/conf/include/ptest-packagelists-meta-python.inc
> @@ -14,6 +14,7 @@ PTESTS_FAST_META_PYTHON = "\
>      python3-aspectlib \
>      python3-bleak \
>      python3-blinker \
> +    python3-breathe \
>      python3-cachetools \
>      python3-cbor2 \
>      python3-configobj \
> diff --git a/meta-python/recipes/devtool/python3-breathe/run-ptest b/meta-python/recipes/devtool/python3-breathe/run-ptest
> new file mode 100644
> index 0000000000..8d2017d39c
> --- /dev/null
> +++ b/meta-python/recipes/devtool/python3-breathe/run-ptest
> @@ -0,0 +1,3 @@
> +#!/bin/sh
> +
> +pytest --automake
> diff --git a/meta-python/recipes/devtool/python3-breathe_4.36.0.bb b/meta-python/recipes/devtool/python3-breathe_4.36.0.bb
> new file mode 100644
> index 0000000000..dc14f1ce1c
> --- /dev/null
> +++ b/meta-python/recipes/devtool/python3-breathe_4.36.0.bb
> @@ -0,0 +1,22 @@
> +SUMMARY = "Sphinx Doxygen renderer"
> +DESCRIPTION = "Breathe is a Sphinx plugin providing beautifully integrated Doxygen output in your user-facing documentation."
> +HOMEPAGE = "https://www.breathe-doc.org/"
> +LICENSE = "BSD-3-Clause"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=9e49eecf36fc015de7c61a0247df75d6"
> +
> +SRC_URI[sha256sum] = "14860b73118ac140b7a3f55446890c777d1b67149cb024279fe3710dad7f535c"
> +
> +inherit pypi python_flit_core ptest
> +
> +SRC_URI:append = " file://run-ptest"

Seeing ptest failures

│   {'python3-breathe': 'START: ptest-runner\n'

          │
│                       '2025-04-02T14:56\n'

          │
│                       '/usr/lib/python3-breathe/ptest/run-ptest:
line 3: pytest: '
              │
│                       'not found\n'

          │
│                       '\n'

          │
│                       'ERROR: Exit status is 127\n'

          │
│                       'DURATION: 0\n'}

          │
│

          │

I think rdeps for PN-ptest are not complete
secondly try inheriting ptest-python-pytest instead of ptest it
provides more boilerplate code for python testing
> +
> +RDEPENDS:${PN} = "python3-sphinx"
> +
> +PYPI_PACKAGE = "breathe"
> +
> +do_install_ptest() {
> +        install -d ${D}${PTEST_PATH}/tests
> +        cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
> +}
> +
> +BBCLASSEXTEND =+ "native"
> --
> 2.39.5
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#116391): https://lists.openembedded.org/g/openembedded-devel/message/116391
> Mute This Topic: https://lists.openembedded.org/mt/111992087/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
diff mbox series

Patch

diff --git a/meta-python/conf/include/ptest-packagelists-meta-python.inc b/meta-python/conf/include/ptest-packagelists-meta-python.inc
index 101d39d969..fc71eb4003 100644
--- a/meta-python/conf/include/ptest-packagelists-meta-python.inc
+++ b/meta-python/conf/include/ptest-packagelists-meta-python.inc
@@ -14,6 +14,7 @@  PTESTS_FAST_META_PYTHON = "\
     python3-aspectlib \
     python3-bleak \
     python3-blinker \
+    python3-breathe \
     python3-cachetools \
     python3-cbor2 \
     python3-configobj \
diff --git a/meta-python/recipes/devtool/python3-breathe/run-ptest b/meta-python/recipes/devtool/python3-breathe/run-ptest
new file mode 100644
index 0000000000..8d2017d39c
--- /dev/null
+++ b/meta-python/recipes/devtool/python3-breathe/run-ptest
@@ -0,0 +1,3 @@ 
+#!/bin/sh
+
+pytest --automake
diff --git a/meta-python/recipes/devtool/python3-breathe_4.36.0.bb b/meta-python/recipes/devtool/python3-breathe_4.36.0.bb
new file mode 100644
index 0000000000..dc14f1ce1c
--- /dev/null
+++ b/meta-python/recipes/devtool/python3-breathe_4.36.0.bb
@@ -0,0 +1,22 @@ 
+SUMMARY = "Sphinx Doxygen renderer"
+DESCRIPTION = "Breathe is a Sphinx plugin providing beautifully integrated Doxygen output in your user-facing documentation."
+HOMEPAGE = "https://www.breathe-doc.org/"
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=9e49eecf36fc015de7c61a0247df75d6"
+
+SRC_URI[sha256sum] = "14860b73118ac140b7a3f55446890c777d1b67149cb024279fe3710dad7f535c"
+
+inherit pypi python_flit_core ptest
+
+SRC_URI:append = " file://run-ptest"
+
+RDEPENDS:${PN} = "python3-sphinx"
+
+PYPI_PACKAGE = "breathe"
+
+do_install_ptest() {
+        install -d ${D}${PTEST_PATH}/tests
+        cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+}
+
+BBCLASSEXTEND =+ "native"