-
Notifications
You must be signed in to change notification settings - Fork 6
Migrate from Poetry to uv package manager #226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: norkans7 <[email protected]>
Co-authored-by: norkans7 <[email protected]>
…d publishing Co-authored-by: norkans7 <[email protected]>
.github/workflows/ci.yml
Outdated
| with: | ||
| virtualenvs-in-project: true | ||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@v5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot use astral-sh/setup-uv@v7 for github action
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to astral-sh/setup-uv@v7 in commit 918c4be
Co-authored-by: norkans7 <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #226 +/- ##
=======================================
Coverage 93.32% 93.32%
=======================================
Files 29 29
Lines 1843 1843
=======================================
Hits 1720 1720
Misses 123 123 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request migrates the package manager from Poetry to uv, bringing faster and standards-compliant package management to the project. The changes modernize the build system by adopting PEP 621 format and switching to hatchling as the build backend.
Key Changes:
- Migrated from Poetry-specific pyproject.toml format to PEP 621 standard format
- Changed build backend from poetry-core to hatchling
- Updated CI/CD workflow to use uv commands instead of Poetry commands
Reviewed changes
Copilot reviewed 2 out of 5 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| uv.lock | New lock file with 61 resolved packages replacing poetry.lock |
| .gitignore | Added .venv/ to ignore uv virtual environments |
| pyproject.toml | Migrated to PEP 621 format with hatchling build backend |
| .github/workflows/ci.yml | Updated CI to use astral-sh/setup-uv and uv commands |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Replaces Poetry with uv for faster, standards-compliant package management.
Changes
pyproject.toml
[project]instead of[tool.poetry])poetry-core→hatchling[project.optional-dependencies]isort[pyproject]extra (unsupported in uv), kept as dev dependency only[tool.hatch.build.targets.wheel]to specify package locationCI Workflow
snok/install-poetry@v1withastral-sh/setup-uv@v7poetry run→uv run,poetry install→uv sync --extra devuv build && uv publishwith trusted publishingLock Files
uv.lock(61 packages resolved)poetry.lockUsage
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.