-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat-dynamic-model-loading
- Loading branch information
Showing
197 changed files
with
4,561 additions
and
2,415 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash | ||
shell: bash -ex -o pipefail {0} | ||
permissions: | ||
# Required to create tag | ||
contents: write | ||
|
@@ -69,17 +69,10 @@ jobs: | |
git config --global user.email "[email protected]" | ||
git config --global user.name "Langflow Bot" | ||
BASE_TAG="${{ steps.generate_base_tag.outputs.base_tag }}" | ||
echo "Updating base project version to $BASE_TAG" | ||
uv run ./scripts/ci/update_pyproject_name.py langflow-base-nightly base | ||
uv run ./scripts/ci/update_pyproject_version.py $BASE_TAG base | ||
# Use the main tag created earlier | ||
MAIN_TAG="${{ steps.generate_main_tag.outputs.main_tag }}" | ||
echo "Updating main project version to $MAIN_TAG" | ||
uv run ./scripts/ci/update_pyproject_version.py $MAIN_TAG main | ||
uv run ./scripts/ci/update_pyproject_name.py langflow-nightly main | ||
uv run ./scripts/ci/update_uv_dependency.py $BASE_TAG | ||
BASE_TAG="${{ steps.generate_base_tag.outputs.base_tag }}" | ||
echo "Updating base project version to $BASE_TAG and updating main project version to $MAIN_TAG" | ||
uv run ./scripts/ci/update_pyproject_combined.py main $MAIN_TAG $BASE_TAG | ||
uv lock | ||
cd src/backend/base && uv lock && cd ../../.. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#!/usr/bin/env python | ||
# scripts/ci/update_pyproject_combined.py | ||
import sys | ||
from pathlib import Path | ||
|
||
from update_pyproject_name import update_pyproject_name | ||
from update_pyproject_name import update_uv_dep as update_name_uv_dep | ||
from update_pyproject_version import update_pyproject_version | ||
from update_uv_dependency import update_uv_dep as update_version_uv_dep | ||
|
||
# Add the current directory to the path so we can import the other scripts | ||
current_dir = Path(__file__).resolve().parent | ||
sys.path.append(str(current_dir)) | ||
|
||
|
||
def main(): | ||
"""Universal update script that handles both base and main updates in a single run. | ||
Usage: | ||
update_pyproject_combined.py main <main_tag> <base_tag> | ||
""" | ||
arg_count = 4 | ||
if len(sys.argv) != arg_count: | ||
print("Usage:") | ||
print(" update_pyproject_combined.py main <main_tag> <base_tag>") | ||
sys.exit(1) | ||
|
||
mode = sys.argv[1] | ||
if mode != "main": | ||
print("Only 'main' mode is supported") | ||
print("Usage: update_pyproject_combined.py main <main_tag> <base_tag>") | ||
sys.exit(1) | ||
|
||
main_tag = sys.argv[2] | ||
base_tag = sys.argv[3] | ||
|
||
# First handle base package updates | ||
update_pyproject_name("src/backend/base/pyproject.toml", "langflow-base-nightly") | ||
update_name_uv_dep("pyproject.toml", "langflow-base-nightly") | ||
update_pyproject_version("src/backend/base/pyproject.toml", base_tag) | ||
|
||
# Then handle main package updates | ||
update_pyproject_name("pyproject.toml", "langflow-nightly") | ||
update_name_uv_dep("pyproject.toml", "langflow-nightly") | ||
update_pyproject_version("pyproject.toml", main_tag) | ||
# Update dependency version (strip 'v' prefix if present) | ||
base_version = base_tag.lstrip("v") | ||
update_version_uv_dep(base_version) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 8 additions & 1 deletion
9
src/backend/base/langflow/components/embeddings/util/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
from .aiml import AIMLEmbeddingsImpl | ||
import warnings | ||
|
||
from langchain_core._api.deprecation import LangChainDeprecationWarning | ||
|
||
with warnings.catch_warnings(): | ||
warnings.simplefilter("ignore", LangChainDeprecationWarning) | ||
from .aiml import AIMLEmbeddingsImpl | ||
|
||
|
||
__all__ = ["AIMLEmbeddingsImpl"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.