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: support uv #1990

Merged
merged 2 commits into from
Mar 7, 2025
Merged

feat: support uv #1990

merged 2 commits into from
Mar 7, 2025

Conversation

kemingy
Copy link
Member

@kemingy kemingy commented Mar 7, 2025

Try it with:

def build():
    base(dev=True)
    install.uv()
    shell("fish")

Signed-off-by: Keming <[email protected]>
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

PR Overview

This PR adds support for uv as an alternative to conda for managing Python environments. The changes include new UV-related functions and configurations in the IR package, corresponding starlark builtins and API updates, as well as an end-to-end test to ensure uv installations work correctly.

Reviewed Changes

File Description
pkg/lang/ir/v1/uv.go New functions to download and install uv along with uv Python support
e2e/language/python_test.go Added test case for uv installation with Python
envd/api/v1/install.py Added a new uv installation function
pkg/lang/ir/v1/interface.go Added the UV function for configuration in the IR hierarchy
pkg/lang/frontend/starlark/v1/install/install.go Added starlark builtin for uv installation
pkg/lang/ir/v1/system.go, pkg/lang/ir/v1/types.go, etc. Integrated UV config into the build process and updated related types and constants

Copilot reviewed 13 out of 13 changed files in this pull request and generated 1 comment.

Signed-off-by: Keming <[email protected]>
@kemingy kemingy enabled auto-merge March 7, 2025 11:13
@kemingy kemingy added this pull request to the merge queue Mar 7, 2025
Merged via the queue into tensorchord:main with commit 1089f98 Mar 7, 2025
12 checks passed
@kemingy kemingy deleted the uv branch March 7, 2025 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants