This script helps migrate older projects from Pipenv to Poetry without installing new versions of your libraries.
The pipenv-poetry-migrate
utility is great, but it doesn't migrate the lock file. This script reads the lock file and pins the versions so you can safely poetry install
without getting newer versions of the libraries.
Once you've run the script, verify the contents of pyproject.toml.tmp
and if it checks out, replace the original pyproject.toml
with mv pyproject.toml.tmp pyproject.toml
.
Make sure to install the toml
library before running this script.