astral-sh / rye

a Hassle-Free Python Experience
https://rye.astral.sh
MIT License
13.88k stars 467 forks source link

set `verify-ssl` to false make uv not work at all #1313

Open Jeremy-Hibiki opened 4 months ago

Jeremy-Hibiki commented 4 months ago

Steps to Reproduce

  1. set [[tool.rye.sources]] field in pyproject.toml, and set verify-ssl to false (https://rye.astral.sh/guide/sources/#ssltls-verification)
  2. run rye sync or force sync

Expected Result

just a normal sync

Actual Result

> rye sync
Reusing already existing virtualenv
Generating production lockfile: /workspaces/<my-project>/requirements.lock
error: pip-compile's `--trusted-host` is unsupported (uv always requires HTTPS)
error: could not write production lockfile for project

Caused by:
    Failed to run uv compile /tmp/.tmp1vvaVC/requirements.txt. uv exited with status: exit status: 2
> rye sync --no-lock 
Reusing already existing virtualenv
Installing dependencies
error: pip-sync's `--trusted-host` is unsupported (uv always requires HTTPS)
error: Installation of dependencies failed in venv at /workspaces/<my-project>/.venv. uv exited with status: exit status: 2

Version Info

rye 0.38.0
commit: 0.38.0 (3e3c8540f 2024-08-02)
platform: linux (x86_64)
self-python: cpython@3.11.9
symlink support: true
uv enabled: true

Stacktrace

No response

bluss commented 4 months ago

There's an upstream issue tracking Uv support for something that fulfills this need, here: https://github.com/astral-sh/uv/issues/1339