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

improvement: Use UV as the default installer for Kraken build-time virtual environments #281

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changelog/_unreleased.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[[entries]]
id = "cef04ded-99dc-42c0-8a69-79915a368d74"
type = "improvement"
description = "Use UV as the default installer for Kraken build-time virtual environments"
author = "@NiklasRosenstein"
2 changes: 1 addition & 1 deletion kraken-wrapper/src/kraken/wrapper/_buildenv_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def __init__(
project_root: Path,
path: Path,
auth: AuthModel,
default_type: EnvironmentType = EnvironmentType.VENV,
default_type: EnvironmentType = EnvironmentType.UV,
default_hash_algorithm: str = "sha256",
incremental: bool = False,
show_install_logs: bool = False,
Expand Down
2 changes: 1 addition & 1 deletion kraken-wrapper/src/kraken/wrapper/_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def set_default_installer(self, env_type: EnvironmentType) -> None:
logger.info("saving default_installer=%r in %s", env_type.name, self._path)

def get_default_installer(self) -> EnvironmentType:
default = EnvironmentType.VENV
default = EnvironmentType.UV
if value := self._config.get("default_installer"):
try:
return EnvironmentType[value]
Expand Down
Loading