Crates.io | rye-uv |
lib.rs | rye-uv |
version | 0.1.3 |
source | src |
created_at | 2024-08-24 10:42:05.449496 |
updated_at | 2024-09-09 16:51:55.658638 |
description | A CLI tool to migrate from Rye to Uv |
homepage | https://github.com/lucianosrp/rye-uv |
repository | https://github.com/lucianosrp/rye-uv |
max_upload_size | |
id | 1350167 |
size | 29,209 |
Since v0.3.0
, uv can now handle python projects and packaging.
It is therefore very similar to what rye can do.
Although rye will still be in active development, you may want to give uv a try since you probably have it already installed.
This tool aims to facilitate the transition from rye to uv.
It converts the tool.rye
setttings in pyproject.toml
to tool.uv
and make adjustments when needed.
Usage: rye-uv [OPTIONS] <PYPROJECT>
Arguments:
<PYPROJECT> The path of the pyproject.toml file
Options:
--no-overwrite Whether to overwrite the existing pyproject.toml - defaults to false
--no-backup Don't create a backup file of the original rye config - defaults to false
-p, --print Just print the output file
-h, --help Print help
-V, --version Print version
By doing the default:
rye-uv pyproject.toml
pyproject-rye.toml
rye-uv pyproject.toml --no-overwrite
A new pyproject-uv.toml
will be creared
cargo install rye-uv
Clone the repository and build using cargo
cargo build --release
Some boolean values will be "inverted" to match.
Other settings may need to be deleted in orther to make the pyproject.toml fully compatible.
See the table below for more.
rye setting | uv setting | rye docs | uv docs | uv version | Inverted | Deleted |
---|---|---|---|---|---|---|
tool.rye |
tool.uv |
Link | Link | >=0.3.0 | ||
tool.rye.universal |
tool.uv.pip.universal |
Link | Link | >=0.3.0 | ||
tool.rye.generate-hashes |
tool.uv.pip.generate-hashes |
Link | Link | >=0.3.0 | ||
tool.rye.lock-with-sources |
tool.uv.no-source |
Link | Link | >=0.3.0 | ✅ | |
tool.rye.virtual |
Link | >=0.3.0,<0.4.0 | ✅ | |||
tool.rye.virtual |
too.uv.package |
Link | Link | >=0.4.0 | ✅ |