Skip to content

chore: update pyproject.toml to tool-agnostic standard#1984

Open
mentonin wants to merge 1 commit into
kernelci:mainfrom
profusion:georg/chore/pyproject
Open

chore: update pyproject.toml to tool-agnostic standard#1984
mentonin wants to merge 1 commit into
kernelci:mainfrom
profusion:georg/chore/pyproject

Conversation

@mentonin

Copy link
Copy Markdown
Contributor

Uses the PEP621-defined pyproject.toml format. This is a tool-agnostic, poetry-compatible (since version 2) format. Advantages include better compatibility with other tools and no lock-in to poetry. poetry (through Poetry.lock) are still the sources of truth for versions we deploy/test against

Signed-off-by: Luiz Georg <luiz.georg@profusion.mobi>
@mentonin mentonin force-pushed the georg/chore/pyproject branch from 18768a9 to 4304dc1 Compare July 10, 2026 14:40
Comment thread backend/pyproject.toml

[build-system]
requires = ["poetry-core"]
requires = ["poetry-core>=1.0.0"]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldnt we go for poetry-core>=2.0?
it seems they implemented some of the pep621 tags only at that version (project for instance)
https://python-poetry.org/blog/announcing-poetry-2.0.0

Comment thread backend/pyproject.toml
name = "backend"
version = "0.1.0"
description = "Django Backend"
authors = ["Your Name <you@example.com>"]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch, didnt even notice this before.

Comment thread backend/pyproject.toml
version = "0.1.0"
description = "Django Backend"
authors = ["Your Name <you@example.com>"]
requires-python = ">=3.12,<4"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might be a problem.
There is some dependency failing for python 3.14 that has not been addressed yet.

  - Installing rpds-py (0.23.1): Failed

Which seems to be a problem with pyo3 ffi module.
So, it might be safer to not allow newer python versions until we fix it.

Comment thread backend/pyproject.toml
]

[tool.poetry]
package-mode = false

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

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.

2 participants