-
Notifications
You must be signed in to change notification settings - Fork 88
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
Port from Poetry to uv #238
Comments
uv 0.5.0 had a lot of breaking changes So it's probably still prudent to continue to let it settle in while it goes through it's rapid early development. |
There's nothing wrong with waiting for some dust to settle, but the items marked "Breaking changes" in the 0.5.0 release notes don't seem very destabilizing to me. Because they potentially "could break some workflows", they've been gathered into a new Also interesting is this issue and associated pull request that's in review:
When the pull request lands, So Astral may soon be considering |
Looks like this has landed! |
Dependabot support looks to have landed in a broken state, so will want the dust to settle on that |
Given the funding and momentum behind uv, it seems inevitable that it will become the most powerful, de facto packaging tool for Python. When it is deemed ready, it should be recommended in place of Poetry.
Benefits
which is totally outside the scope of Poetryand is a desirable feature in and of itself (i.e. rustup for Python)PDM
andUV
do python-poetry/poetry#9905uv
supports MUSL natively, so it can install natively on MUSL-based operating systems like Alpine, which is used in some container imagesPoetry, on the other hand, depends on packages that may or may not have MUSL-wheels uploaded to PyPIuv
does not respectrequires-python
upper bounds, which is very nice in practiceuv
can express required platforms for wheel coverageUpstream Requests
uv is still a fast moving project and it may be advantageous to wait to recommend moving to it until a few things have settled.
pyproject.toml
astral-sh/uv#8090uv.lock
support in NoxNice to Have
uv
pyproject.toml
pyproject.toml
astral-sh/uv#6794uv check
similar topoetry check
uv check
command to validatepyproject.toml
uv
configuration astral-sh/uv#9653uv
equivalent to Poetrypackage-mode
uv sync
install all dependancy groups by defaultNox
pyproject.toml
wntrblm/nox#845nox-poetry
does not have this eitherPyCharm
.venv
virtual environments created, but it would be even better if it supported introspectinguv.lock
and provided features similar to its native Poetry integrationDependabot
uv.lock
uv.lock
dependabot/dependabot-core#10478[dependency-groups]
inpyproject.toml
dependabot/dependabot-core#10847Migration Guide
poetry sync
->uv sync
uv lock --check
--locked
and--frozen
as--check
operations foruv lock
astral-sh/uv#9662tool.poetry.dependencies.python
upper bound that is required by PoetryRequires-Python
astral-sh/uv#4086tool.poetry.group
->[dependency-groups]
poetry update
- >uv lock --upgrade
[tool.poetry.dependencies.python]
->.python-version
file[tool.uv.default-groups]
asuv
does not install all groups by defaultnox-poetry
->nox
poetry show --tree
->uv tree
poetry export
->uv export
--only main
->--no-default-groups
--no-root
->--no-install-project
poetry build
->uv build
--only
->--only-group
Other changes
python-blueprint/.dockerignore
Line 8 in 35be74f
The text was updated successfully, but these errors were encountered: