-
Notifications
You must be signed in to change notification settings - Fork 22
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
feat: always record direct_url.json #211
Merged
Merged
Changes from 14 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
56ff0f5
feat: add support for stree installing
nichmor 2967c93
misc: remove comments
nichmor 63a5254
misc: remove tmpdir
nichmor e30cebc
misc: use tmpdir
nichmor f21839d
feat: add support for direct whl and sdist
nichmor 58ba595
misc: remove commented code
nichmor e607264
Merge branch 'main' into feat/install-stree-artifact
nichmor bfea618
misc: fix intra-doc links
nichmor f54fb42
misc: remove direct url from wheel struct
nichmor 8ebfba5
misc: remove unused url
nichmor c85d172
feat: record direc url json
nichmor 3979b65
feat: always record direct_url.json
nichmor 26ef45b
Merge branch 'main' into feat/record-direct-url
nichmor 154b986
misc: change tests
nichmor dee2a7c
misc: remove some comments
nichmor 02727e0
misc: return ?
nichmor 583b8a1
misc: fmt
nichmor b186d1c
misc: add tests
nichmor 24a64b5
feat: remove unused import
nichmor 8145cfa
misc: add snapshot
nichmor 092f14b
misc: add snapshot
nichmor File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -301,11 +301,18 @@ async fn actual_main() -> miette::Result<()> { | |
console::style(pinned_package.version).italic() | ||
); | ||
let artifact_info = pinned_package.artifacts.first().unwrap(); | ||
let artifact = package_db | ||
let (artifact, direct_url_json) = package_db | ||
.get_wheel(artifact_info, Some(&wheel_builder)) | ||
.await?; | ||
venv.install_wheel(&artifact, &UnpackWheelOptions::default()) | ||
.into_diagnostic()?; | ||
println!("DIRECT URL JSON IS {:?}", direct_url_json); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👀 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 |
||
venv.install_wheel( | ||
&artifact, | ||
&UnpackWheelOptions { | ||
direct_url_json, | ||
..Default::default() | ||
}, | ||
) | ||
.into_diagnostic()?; | ||
} | ||
} | ||
|
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Should probably not be an
expect
, right?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.
yes, should be ?
thanks for spotting it!