On Fri, Dec 8, 2023 at 3:58 PM Tim Orling via lists.openembedded.org
<[email protected]> wrote:

>
>
> On Fri, Dec 8, 2023 at 2:50 PM Alexandre Belloni <
> [email protected]> wrote:
>
>> 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
>>
>> this is from Peter’s change which had not been merged when I sent this
> series.
>

Correction: it is from Julien’s pypi recipetool change. The pypi.bbclass
does not create SRC_URI checksums. The inly test case other than mine with
SRC_URI checksums was for —no-pypi setuptools3 and do we have zero coverage.

>
>> 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
>> >
>>
>> >
>> >
>> >
>>
>>
>> --
>> Alexandre Belloni, co-owner and COO, Bootlin
>> Embedded Linux and Kernel engineering
>> https://bootlin.com
>>
>
> 
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#192091): 
https://lists.openembedded.org/g/openembedded-core/message/192091
Mute This Topic: https://lists.openembedded.org/mt/103045095/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to