Add UV_UPLOAD_HTTP_TIMEOUT and respect UV_HTTP_TIMEOUT in uploads (#16040)

## Summary
- Move parsing `UV_HTTP_TIMEOUT`, `UV_REQUEST_TIMEOUT` and
`HTTP_TIMEOUT` to `EnvironmentOptions`
- Add new env varialbe `UV_UPLOAD_HTTP_TIMEOUT`

Relates https://github.com/astral-sh/uv/issues/14720

## Test Plan

Tests with existing tests
This commit is contained in:
Andrei Berenda
2025-10-09 21:28:30 +04:00
committed by GitHub
parent 84d6a913ac
commit a58d031157
16 changed files with 243 additions and 62 deletions
+4
View File
@@ -651,6 +651,10 @@ Equivalent to the `--torch-backend` command-line argument (e.g., `cpu`, `cu126`,
Used ephemeral environments like CI to install uv to a specific path while preventing
the installer from modifying shell profiles or environment variables.
### `UV_UPLOAD_HTTP_TIMEOUT`
Timeout (in seconds) for only upload HTTP requests. (default: 900 s)
### `UV_VENV_CLEAR`
<small class="added-in">added in `0.8.0`</small>