-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Comparing changes
Open a pull request
base repository: astral-sh/uv
base: 0.3.4
head repository: astral-sh/uv
compare: 0.3.5
- 19 commits
- 78 files changed
- 7 contributors
Commits on Aug 26, 2024
-
Avoid reusing state across tool upgrades (#6660)
## Summary Because tool upgrades can use different Python versions, we can't share state across them. Closes #6659.
Configuration menu - View commit details
-
Copy full SHA for 100e45c - Browse repository at this point
Copy the full SHA 100e45cView commit details -
Add docs for
constraint-dependencies
andoverride-dependencies
(#……6596) Add missing portions of documents reported in #6518 and #5248(Comment). ## Summary <img width="600" alt="override" src="https://github.com/user-attachments/assets/062f0036-8672-4c68-b21c-aebdeb79b58b"> <img width="600" alt="constraint" src="https://github.com/user-attachments/assets/f5ef1aa2-0662-4352-a1a0-3af1127fb7fb">
Configuration menu - View commit details
-
Copy full SHA for 154ea24 - Browse repository at this point
Copy the full SHA 154ea24View commit details -
Respect
tool.uv.environments
inpip compile --universal
(#6663)## Summary We now respect the `environments` field in `uv pip compile --universal`, e.g.: ```toml [tool.uv] environments = ["platform_system == 'Emscripten'"] ``` Closes #6641.
Configuration menu - View commit details
-
Copy full SHA for 1ae2c3f - Browse repository at this point
Copy the full SHA 1ae2c3fView commit details
Commits on Aug 27, 2024
-
Detect musl and error for musl pbs builds (#6643)
As described in #4242, we're currently incorrectly downloading glibc python-build-standalone on musl target, but we also can't fix this by using musl python-build-standalone on musl targets since the musl builds are effectively broken. We reintroduce the libc detection previously removed in #2381, using it to detect which libc is the current one before we have a python interpreter. I changed the strategy a big to support an empty `PATH` which we use in the tests. For simplicity, i've decided to just filter out the musl python-build-standalone archives from the list of available archive, given this is temporary. This means we show the same error message as if we don't have a build for the platform. We could also add a dedicated error message for musl. Fixes #4242 ## Test Plan Tested manually. On my ubuntu host, python downloads continue to pass: ``` target/x86_64-unknown-linux-musl/debug/uv python install ``` On alpine, we fail: ``` $ docker run -it --rm -v .:/io alpine /io/target/x86_64-unknown-linux-musl/debug/uv python install Searching for Python installations error: No download found for request: cpython-any-linux-x86_64-musl ```
Configuration menu - View commit details
-
Copy full SHA for ae57d85 - Browse repository at this point
Copy the full SHA ae57d85View commit details -
Clarify package priority order in pip compatibility guide (#6619)
This is a minor documentation update to a recently added section "Package priority" in the pip compatibility guide. The aim of this PR is clear up two things which I think the current paragraph implies but I don't think are (always) true: 1. That pip doesn't use provided order to prioritize resolution 2. That uv relies solely on provided order to prioritize resolution What is true, at least for now, is pip has more heuristics than uv to prioritize during resolution, and so I've tried to rework this to make it clear why changing the order might help uv come to a different resolution whereas for pip it might not make a difference.
Configuration menu - View commit details
-
Copy full SHA for e44dc08 - Browse repository at this point
Copy the full SHA e44dc08View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3949e5d - Browse repository at this point
Copy the full SHA 3949e5dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 680dcc3 - Browse repository at this point
Copy the full SHA 680dcc3View commit details -
refactor: use a struct for install options (#6561)
## Summary Closes #6545. ## Test Plan Relying on existing tests.
Configuration menu - View commit details
-
Copy full SHA for 6a988ac - Browse repository at this point
Copy the full SHA 6a988acView commit details -
docs: use
python
to highlight requirements and use more content tabs (#6549) ## Summary It appears that using `python` for code blocks containing requirements works quite well. ![Screenshot from 2024-08-23 23-23-05](https://github.com/user-attachments/assets/38c92ef7-1f5e-40eb-8ea4-7024c8180bc4) ![Screenshot from 2024-08-23 23-23-31](https://github.com/user-attachments/assets/940dc7d5-22a8-4cd8-b54a-d56542d4345c) Also using more content tabs for cases where we need to differentiate macOS/Linux from Windows. ## Test Plan Local run of the documentation.
Configuration menu - View commit details
-
Copy full SHA for fd17f6d - Browse repository at this point
Copy the full SHA fd17f6dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 563e292 - Browse repository at this point
Copy the full SHA 563e292View commit details -
Fix docs for disabling build isolation with
uv sync
(#6674)Self-explanatory
Configuration menu - View commit details
-
Copy full SHA for 5ef0375 - Browse repository at this point
Copy the full SHA 5ef0375View commit details -
Ignore send errors in installer (#6667)
## Summary Similar to #6182.
Configuration menu - View commit details
-
Copy full SHA for 51723a2 - Browse repository at this point
Copy the full SHA 51723a2View commit details -
Read requirements from
requires.txt
when available (#6655)## Summary Allows us to avoid building setuptools-based packages at versions prior to Metadata 2.2 Closes #6647.
Configuration menu - View commit details
-
Copy full SHA for ce74959 - Browse repository at this point
Copy the full SHA ce74959View commit details -
Add support for
--trusted-host
(#6591)## Summary This PR revives #4944, which I think was a good start towards adding `--trusted-host`. Last night, I tried to add `--trusted-host` with a custom verifier, but we had to vendor a lot of `reqwest` code and I eventually hit some private APIs. I'm not confident that I can implement it correctly with that mechanism, and since this is security, correctness is the priority. So, instead, we now use two clients and multiplex between them. Closes #1339. ## Test Plan Created self-signed certificate, and ran `python3 -m http.server --bind 127.0.0.1 4443 --directory . --certfile cert.pem --keyfile key.pem` from the packse index directory. Verified that `cargo run pip install transitive-yanked-and-unyanked-dependency-a-0abad3b6 --index-url https://127.0.0.1:8443/simple-html` failed with: ``` error: Request failed after 3 retries Caused by: error sending request for url (https://127.0.0.1:8443/simple-html/transitive-yanked-and-unyanked-dependency-a-0abad3b6/) Caused by: client error (Connect) Caused by: invalid peer certificate: Other(OtherError(CaUsedAsEndEntity)) ``` Verified that `cargo run pip install transitive-yanked-and-unyanked-dependency-a-0abad3b6 --index-url 'https://127.0.0.1:8443/simple-html' --trusted-host '127.0.0.1:8443'` failed with the expected error (invalid resolution) and made valid requests. Verified that `cargo run pip install transitive-yanked-and-unyanked-dependency-a-0abad3b6 --index-url 'https://127.0.0.1:8443/simple-html' --trusted-host '127.0.0.2' -n` also failed.
Configuration menu - View commit details
-
Copy full SHA for d86075f - Browse repository at this point
Copy the full SHA d86075fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f15f2d - Browse repository at this point
Copy the full SHA 3f15f2dView commit details -
Improve messages for empty solves and installs (#6588)
## Summary Tries to improve the following: ``` ❯ cargo run sync Compiling uv-cli v0.0.1 (/Users/crmarsh/workspace/uv/crates/uv-cli) Compiling uv v0.3.3 (/Users/crmarsh/workspace/uv/crates/uv) Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.81s Running `/Users/crmarsh/workspace/uv/target/debug/uv sync` Using Python 3.12.1 Creating virtualenv at: .venv Resolved in 7ms Audited environment in 0.05ms ``` In this case we don't actually have any dependencies -- should we just omit `Resolved in...` and perhaps even the audited line?
Configuration menu - View commit details
-
Copy full SHA for 5d5e06c - Browse repository at this point
Copy the full SHA 5d5e06cView commit details -
Add note about install python on alpine (#6677)
When not using a python base image and using alpine, you need to install python by yourself. You should also pin the python version when doing so; currently, i see only python 3.12 in the alpine repository.
Configuration menu - View commit details
-
Copy full SHA for 18453ae - Browse repository at this point
Copy the full SHA 18453aeView commit details -
Configuration menu - View commit details
-
Copy full SHA for cee0d2d - Browse repository at this point
Copy the full SHA cee0d2dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6c62d9f - Browse repository at this point
Copy the full SHA 6c62d9fView commit details
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.