Crates.io | uv-migrator |
lib.rs | uv-migrator |
version | 2024.5.3 |
source | src |
created_at | 2024-10-09 19:54:16.306774 |
updated_at | 2024-11-11 01:56:05.83879 |
description | Tool for converting various python package soltutions to use the uv solution by astral |
homepage | |
repository | https://github.com/stvnksslr/uv-migrator |
max_upload_size | |
id | 1403007 |
size | 129,839 |
UV Migrator is a Rust-based tool designed to facilitate the migration of Python projects from various dependency management systems (like pip or poetry) to the UV package manager. This tool automates the process of creating a new UV-based project structure while preserving existing dependencies.
pyproject.toml
or requirements.txt
to the new UV-based projectpyproject.toml
fileBefore you begin, ensure you have the following installed:
cargo install uv-migrator
The compiled binary will be available in the target/release
directory.
Run the UV Migrator with the path to your existing project directory:
uv-migrator path/to/your/project
or
1. cd /to/project
2. uv-migrator .
--import-global-pip-conf
: Import extra index URLs from ~/.pip/pip.conf
uv-migrator path/to/your/project --import-global-pip-conf
--import-index
: Specify additional index URLs to import (can be used multiple times)
uv-migrator path/to/your/project --import-index https://custom.pypi.org/simple/
--help
: Display comprehensive help information
uv-migrator --help
--self-update
: Update UV Migrator to the latest version
uv-migrator --self-update