Download dev/sync-poetry from Underground-Digital/Workflow-Engine: direct link, hf CLI and curl.
- Browser
- Download file 486 Bytes
-
https://huggingface.co/spaces/Underground-Digital/Workflow-Engine/resolve/main/dev/sync-poetry
- Command line
-
hf download hf://spaces/Underground-Digital/Workflow-Engine/dev/sync-poetry
-
curl -L -o sync-poetry https://huggingface.co/spaces/Underground-Digital/Workflow-Engine/resolve/main/dev/sync-poetry
486 Bytes
| # rely on `poetry` in path | |
| if ! command -v poetry &> /dev/null; then | |
| echo "Installing Poetry ..." | |
| pip install poetry | |
| fi | |
| # check poetry.lock in sync with pyproject.toml | |
| poetry check -C api --lock | |
| if [ $? -ne 0 ]; then | |
| # update poetry.lock | |
| # refreshing lockfile only without updating locked versions | |
| echo "poetry.lock is outdated, refreshing without updating locked versions ..." | |
| poetry lock -C api --no-update | |
| else | |
| echo "poetry.lock is ready." | |
| fi | |