Remove pip-tools, use uv for all operations#1226
Remove pip-tools, use uv for all operations#1226charliermarsh merged 7 commits intoastral-sh:mainfrom
Conversation
| ruff==0.4.4 | ||
| "#; | ||
|
|
||
| const LATEST_PIP: &str = "pip==23.3.2"; |
There was a problem hiding this comment.
We can drop it in another PR.
There was a problem hiding this comment.
I may have been mistaken but I thought we needed pip in the uv venv for tools like maturin
There was a problem hiding this comment.
I may have been mistaken but I thought we needed pip in the uv venv for tools like maturin
I don't think so.
uv is also drop-in replacement for pip, so I think we can use it instead.
I didn't do full review since a team member should do and approve this PR. I just recommended what could done in next PR.
Regard, @nazq .
There was a problem hiding this comment.
Seems you're correct. Looks like maturin added this support with this PR a couple of months back. PyO3/maturin#2015
| fn check_in_use(ver: &PythonVersion) -> Result<(), Error> { | ||
| // Check if used by rye itself. | ||
| let app_dir = get_app_dir(); | ||
| for venv in &[app_dir.join("self"), get_pip_tools_venv_path(ver)] { |
There was a problem hiding this comment.
I don't think this whole loop should be removed, only the pip tools element in the array?
0fa01c4 to
e2d856a
Compare
|
Rebased main, and squashed out my previous commits |
|
I think I'll take a stab at the docs too now and then move this out of draft |
Remove pip even from uv venvs Add back rye/self toolchain in use check Add docs updates
|
Docs updates added |
| - **No Exposed Pip:** pip is intentionally not exposed. If you were to install something | ||
| into the virtualenv, it disappears next time you sync. If you symlink `rye` to | ||
| `~/.rye/shims/pip` you can get access to pip without installing it into the | ||
| virtualenv. There be dragons. |
There was a problem hiding this comment.
I think some part of this should remain in docs.
It should still say that pip is not exposed in Rye's virtualenvs maybe? Since that's a difference to what python -m venv does, i.e "normal" virtual environments have pip, rye's virtual environments do not.
The symlink to pip thing can probably be removed.
| [pip-tools](https://github.com/jazzband/pip-tools). It currently defaults to | ||
| `uv` as it offers significantly better performance, but will offer you the | ||
| option to use `pip-tools` instead. | ||
| Rye supports only supports [`uv`](https://github.com/astral-sh/uv) to manage dependencies. |
|
Sorry for the delay on this one. I'll take a look soon. |
Haven't updated the docs just yet but wanted to get some folks to look at the code changes first.