Uv 0.12.0
Posted by hallvard 2 hours ago
Comments
Comment by woodruffw 2 hours ago
Comment by simonw 1 hour ago
[project.scripts]
demo-latest = "demo_latest:main"
What's the rationale for that? My expectation is that few projects would need it.(I have a GitHub repo that captures differences between uv versions, here's today's upgrade: https://github.com/simonw/uv-init-demos/commit/9111a2bb85741...)
Comment by zanie 1 hour ago
Comment by _diyar 2 hours ago
Comment by zanie 1 hour ago
There are two PEPs that we're involved with that will provide the components for the ecosystem to properly declare metadata in this domain [1] [2].
We're also working on some features in uv, such as the torch backend option [3], to improve the situation in the interim.
We'll be announcing more in this area in the near future!
[1] https://peps.python.org/pep-0817/ [2] https://peps.python.org/pep-0825/ [3] https://docs.astral.sh/uv/guides/integration/pytorch/#automa...
Comment by helltone 1 hour ago
Follow up: has anyone suggested the projects collaborate or eventually converge?
Comment by zanie 1 hour ago
There have been several threads about us collaborating or converging, but there are no concrete plans to do so at this time. We share some Rust crates, e.g., Pixi uses our internals to solve the PyPI-side of their dependencies, and we occasionally fix or change things for each other.
Comment by hallvard 2 hours ago
Comment by zanie 2 hours ago
We keep the interface because we care a lot about long-term support and compatibility. I cannot imagine removing it.
We generally want to add features to the top-level interface such that people don't need or want to use the pip-interface because the top-level interface does everything you need, but better.
Comment by nvme0n1p1 1 hour ago
uv already does something similar with `tool.uv.pip.break-system-packages`.
Comment by notatallshaw 1 hour ago
If Astral/OpenAI are willing to support uv pip in the long term, why do you think they should use a stick as well as a carrot to get people on uv's top level interface?
While uv's standard workflows probably works for 80+% of people, at least if they learn them, I certain do a lot of stuff with uv pip and pip that can't be replicated.
Also both uv pip and pip support installing from pylock.toml files, which are fully reproducible.
Comment by zanie 1 hour ago
Comment by EuanReid 53 minutes ago
Comment by hallvard 2 hours ago
And of course that some colleagues of mine insist on using `uv pip` for anything and everything, which feels wrong…
Granted it’s a great feature which made the transition to uv smooth in the first place.
Comment by zanie 1 hour ago
Comment by ghshephard 51 minutes ago
Is there any compelling reason not to?
Comment by woodruffw 2 hours ago
Comment by walthamstow 1 hour ago
Comment by gkhartman 59 minutes ago
Comment by Lucasoato 2 hours ago
Comment by woodruffw 2 hours ago
Comment by carsmain 37 minutes ago
Comment by fishgoesblub 1 hour ago
Comment by zanie 1 hour ago
Comment by fishgoesblub 1 hour ago
Comment by simonw 1 hour ago
Comment by notatallshaw 1 hour ago
Comment by brcmthrowaway 2 hours ago
Comment by woodruffw 2 hours ago
Comment by zanie 2 hours ago
Comment by uvvuajd 1 hour ago
Comment by pytorch_app4 1 hour ago
Comment by drzhouq 1 hour ago
Comment by yablak 2 hours ago
Comment by XorNot 55 minutes ago
It's still very obtuse how to get uv to just try and make all my dependencies the highest version possible.
Comment by zanie 30 minutes ago
(but as a note, the initial `uv lock` will already attempt to choose the highest possible versions and `uv lock --upgrade` will do so again, requests for `uv upgrade` are generally centered around changing the constraints in the `pyproject.toml`)
Comment by peterdsharpe 47 minutes ago
Comment by analognoise 2 hours ago