Skip to content

chore: drop poetry, migrate to pip + flit_core#563

Open
MIchaelMainer wants to merge 4 commits into
mmainer/cd-enhancementfrom
mmainer/cd-enhancement-drop-poetry
Open

chore: drop poetry, migrate to pip + flit_core#563
MIchaelMainer wants to merge 4 commits into
mmainer/cd-enhancementfrom
mmainer/cd-enhancement-drop-poetry

Conversation

@MIchaelMainer
Copy link
Copy Markdown
Member

@MIchaelMainer MIchaelMainer commented Jun 4, 2026

It was highly suggested from an internal Pythonista that we should drop Poetry as it adds extra complexity when encountering edge scenarios. This will also make Kiota-Python better match what we are doing for the graph repos.

  • Replace poetry-core build backend with flit_core in all 8 packages
  • Convert all pyproject.toml from [tool.poetry] to PEP 621 [project] format
  • Fix [mypy] -> [tool.mypy] in abstractions, authentication/azure, bundle, tests/validation
  • Fix tests/validation mypy files setting to 'validation'
  • Create requirements-dev.txt per package (8 packages + tests/validation)
  • Update build.yml: replace poetry install/run with pip and direct commands
  • Update cd-publish-python.yml: replace poetry with pip install build + python -m build
  • Remove poetry-plugin-mono-repo-deps from root requirements_dev.txt

Validation runs:
https://github.com/microsoft/kiota-python/actions/runs/26969442452
https://dev.azure.com/microsoftgraph/Graph%20Developer%20Experiences/_build/results?buildId=221616&view=results

- Replace poetry-core build backend with flit_core in all 8 packages
- Convert all pyproject.toml from [tool.poetry] to PEP 621 [project] format
- Fix [mypy] -> [tool.mypy] in abstractions, authentication/azure, bundle, tests/validation
- Fix tests/validation mypy files setting to 'validation'
- Create requirements-dev.txt per package (8 packages + tests/validation)
- Update build.yml: replace poetry install/run with pip and direct commands
- Update cd-publish-python.yml: replace poetry with pip install build + python -m build
- Remove poetry-plugin-mono-repo-deps from root requirements_dev.txt

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 4, 2026

@MIchaelMainer MIchaelMainer marked this pull request as ready for review June 4, 2026 23:05
@MIchaelMainer MIchaelMainer requested a review from a team as a code owner June 4, 2026 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant