RUN poetry dynamic-versioning # Substitute versions because of https://github.com/mtkennerly/poetry-dynamic-versioning/issues/25#issuecomment-698193152, has to be done after installation otherwise pip will show "dirty" version
RUN poetry env use python3
RUN source"$(poetry env info --path)/bin/activate"
# Run installation once again to supplement extras and development dependencies
RUN git restore pyproject.toml clive/__init__.py # Restore files that were modified by previous dynamic-versioning
RUN poetry install
RUN poetry dynamic-versioning # Substitute versions because of https://github.com/mtkennerly/poetry-dynamic-versioning/issues/25#issuecomment-698193152, has to be done after installation otherwise pip will show "dirty" version