Skip to content

chore: migrate from Poetry to uv for dependency management#42

Open
kushvinth wants to merge 1 commit intovirtualcell:mainfrom
kushvinth:migrate-poetry-to-uv
Open

chore: migrate from Poetry to uv for dependency management#42
kushvinth wants to merge 1 commit intovirtualcell:mainfrom
kushvinth:migrate-poetry-to-uv

Conversation

@kushvinth
Copy link

What this PR does

This PR migrates the backend workflow from Poetry to uv.

Why

  • Faster dependency resolution
  • Better lockfile-based reproducibility
  • Cleaner CI and Docker setup

Main changes

  • Switched backend project config from Poetry format to PEP 621 in backend/pyproject.toml
  • Added backend/uv.lock
  • Updated CI workflow to use uv in .github/workflows/ci.yml
  • Updated backend Docker build to use uv in backend/Dockerfile
  • Updated local container command to uv in docker-compose.yml
  • Updated docs to reflect uv usage in:
    • README.md
    • SETUP.md
    • backend/README.md

CI behavior now

  • Dependencies are installed with uv sync --frozen
  • Tests are run with uv run pytest
  • uv cache is enabled in GitHub Actions

Notes

No feature logic was changed. This PR is focused on dependency tooling and workflow updates.

Related Issues

- Convert pyproject.toml from Poetry to PEP 621 format with hatchling
- Update CI workflow to use astral-sh/setup-uv with lockfile caching
- Update Dockerfile to use uv via multi-stage COPY
- Update docker-compose.yml command to use uv run
- Update README.md, backend/README.md, and SETUP.md references
- Add uv.lock for reproducible builds
@kushvinth
Copy link
Author

PTAL @vcellmike and other Maintainers

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.

1 participant