Migrate from Poetry to uv for dependency management #19
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This pull request migrates the project from using Poetry to using uv for dependency management and virtual environment handling, both in the development workflow and in CI/CD pipelines. It updates the
pyproject.tomlto remove Poetry-specific configuration, introduces uv dependency groups, and revises the GitHub Actions workflows and documentation to use uv commands. This change aims to simplify and speed up dependency management, improve caching, and modernize the project's Python tooling.Dependency management and configuration:
pyproject.tomlwith uv configuration, including new[dependency-groups]fordevanddocs, and added[tool.uv]settings to enable uv-based package management. Removed[tool.poetry]and related dependency groups. [1] [2] [3]README.mdto document uv-based installation and development workflows, providing new instructions for creating virtual environments and syncing dependencies. [1] [2]Continuous Integration (CI) workflow updates:
.github/workflows/build_dist.yml,.github/workflows/docs.yml, and.github/workflows/tests.ymlto install and use uv for creating virtual environments, installing dependencies, running tests, building distributions, and other scripted tasks. All Poetry commands and manual venv activations are replaced with uv equivalents. [1] [2] [3] [4] [5] [6] [7]Build and documentation improvements:
uv runfor consistent environment management and to leverage uv's caching and speed improvements. [1] [2] [3] [4] [5] [6]These changes streamline dependency management, reduce boilerplate, and improve the reliability and performance of local and CI workflows.
Checklist
Please complete the following checklist when submitting a PR. The PR will not be reviewed until all items are checked.
Make sure that the tests passed and the coverage is
sufficient by running
pytest tests --cov=src --cov-report=term-missing.You can do this by running
black src tests.You can do this by running
isort src tests.You can do this by running
mypy src tests.