meta-openembedded/meta-python/recipes-devtools/python/python3-aioserial/0001-use-poetry-core-for-pyproject-base-build.patch
alperak 09ebd00ca9
python3-aioserial: switch to PEP-517 build backend
- The project has a proper pyproject.toml which declares the poetry.core.masonry.api PEP-517 backend.

- The PyPi package name (defaults to PN without the python3- prefix), so there is no need to set PYPI_PACKAGE as aioserial, it is by default.

- The upstream pyproject.toml says it needs to be built with the Poetry frontend, but that's deprecated behaviour and it should use the Poetry Core API instead.

Signed-off-by: alperak <alperyasinak1@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-08-09 14:25:26 -07:00

30 lines
767 B
Diff

From 5798a250b465572d84a024389b173dc996690b03 Mon Sep 17 00:00:00 2001
From: alperak <alperyasinak1@gmail.com>
Date: Thu, 8 Aug 2024 12:56:31 +0300
Subject: [PATCH] Use poetry-core for pyproject base build
https://github.com/python-poetry/poetry-core#why-is-this-required
Upstream-Status: Pending
Signed-off-by: alperak <alperyasinak1@gmail.com>
---
pyproject.toml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pyproject.toml b/pyproject.toml
index 6243bff..06bc409 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -15,5 +15,5 @@ python = "^3.6"
pyserial = "*"
[build-system]
-requires = ["poetry>=0.12"]
-build-backend = "poetry.masonry.api"
+requires = ["poetry-core>=0.12"]
+build-backend = "poetry.core.masonry.api"
--
2.25.1