Crates.io | uv-migrator |
lib.rs | uv-migrator |
version | |
source | src |
created_at | 2024-10-09 19:54:16.306774 |
updated_at | 2024-12-02 22:48:03.676814 |
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 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
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.
This project is not associated with astral or the uv project in anyway, please use at your own risk and keep backups of your dependency declarations for reference
pyproject.toml
or requirements.txt
to the new UV-based
projectpyproject.toml
filerequirements-some_group_name.txt
with req files they will be
translated into uv dependency groups otherwise they will use the main and --dev conventionsBefore you begin, ensure you have the following installed:
Install to .local/bin
curl https://uv-migrator.stvnksslr.com/install.sh | bash
Install via Cargo
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