Skip to content

Replace Poetry with uv for dependency management#2079

Merged
rytilahti merged 4 commits into
masterfrom
feat/migrate-to-uv
Jun 27, 2026
Merged

Replace Poetry with uv for dependency management#2079
rytilahti merged 4 commits into
masterfrom
feat/migrate-to-uv

Conversation

@syssi

@syssi syssi commented Jun 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Migrate pyproject.toml from [tool.poetry] to PEP 621 [project] table
  • Switch build backend from poetry-core to hatchling
  • Replace [tool.poetry.group.dev] with PEP 735 [dependency-groups]
  • Move mypy type stubs from .pre-commit-config.yaml additional_dependencies into the dev dependency group
  • Replace poetry.lock with uv.lock (98 packages resolved)
  • Update CI to use astral-sh/setup-uv instead of pip install poetry
  • Update RELEASING.md with uv build / uv publish commands

Migration notes

uv sync --extra docs replaces poetry install --extras docs
uv sync --all-extras replaces poetry install --all-extras
uv run <cmd> replaces poetry run <cmd>

Test plan

  • CI linting job passes (uv sync --extra docs + pre-commit)
  • CI test matrix passes on Python 3.11, 3.12, 3.13 across ubuntu/macos/windows
  • uv build produces a valid wheel and sdist

syssi added 4 commits June 27, 2026 17:35
- Migrate pyproject.toml from [tool.poetry] to PEP 621 [project] table
- Switch build backend from poetry-core to hatchling
- Replace [tool.poetry.group.dev] with PEP 735 [dependency-groups]
- Move mypy stubs to dev dependency group
- Replace poetry.lock with uv.lock
- Update CI workflows to use astral-sh/setup-uv instead of pip+poetry
- Update RELEASING.md with uv build/publish commands
@codecov

codecov Bot commented Jun 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.49%. Comparing base (1374cfd) to head (c82c123).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2079   +/-   ##
=======================================
  Coverage   83.49%   83.49%           
=======================================
  Files         199      199           
  Lines       19519    19522    +3     
  Branches     1058     1058           
=======================================
+ Hits        16297    16300    +3     
  Misses       3036     3036           
  Partials      186      186           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@rytilahti rytilahti left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

I have not tested running any of this, but it looks good on the surface. Thanks @syssi!

Comment thread miio/push_server/test_serverprotocol.py
@rytilahti rytilahti merged commit d7af466 into master Jun 27, 2026
14 checks passed
@rytilahti rytilahti deleted the feat/migrate-to-uv branch June 27, 2026 16:03
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