Skip to content

Migrate from Poetry to uv (PP-3973)#243

Merged
jonathangreen merged 2 commits intomainfrom
chore/migrate-poetry-to-uv
Apr 15, 2026
Merged

Migrate from Poetry to uv (PP-3973)#243
jonathangreen merged 2 commits intomainfrom
chore/migrate-poetry-to-uv

Conversation

@jonathangreen
Copy link
Copy Markdown
Member

Summary

  • Switch dependency management and build tooling from Poetry to uv, matching the pattern introduced in circulation#3221.
  • Rewrite `pyproject.toml` using PEP 621 `[project]` + `hatchling` build backend; dev/ci deps move to PEP 735 `[dependency-groups]`; git subdirectory deps move to `[tool.uv.sources]` (with `palace-util` now resolved transitively via palace-opds).
  • Replace `poetry.lock` with `uv.lock`.
  • `tox.ini` uses the `uv-venv-lock-runner` from `tox-uv`.
  • GitHub workflows use `astral-sh/setup-uv`; lint workflow gains a pre-commit cache.
  • Dependabot switches from `pip` to `uv` ecosystem.
  • README documents uv-based setup; `.python-version` now pins a real version (was a pyenv-virtualenv name).

Stacked on top of #242. Please review/merge that one first.

Test plan

  • `uv run mypy` clean
  • `uv run pytest` (154 tests) passes
  • `tox` (py312), `tox -e mypy`, `tox -e lint` all green

@jonathangreen jonathangreen force-pushed the chore/migrate-poetry-to-uv branch from cf00d0b to dabd1ac Compare April 15, 2026 16:43
@jonathangreen jonathangreen changed the title Migrate from Poetry to uv Migrate from Poetry to uv (PP-3973) Apr 15, 2026
@jonathangreen jonathangreen force-pushed the chore/migrate-poetry-to-uv branch from dabd1ac to 4b64e40 Compare April 15, 2026 16:45
@jonathangreen jonathangreen requested a review from a team April 15, 2026 16:47
Copy link
Copy Markdown
Contributor

@dbernstein dbernstein left a comment

Choose a reason for hiding this comment

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

👍

Base automatically changed from chore/replace-palace-manager-with-palace-opds to main April 15, 2026 18:00
Switch dependency management and build tooling from Poetry to uv,
matching the configuration pattern used in the circulation repo
(PR ThePalaceProject/circulation#3221).

- Rewrite pyproject.toml using PEP 621 [project] + hatchling build
  backend; move dev/ci deps to PEP 735 [dependency-groups]; git
  subdirectory deps move to [tool.uv.sources] (palace-util now
  resolves transitively via palace-opds).
- Replace poetry.lock with uv.lock.
- tox.ini uses the uv-venv-lock-runner (tox-uv).
- GitHub workflows use astral-sh/setup-uv; lint workflow gets a
  pre-commit cache.
- Dependabot switches from pip to uv ecosystem.
- README documents uv-based setup.
@jonathangreen jonathangreen force-pushed the chore/migrate-poetry-to-uv branch from 4b64e40 to 8931cc2 Compare April 15, 2026 18:02
@jonathangreen jonathangreen merged commit 0a45199 into main Apr 15, 2026
7 checks passed
@jonathangreen jonathangreen deleted the chore/migrate-poetry-to-uv branch April 15, 2026 18: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