From 18d16ebf4bb2a76f0293d8426d2b58b9e677926e Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Wed, 11 Jun 2025 17:12:05 -0700 Subject: [PATCH] python3Packages.langchain-core: remove update script This isn't needed with the change to gitUpdater --- .../python-modules/langchain-core/update.sh | 52 ------------------- 1 file changed, 52 deletions(-) delete mode 100755 pkgs/development/python-modules/langchain-core/update.sh diff --git a/pkgs/development/python-modules/langchain-core/update.sh b/pkgs/development/python-modules/langchain-core/update.sh deleted file mode 100755 index cae8ebaf4c79..000000000000 --- a/pkgs/development/python-modules/langchain-core/update.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/usr/bin/env nix-shell -#!nix-shell -i bash -p common-updater-scripts jq - -set -euo pipefail - -declare -ar packages=( - langchain - langchain-anthropic - langchain-azure-dynamic-sessions - langchain-chroma - langchain-community - langchain-core - langchain-deepseek - langchain-fireworks - langchain-groq - langchain-huggingface - langchain-mistralai - langchain-mongodb - langchain-ollama - langchain-openai - langchain-perplexity - langchain-tests - langchain-text-splitters - langchain-xai -) - -tags=$(git ls-remote --tags --refs "https://github.com/langchain-ai/langchain" | cut --delimiter=/ --field=3-) - -# Will be printed as JSON at the end to list what needs updating -updates="" - -for package in ${packages[@]} -do - pyPackage="python3Packages.$package" - oldVersion="$(nix-instantiate --eval -E "with import ./. {}; lib.getVersion $pyPackage" | tr -d '"')" - newVersion=$(echo "$tags" | grep -Po "(?<=$package==)\d+\.\d+\.\d+$" | sort --version-sort --reverse | head -1 ) - if [[ "$newVersion" != "$oldVersion" ]]; then - update-source-version $pyPackage "$newVersion" - updates+="{ - \"attrPath\": \"$pyPackage\", - \"oldVersion\": \"$oldVersion\", - \"newVersion\": \"$newVersion\", - \"files\": [ - \"$PWD/pkgs/development/python-modules/${package}/default.nix\" - ] -}," - fi -done -# Remove trailing comma -updates=${updates%,} -# Print the updates in JSON format -echo "[ $updates ]"