Skip to main content

A simple tool to migrate your Poetry project to rye

Project description

poetry2rye

A simple tool to migrate your Poetry project to rye.

Install

rye install poetry2rye

Usage

Migrate

poetry2rye mig [PATH]

Migrate path projects to rye.

This command does the following:

  • if the project is flat-layout, make it src-layout
  • remove poetry.lock
    • this doesn't respect the lock file (at this time)
  • change pyproject.toml
    • remove [tool.poetry] and [tool.poetry.*]
    • make [project] from [tool.poetry] and [tool.poetry.*]
    • change [build-system]
    • add [tool.rye]
    • add [tool.hatch.metadata]

Get Backup

poetry2rye get-backup [PATH]

Options:

  • -n [NUMBER]: The number of the backup to retrieve. If not specified, the last backup created will be used.
  • -y: Skip the confirmation prompt.

Retrieve the backup automatically created during migration and replace the project with the backup.

if NUMBER is not specified, the last backup created will be used.

The backup folder is .__p2r_backup_{project_name}_{number} format and placed in the same directory as the project directory (which is a child of the project parent directory).

Other

This tool is for personal use and should be used at your own risk. Backups will be made, but we cannot be held responsible for project corruption!

The license is the MIT License.

If you have any bugs, mistakes, feature suggestions, etc., issues and pull requests are welcome.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

poetry2rye-0.3.1.tar.gz (23.9 kB view details)

Uploaded Source

Built Distribution

poetry2rye-0.3.1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file poetry2rye-0.3.1.tar.gz.

File metadata

  • Download URL: poetry2rye-0.3.1.tar.gz
  • Upload date:
  • Size: 23.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.1

File hashes

Hashes for poetry2rye-0.3.1.tar.gz
Algorithm Hash digest
SHA256 d1ada354fa4c4b9ac1755daba5b086b151c2696df180360460e1f7b48bf8a733
MD5 85b59ca7d957d99a34cbb99fa25099fb
BLAKE2b-256 52bd709f1e644866d22d430106ae813d8667f02e44a17da795565d5b530fb0c4

See more details on using hashes here.

File details

Details for the file poetry2rye-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: poetry2rye-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.1

File hashes

Hashes for poetry2rye-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4a225725039bcc695f65431e3ce3f372a51a9e4ccd7ce7c7a0da074d3f544cd6
MD5 cb53f0f57d45db11e6f2508ea933a876
BLAKE2b-256 aebe75d0e507c5b65b5dd2e7bec8da488c362ab2d449dea663f2796dc11c2b0b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page