News for hackers. Stuff that matters.
Re:Uv: Python packaging in Rust by charliermarsh on Thursday February 15, 2024 @04:15PM (#39388979)
Thanks Ed! Your work as always is a big source of inspiration.

> Do you expect to make the higher level workflow independent of requirements.txt / support a platform-agnostic lockfile? Being attached to Rye makes me think "no".

Yes, we absolutely do. We don't do this today, the initial scope is intentionally limited. But in the next phase of the project, we want to extend to multi-platform and multi-version resolution.

> How are you handling pre-releases in you resolution? Unsure how much of that is specified in PEPs. Its something that Cargo is weak in today but we're slowly improving.

This is something we talked with Jacob about quite a bit. Turns out (as you know) it's a very hard problem. For the initial release, we added a constraint: our default behavior is that if you want to use a pre-release, you _have_ to specify the package as a first-party dependency and use a pre-release marker in the version specifier. (We also support globally enabling and disabling pre-releases.) So, we basically don't support "transitive" pre-releases right now -- but we give you a dedicated error message if your resolution fails for that reason.

Re:Uv: Python packaging in Rust by thaliaarchi on Thursday February 15, 2024 @07:51PM (#39391600)
Any plans to tackle the Python version installation side of things and make it as seamless as rustup has? I've previously used `pyenv install` for this, but it would be nice to fold it into one tool.
Re:Uv: Python packaging in Rust by charliermarsh on Thursday February 15, 2024 @09:32PM (#39392415)
Yeah, this is very much on our roadmap and probably one of the first things we'll tackle next.
Re:Uv: Python packaging in Rust by rat87 on Friday February 16, 2024 @02:59PM (#39402184)
Note that rye already handles it better then pyenv (it downloads pre built pythons instead of building from source). I assume they'll eventually they'll copy/move the functionality over.