Team Ai
Apppublic

Underground-Digital/Workflow-Engine

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
sync-poetry19 linesDownload Raw Back to dev
1#!/bin/bash2 3# rely on `poetry` in path4if ! command -v poetry &> /dev/null; then5    echo "Installing Poetry ..."6    pip install poetry7fi8 9# check poetry.lock in sync with pyproject.toml10poetry check -C api --lock11if [ $? -ne 0 ]; then12    # update poetry.lock13    # refreshing lockfile only without updating locked versions14    echo "poetry.lock is outdated, refreshing without updating locked versions ..."15    poetry lock -C api --no-update16else17  echo "poetry.lock is ready."18fi19