Skip to content

Add 'maturin' backend support

Tim Orling openembedded-core 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 4 repliesIn review
  2. v16 patches 7 repliesSuperseded

Changes in v2 from the cover letter

* Bump 'maturin' to v1.4.0
* Fix the reproducible build of the bzip2-sys crate which was causing python3-maturin to be non-reproducible.
* Add a more exhaustive 'maturin develop' test case for oeqa 'sdk', which exercises:
- Creation of a python3 virtual environment
- Fetching crates for the 'guessing-game' app from the maturin tutorial
- Building dev version of 'guessing-game' crate and wheel

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7python3-maturin: add v1.4.0meta/conf/distro/include/maintainers.inc meta/recipes-devtools/python/python3-maturin-crates.inc meta/recipes-devtools/python/python3-maturin_1.4.0.bb+659 -00 replies
2/7python3-maturin: bzip2-sys reproduciblilitymeta/recipes-devtools/python/python3-maturin_1.4.0.bb+2 -00 replies
3/7classes-recipe: add python_maturin.bbclassmeta/classes-recipe/python_maturin.bbclass+17 -00 replies
4/7recipetool: add python_maturin supportmeta/lib/oeqa/selftest/cases/recipetool.py scripts/lib/recipetool/create_buildsys_python.py+30 -00 replies
5/7oe-selfest: add maturn runtime (testimage) testmeta/lib/oeqa/runtime/cases/maturin.py+23 -02 replies
6/7oeqa: add simple 'maturin' SDK (testsdk) test casemeta/lib/oeqa/sdk/cases/maturin.py+33 -01 reply
7/7oeqa: add "maturin develop" SDK test casemeta/lib/oeqa/files/maturin/guessing-game/Cargo.toml meta/lib/oeqa/files/maturin/guessing-game/LICENSE-APACHE meta/lib/oeqa/files/maturin/guessing-game/LICENSE-MIT +3 more+349 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/7] Add 'maturin' backend support

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 to oeqa for both 'runtime' (-c testimage) and 'sdk' (-c testsdk).

Changes in v2:
* Bump 'maturin' to v1.4.0
* Fix the reproducible build of the bzip2-sys crate which was causing python3-maturin to be non-reproducible.
* Add a more exhaustive 'maturin develop' test case for oeqa 'sdk', which exercises:
- Creation of a python3 virtual environment
- Fetching crates for the 'guessing-game' app from the maturin tutorial
- Building dev version of 'guessing-game' crate and wheel

The following changes since commit 5815ccc1f6fd93690a684f7ff0f8a0a19758fdaa:

build-appliance-image: Update to master head revision (2023-12-16 13:12:52 +0000)

are available in the Git repository at:

https://git.yoctoproject.org/poky-contrib timo/maturin_1.4.0
https://git.yoctoproject.org/poky-contrib/log/?h=timo/maturin_1.4.0

Tim Orling (7):
python3-maturin: add v1.4.0
python3-maturin: bzip2-sys reproduciblility
classes-recipe: add python_maturin.bbclass
recipetool: add python_maturin support
oe-selfest: add maturn runtime (testimage) test
oeqa: add simple 'maturin' SDK (testsdk) test case
oeqa: add "maturin develop" SDK test case

 meta/classes-recipe/python_maturin.bbclass    |  17 +
 meta/conf/distro/include/maintainers.inc      |   1 +
 .../files/maturin/guessing-game/Cargo.toml    |  20 +
 .../maturin/guessing-game/LICENSE-APACHE      | 201 ++++++
 .../files/maturin/guessing-game/LICENSE-MIT   |  25 +
 .../maturin/guessing-game/pyproject.toml      |   8 +
 .../files/maturin/guessing-game/src/lib.rs    |  48 ++
 meta/lib/oeqa/runtime/cases/maturin.py        |  23 +
 meta/lib/oeqa/sdk/cases/maturin.py            |  79 +++
 meta/lib/oeqa/selftest/cases/recipetool.py    |  29 +
 .../python/python3-maturin-crates.inc         | 618 ++++++++++++++++++
 .../python/python3-maturin_1.4.0.bb           |  42 ++
 .../lib/recipetool/create_buildsys_python.py  |   1 +
 13 files changed, 1112 insertions(+)
 create mode 100644 meta/classes-recipe/python_maturin.bbclass
 create mode 100644 meta/lib/oeqa/files/maturin/guessing-game/Cargo.toml
 create mode 100644 meta/lib/oeqa/files/maturin/guessing-game/LICENSE-APACHE
 create mode 100644 meta/lib/oeqa/files/maturin/guessing-game/LICENSE-MIT
 create mode 100644 meta/lib/oeqa/files/maturin/guessing-game/pyproject.toml
 create mode 100644 meta/lib/oeqa/files/maturin/guessing-game/src/lib.rs
 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.4.0.bb
Signature · 1 line
2.34.1