Skip to content

Commit

Permalink
Flip uv to the default Rye backend
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Apr 26, 2024
1 parent c0db24c commit 9ba0d49
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions docs/guide/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,10 @@ force-rye-managed = false
# virtual environments.
global-python = false

# When set to `true` enables experimental support of uv as a replacement
# for pip-tools. Learn more about uv here: https://github.com/astral-sh/uv
use-uv = false
# When set to `true`, Rye will use `uv` for package resolutin and installation.

Check warning on line 84 in docs/guide/config.md

View workflow job for this annotation

GitHub Actions / Spell check

"resolutin" should be "resolutions" or "resolution".
# Set to `false` to fall back to the `pip-tools` resolver.
# Learn more about uv here: https://github.com/astral-sh/uv
use-uv = true

# Enable or disable automatic `sync` after `add` and `remove`. This defaults
# to `true` when uv is enabled and `false` otherwise.
Expand Down
4 changes: 2 additions & 2 deletions docs/guide/sync.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
Rye supports two systems to manage dependencies:
[uv](https://github.com/astral-sh/uv) and
[pip-tools](https://github.com/jazzband/pip-tools). It currently defaults to
`pip-tools` but will offer you the option to use `uv` instead. `uv` will become
the default choice once it stabilzes as it offers significantly better performance.
`uv` as it offers significantly better performance, but will offer you the
option to use `pip-tools` instead.

In order to download dependencies rye creates two "lockfiles" (called
`requirements.lock` and `requirements-dev.lock`). These are not real lockfiles
Expand Down
2 changes: 1 addition & 1 deletion rye/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ impl Config {
.get("behavior")
.and_then(|x| x.get("use-uv"))
.and_then(|x| x.as_bool())
.unwrap_or(false)
.unwrap_or(true)
}

/// Fetches python installations with build info if possible.
Expand Down

0 comments on commit 9ba0d49

Please sign in to comment.