Lock poetry dependencies

Let’s lock poetry dependencies for dephell. First of all, get dephell source code:

git clone https://github.com/dephell/dephell.git
cd dephell

With CLI arguments

$ dephell deps convert --from=pyproject.toml --to=poetry.lock

With config

Add this in your pyproject.toml:

from = {format = "poetry", path = "pyproject.toml"}
to = {format = "poetrylock", path = "poetry.lock"}

And then run:

$ dephell deps convert --config=pyproject.toml --env=main

Dephell by default uses pyproject.toml config and main section, so you can run it much simpler:

$ dephell deps convert