Skip to content

Refactor pyproject.toml for Poetry v2#1324

Merged
simu merged 3 commits intomasterfrom
internal/poetry-v2
Mar 23, 2026
Merged

Refactor pyproject.toml for Poetry v2#1324
simu merged 3 commits intomasterfrom
internal/poetry-v2

Conversation

@simu
Copy link
Member

@simu simu commented Mar 20, 2026

We keep the Python version constraint and runtime Python dependenices in tool.poetry.dependencies and mark dependencies and requires-python as dynamic in the [project] section.

We don't switch to project.requires-python since Renovate is already configured to not touch that constraint, and just from the docs I'm not sure if/how we can disable renovate for project.requires-python.

Additionally, we don't switch to project.dependencies since we'd have to rewrite all dependency definitions to PEP621-compatible strings.

Checklist

  • Keep pull requests small so they can be easily reviewed.
  • Update the documentation.
  • Categorize the PR by setting a good title and adding one of the labels:
    bug, enhancement, documentation, change, breaking, dependency, internal
    as they show up in the changelog

@simu simu added the internal Internal changes which don't affect users but should appear in the changelog label Mar 20, 2026
@simu simu force-pushed the internal/poetry-v2 branch from be7b8a5 to 70f0204 Compare March 20, 2026 15:41
@simu simu marked this pull request as ready for review March 20, 2026 16:01
@simu simu requested a review from a team as a code owner March 20, 2026 16:01
@simu simu requested a review from a team March 20, 2026 16:02
simu added 3 commits March 23, 2026 09:56
We keep the python version constraint and runtime Python dependenices in
`tool.poetry.dependencies` and mark `dependencies` and `requires-python`
as dynamic in the `[project]` section.

We don't switch to `project.requires-python` since Renovate is already
configured to not touch that constraint, and just from the docs I'm not
sure if/how we can disable renovate for `project.requires-python`.

Additionally, we don't switch to `project.dependencies` since we'd have
to rewrite all dependency definitions to PEP621-compatible strings.
Bump Poetry to 2.3.2 and update `poetry install` command.
@simu simu force-pushed the internal/poetry-v2 branch from 70f0204 to 50447ad Compare March 23, 2026 08:56
@simu simu merged commit 906306f into master Mar 23, 2026
20 checks passed
@simu simu deleted the internal/poetry-v2 branch March 23, 2026 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Internal changes which don't affect users but should appear in the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants