-
Notifications
You must be signed in to change notification settings - Fork 899
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for direct archive dependencies in Git #10072
base: main
Are you sure you want to change the base?
Conversation
8705c37
to
6219339
Compare
6219339
to
acbc01c
Compare
@@ -5527,6 +5527,96 @@ fn sync_git_repeated_member_backwards_path() -> Result<()> { | |||
Ok(()) | |||
} | |||
|
|||
/// A Git repository that points to a pre-built archive within the repository. | |||
#[test] | |||
fn sync_git_path_archive() -> Result<()> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the real motivating example: you have a project that you push to GitHub that includes a path
source that points to a wheel, like:
[project]
name = "archive-in-git-test"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.13"
dependencies = ["iniconfig"]
[tool.uv.sources]
iniconfig = { path = "archives/iniconfig-2.0.0-py3-none-any.whl" }
We have to translate that path source to a Git source so that we avoid writing cache paths to the lockfile.
Prepared 2 packages in [TIME] | ||
Installed 2 packages in [TIME] | ||
+ archive-in-git-test==0.1.0 (from git+https://github.com/astral-sh/archive-in-git-test.git@bb7ce6abf9f90544767701de5b7b0c7802dc642b) | ||
+ iniconfig==2.0.0 (from git+https://github.com/astral-sh/archive-in-git-test.git@bb7ce6abf9f90544767701de5b7b0c7802dc642b#path=archives/iniconfig-2.0.0-py3-none-any.whl) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sick
53402d2
to
3e61108
Compare
3e61108
to
853c4fd
Compare
Summary
This PR adds support for sources that reference pre-built archives (wheels or source distributions) within Git repositories.