Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Alexandre Belloni <alexandre.belloni@bootlin.com>
To: Tim Orling <ticotimo@gmail.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH 0/6] Add 'maturin' python backend support
Date: Fri, 8 Dec 2023 23:50:36 +0100	[thread overview]
Message-ID: <20231208225036585d7237@mail.local> (raw)
In-Reply-To: <cover.1701989368.git.tim.orling@konsulko.com>

Hello Tim,

I got this failure, can you check?

https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/6166/steps/14/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/6159/steps/14/logs/stdio


2023-12-08 22:03:18,822 - oe-selftest - INFO - FAIL: recipetool.RecipetoolCreateTests.test_recipetool_create_python3_pep517_maturin (subunit.RemotedTestCase)
2023-12-08 22:03:18,822 - oe-selftest - INFO - ----------------------------------------------------------------------
2023-12-08 22:03:18,823 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/home/pokybuild/yocto-worker/oe-selftest-fedora/build/meta/lib/oeqa/selftest/cases/recipetool.py", line 698, in test_recipetool_create_python3_pep517_maturin
    self._test_recipe_contents(recipefile, checkvars, inherits)
  File "/home/pokybuild/yocto-worker/oe-selftest-fedora/build/meta/lib/oeqa/selftest/cases/devtool.py", line 178, in _test_recipe_contents
    self.assertEqual(missingvars, {}, 'Some expected variables not found in recipe: %s' % checkvars)
  File "/usr/lib64/python3.11/unittest/case.py", line 873, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/usr/lib64/python3.11/unittest/case.py", line 1172, in assertDictEqual
    self.fail(self._formatMessage(msg, standardMsg))
  File "/usr/lib64/python3.11/unittest/case.py", line 703, in fail
    raise self.failureException(msg)
AssertionError: {'SRC_URI': 'https://files.pythonhosted.or[586 chars]238'} != {}
Diff is 656 characters long. Set self.maxDiff to None to see it. : Some expected variables not found in recipe: {'SRC_URI': 'https://files.pythonhosted.org/packages/64/26/cffb93fe9c6b5a91c497f37fae14a4b073ecbc47fc36a9979c7aa888b245/pydantic_core-${PV}.tar.gz', 'SRC_URI[md5sum]': '1eb13c211147496c1c9484ff7f8ac438', 'SRC_URI[sha1sum]': '0803a731aa793f3eaf4d52f656d7300408ca0b36', 'SRC_URI[sha256sum]': '6d30226dfc816dd0fdf120cae611dd2215117e4f9b124af8c60ab9093b6e8e71', 'SRC_URI[sha384sum]': 'cca6d9f0ba72ff92e16aaf3d6c628b8df33bdf244cc39c9d59cff9d541f35d4e87ec136e60e4b040ad73c5c69b27cec6', 'SRC_URI[sha512sum]': 'e6c3081dfa58d9b59f8c33dfe80712d732ac3048a2f8240f9a0f5448d9bfc83e222c1e08b8bb49779b84f685c3bec3060cc935c113a818b1ab8aa955f3df2238'}




On 07/12/2023 15:13:17-0800, Tim Orling wrote:
> We are increasingly seeing Rust extensions for Python added in the
> ecosystem. The current best practices approach has moved from using
> 'setuptools-rust' to using 'maturin'.
> 
> * Add python3-maturin, including 'native' and 'nativesdk' support.
> * Add a 'python_maturin' bbclass for the PEP-517 backend.
> * Add recipetool support for the 'maturin' PEP-517 backend.
> * Add a very basic 'maturin list-python' smoke test added to oeqa for
>   both 'runtime' (-c testimage) and 'sdk' (-c testsdk).
> 
> The following changes since commit 70ad9b9b309575134834757468cb32c9e3b87448:
> 
>   bitbake: hashserv: sqlite: Ensure sync propagates to database connections (2023-12-04 22:36:09 +0000)
> 
> are available in the Git repository at:
> 
>   https://git.yoctoproject.org/poky-contrib timo/maturin_1.3.2
>   https://git.yoctoproject.org/poky-contrib/log/?h=timo/maturin_1.3.2
> 
> Tim Orling (6):
>   python3-setuptools-rust: BBCLASSEXTEND + nativesdk
>   python3-maturin: add v1.3.2
>   classes-recipe: add python_maturin.bbclass
>   recipetool: add python_maturin support
>   oe-selfest: add maturn runtime (testimage) test
>   python3-maturin: add sdk (testsdk) test case
> 
>  meta/classes-recipe/python_maturin.bbclass    |  17 +
>  meta/conf/distro/include/maintainers.inc      |   1 +
>  meta/lib/oeqa/runtime/cases/maturin.py        |  23 +
>  meta/lib/oeqa/sdk/cases/maturin.py            |  33 +
>  meta/lib/oeqa/selftest/cases/recipetool.py    |  34 ++
>  .../python/python3-maturin-crates.inc         | 572 ++++++++++++++++++
>  .../python/python3-maturin_1.3.2.bb           |  40 ++
>  .../python/python3-setuptools-rust_1.8.1.bb   |   2 +-
>  .../lib/recipetool/create_buildsys_python.py  |   1 +
>  9 files changed, 722 insertions(+), 1 deletion(-)
>  create mode 100644 meta/classes-recipe/python_maturin.bbclass
>  create mode 100644 meta/lib/oeqa/runtime/cases/maturin.py
>  create mode 100644 meta/lib/oeqa/sdk/cases/maturin.py
>  create mode 100644 meta/recipes-devtools/python/python3-maturin-crates.inc
>  create mode 100644 meta/recipes-devtools/python/python3-maturin_1.3.2.bb
> 
> -- 
> 2.34.1
> 

> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#191981): https://lists.openembedded.org/g/openembedded-core/message/191981
> Mute This Topic: https://lists.openembedded.org/mt/103045095/3617179
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alexandre.belloni@bootlin.com]
> -=-=-=-=-=-=-=-=-=-=-=-
> 


-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


  parent reply	other threads:[~2023-12-08 22:50 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-07 23:13 [PATCH 0/6] Add 'maturin' python backend support Tim Orling
2023-12-07 23:13 ` [PATCH 1/6] python3-setuptools-rust: BBCLASSEXTEND + nativesdk Tim Orling
2023-12-07 23:13 ` [PATCH 2/6] python3-maturin: add v1.3.2 Tim Orling
2023-12-07 23:13 ` [PATCH 3/6] classes-recipe: add python_maturin.bbclass Tim Orling
2023-12-07 23:13 ` [PATCH 4/6] recipetool: add python_maturin support Tim Orling
2023-12-08 23:38   ` [OE-core] " Peter Kjellerstedt
2023-12-09  2:02   ` [PATCH v2 " Tim Orling
2023-12-09 11:29     ` [OE-core] " Alexandre Belloni
     [not found]     ` <179F2663983D88F3.26830@lists.openembedded.org>
2023-12-09 11:59       ` Alexandre Belloni
2023-12-14  0:28         ` Tim Orling
2023-12-07 23:13 ` [PATCH 5/6] oe-selfest: add maturn runtime (testimage) test Tim Orling
2023-12-07 23:13 ` [PATCH 6/6] python3-maturin: add sdk (testsdk) test case Tim Orling
2023-12-08 22:50 ` Alexandre Belloni [this message]
2023-12-08 23:58   ` [OE-core] [PATCH 0/6] Add 'maturin' python backend support Tim Orling
     [not found]   ` <179F00AD57313E1B.7956@lists.openembedded.org>
2023-12-09  0:59     ` Tim Orling

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231208225036585d7237@mail.local \
    --to=alexandre.belloni@bootlin.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=ticotimo@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox