Skip to content

chore: switch to poetry-core backend#228

Merged
tngraf merged 2 commits into
sw360:mainfrom
michaeladler:chore/build
Jun 30, 2026
Merged

chore: switch to poetry-core backend#228
tngraf merged 2 commits into
sw360:mainfrom
michaeladler:chore/build

Conversation

@michaeladler

Copy link
Copy Markdown
Contributor

Replace legacy poetry.masonry.api with poetry.core.masonry.api. The old backend lacks build_editable() (PEP 660 [1]), breaking editable installs with standards-compliant installers like uv or pip >= 21.3. For example, this allows developers to use uv instead of poetry for local development.

poetry-core is Poetry's officially recommended build backend [2]. It is lighter (no resolver/CLI/plugins pulled in at build time) and supports the full PEP 517/660 interface.

Also, remove empty requirements.txt as it is no longer in use since commit 7334e7a, so let's just remove it to avoid any confusion.

[1] https://peps.python.org/pep-0660/
[2] https://python-poetry.org/docs/basic-usage/

Replace legacy `poetry.masonry.api` with `poetry.core.masonry.api`.
The old backend lacks `build_editable()` (PEP 660 [1]), breaking
editable installs with standards-compliant installers like uv or
pip >= 21.3. For example, this allows developers to use uv instead
of poetry for local development.

poetry-core is Poetry's officially recommended build backend [2].
It is lighter (no resolver/CLI/plugins pulled in at build time)
and supports the full PEP 517/660 interface.

[1] https://peps.python.org/pep-0660/
[2] https://python-poetry.org/docs/basic-usage/

Signed-off-by: Michael Adler <michael.adler@siemens.com>
It is no longer in use since commit
7334e7a, so let's just remove it to
avoid any confusion.

Signed-off-by: Michael Adler <michael.adler@siemens.com>
@gernot-h

Copy link
Copy Markdown
Collaborator

LGTM, thanks, @michaeladler! These are also the defaults Poetry adds to new projects with current versions.

@tngraf tngraf merged commit 4c9a5cb into sw360:main Jun 30, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants