findpython icon indicating copy to clipboard operation
findpython copied to clipboard

Add support for uv as replacement for rye

Open matejsp opened this issue 1 year ago • 1 comments

Please add support for uv. Uv is replacement for rye that you support. The reason for that is because poetry in 2.1.x started using findpython to find python instalation and would remove couple of hacks that are currently required.

Links: https://lucumr.pocoo.org/2024/2/15/rye-grows-with-uv/ https://github.com/python-poetry/poetry/releases/tag/2.1.0

Example run:

uv python list
cpython-3.11.6-macos-aarch64-none                  ~/.local/share/uv/python/cpython-3.11.6-macos-aarch64-none/bin/python3.11

matejsp avatar Feb 17 '25 06:02 matejsp

SGTM, contribute welcome

frostming avatar Feb 17 '25 07:02 frostming

Hello @frostming , I'm dealing with this issue, and I'm writing UT. I'm a little curious why you wrote test_find_python_from_ tests in test_posix.py rather than test_provider.py, why you let these tests skip on windows? Should I also write test_uv_provider here or rename this file and delete skip?

monchin avatar Jun 05 '25 15:06 monchin

Hello @frostming , I'm dealing with this issue, and I'm writing UT. I'm a little curious why you wrote test_find_python_from_ tests in test_posix.py rather than test_provider.py, why you let these tests skip on windows? Should I also write test_uv_provider here or rename this file and delete skip?

Because I don't want to deal with the path differences between posix and windows. And most of the test cases use mocks, so it doesn't lose generality.

frostming avatar Jun 06 '25 00:06 frostming