You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122
  1. #!/bin/bash
  2. # Update dependencies in dify/api project using uv
  3. set -e
  4. set -o pipefail
  5. SCRIPT_DIR="$(dirname "$0")"
  6. REPO_ROOT="$(dirname "${SCRIPT_DIR}")"
  7. # rely on `poetry` in path
  8. if ! command -v uv &> /dev/null; then
  9. echo "Installing uv ..."
  10. pip install uv
  11. fi
  12. cd "${REPO_ROOT}"
  13. # refreshing lockfile, updating locked versions
  14. uv lock --project api --upgrade
  15. # check uv.lock in sync with pyproject.toml
  16. uv lock --project api --check