Skip to content
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: add support for stree installing #202

Merged
merged 13 commits into from
Feb 8, 2024

Conversation

nichmor
Copy link
Collaborator

@nichmor nichmor commented Feb 7, 2024

closes: #201

Copy link
Contributor

@tdejager tdejager left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Almost done, check the comments :)

return built;
} else {
miette::bail!("cannot build wheel without a wheel builder");
}
}

// Try to build the wheel for this SDist if possible
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I might be missing something but one of the original problems, was that if a wheel or sdists was referenced by file, this call below will fail.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, just tested this and it still does:

$ cargo r "miniblack @ file:///Users/tdejager/development/prefix/rattler_installs_packages/test-data/wheels/miniblack-23.1.0-py3-none-any.whl" --install-into /tmp/bla2

# errors with:
installing: miniblack - 23.1.0
2024-02-08T08:45:22.764833Z  INFO rattler_installs_packages::index::http: executing request url=file:///Users/tdejager/development/prefix/rattler_installs_packages/test-data/wheels/miniblack-23.1.0-py3-none-any.whl cache_mode=Default
  × Request error: builder error for url (file:///Users/tdejager/development/prefix/rattler_installs_packages/test-data/wheels/miniblack-23.1.0-py3-none-any.whl): URL scheme is not allowed
  ├─▶ builder error for url (file:///Users/tdejager/development/prefix/rattler_installs_packages/test-data/wheels/miniblack-23.1.0-py3-none-any.whl): URL scheme is not allowed
  ╰─▶ URL scheme is not allowed

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes that's true - I've missed this and spotted during direct_url.json development.
Will fix it and add a test

@nichmor
Copy link
Collaborator Author

nichmor commented Feb 8, 2024

I've added is_direct_url into ArtifactInfo, so I could differentiate what kind of artifact it is without adding these field into SdistFilename and WheelFileName. Let me know what do you think @tdejager

@tdejager
Copy link
Contributor

tdejager commented Feb 8, 2024

I've added is_direct_url into ArtifactInfo, so I could differentiate what kind of artifact it is without adding these field into SdistFilename and WheelFileName. Let me know what do you think @tdejager

Yes, I was also thinking about that, let's try that design for now :)

Co-authored-by: Tim de Jager <tdejager89@gmail.com>
@nichmor nichmor merged commit 01883bb into prefix-dev:main Feb 8, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Support getting the actual artifacts for STree and direct file references
2 participants