Migrate from Poetry to uv for dependency management#19
Merged
JeremieGince merged 7 commits intomainfrom Oct 17, 2025
Merged
Conversation
Replaces Poetry with uv in all GitHub Actions workflows and updates the README with uv-based installation instructions. Removes poetry.lock, adds uv.lock, and updates pyproject.toml accordingly. This change aims to improve dependency management speed and reliability using uv.
Replaces 'python -m build' with 'build' in the GitHub Actions workflow for building distributions. Also removes old build artifacts from the dist directory.
Updated the test workflow to execute 'twine check' via 'uv run' for consistency with other build steps.
Replaces the 'uv run build' command with 'uv run python -m build' for building distributions in the GitHub Actions test workflow. This ensures compatibility and explicit usage of the build module.
Migrate from Poetry to uv for dependency management
Contributor
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified FilesNo covered modified files...
|
Removed the conditional disabling the Build-Dist job to re-enable the build workflow. Added a conditional to the PyPI publish step to prevent publishing distributions to PyPI for now.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.