Skip to content

Commit 57c6dad

Browse files
authored
Release 0.6.4 (#1268)
This PR: - Updates Vectara component by @JAtharva22 - Adds Ollama components by @yamonkjd - Fixes bugs in the canvas by @Cristhianzl - adds Docker image builds on release.
2 parents 0d8cdeb + d9fe8c8 commit 57c6dad

File tree

17 files changed

+1285
-790
lines changed

17 files changed

+1285
-790
lines changed

.dockerignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
.venv/
2-
**/aws
2+
**/aws
3+
# node_modules
4+
**/node_modules/
5+
dist/
6+
**/build/
7+
src/backend/langflow/frontend

.github/workflows/pre-release.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,19 @@ jobs:
4747
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }}
4848
run: |
4949
poetry publish
50+
- name: Set up QEMU
51+
uses: docker/setup-qemu-action@v3
52+
- name: Set up Docker Buildx
53+
uses: docker/setup-buildx-action@v3
54+
- name: Login to Docker Hub
55+
uses: docker/login-action@v3
56+
with:
57+
username: ${{ secrets.DOCKERHUB_USERNAME }}
58+
password: ${{ secrets.DOCKERHUB_TOKEN }}
59+
- name: Build and push
60+
uses: docker/build-push-action@v5
61+
with:
62+
context: .
63+
push: true
64+
file: ./build_and_push.Dockerfile
65+
tags: logspace/langflow:${{ steps.check-version.outputs.version }}

.github/workflows/release.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,21 @@ jobs:
4545
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }}
4646
run: |
4747
poetry publish
48+
- name: Set up QEMU
49+
uses: docker/setup-qemu-action@v3
50+
- name: Set up Docker Buildx
51+
uses: docker/setup-buildx-action@v3
52+
- name: Login to Docker Hub
53+
uses: docker/login-action@v3
54+
with:
55+
username: ${{ secrets.DOCKERHUB_USERNAME }}
56+
password: ${{ secrets.DOCKERHUB_TOKEN }}
57+
- name: Build and push
58+
uses: docker/build-push-action@v5
59+
with:
60+
context: .
61+
push: true
62+
file: ./build_and_push.Dockerfile
63+
tags: |
64+
logspace/langflow:${{ steps.check-version.outputs.version }}
65+
logspace/langflow:latest

build_and_push.Dockerfile

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
2+
3+
# syntax=docker/dockerfile:1
4+
# Keep this syntax directive! It's used to enable Docker BuildKit
5+
6+
# Based on https://github.com/python-poetry/poetry/discussions/1879?sort=top#discussioncomment-216865
7+
# but I try to keep it updated (see history)
8+
9+
################################
10+
# PYTHON-BASE
11+
# Sets up all our shared environment variables
12+
################################
13+
FROM python:3.10-slim as python-base
14+
15+
# python
16+
ENV PYTHONUNBUFFERED=1 \
17+
# prevents python creating .pyc files
18+
PYTHONDONTWRITEBYTECODE=1 \
19+
\
20+
# pip
21+
PIP_DISABLE_PIP_VERSION_CHECK=on \
22+
PIP_DEFAULT_TIMEOUT=100 \
23+
\
24+
# poetry
25+
# https://python-poetry.org/docs/configuration/#using-environment-variables
26+
POETRY_VERSION=1.7.1 \
27+
# make poetry install to this location
28+
POETRY_HOME="/opt/poetry" \
29+
# make poetry create the virtual environment in the project's root
30+
# it gets named `.venv`
31+
POETRY_VIRTUALENVS_IN_PROJECT=true \
32+
# do not ask any interactive question
33+
POETRY_NO_INTERACTION=1 \
34+
\
35+
# paths
36+
# this is where our requirements + virtual environment will live
37+
PYSETUP_PATH="/opt/pysetup" \
38+
VENV_PATH="/opt/pysetup/.venv"
39+
40+
41+
# prepend poetry and venv to path
42+
ENV PATH="$POETRY_HOME/bin:$VENV_PATH/bin:$PATH"
43+
44+
45+
################################
46+
# BUILDER-BASE
47+
# Used to build deps + create our virtual environment
48+
################################
49+
FROM python-base as builder-base
50+
RUN
51+
RUN apt-get update \
52+
&& apt-get install --no-install-recommends -y \
53+
# deps for installing poetry
54+
curl \
55+
# deps for building python deps
56+
build-essential \
57+
# npm
58+
npm
59+
60+
61+
# Now we need to copy the entire project into the image
62+
WORKDIR /app
63+
COPY pyproject.toml poetry.lock ./
64+
COPY src ./src
65+
COPY Makefile ./
66+
COPY README.md ./
67+
RUN curl -sSL https://install.python-poetry.org | python3 - && make build
68+
69+
# Final stage for the application
70+
FROM python-base as final
71+
72+
# Copy virtual environment and built .tar.gz from builder base
73+
COPY --from=builder-base /app/dist/*.tar.gz ./
74+
75+
# Install the package from the .tar.gz
76+
RUN pip install *.tar.gz
77+
78+
WORKDIR /app
79+
CMD ["python", "-m", "langflow", "run", "--host", "0.0.0.0", "--port", "7860"]

poetry.lock

Lines changed: 417 additions & 574 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "langflow"
3-
version = "0.6.3"
3+
version = "0.6.4"
44
description = "A Python package with a built-in web application"
55
authors = ["Logspace <[email protected]>"]
66
maintainers = [
@@ -28,15 +28,15 @@ langflow = "langflow.__main__:main"
2828

2929

3030
python = ">=3.9,<3.11"
31-
fastapi = "^0.104.0"
32-
uvicorn = "^0.23.0"
31+
fastapi = "^0.108.0"
32+
uvicorn = "^0.25.0"
3333
beautifulsoup4 = "^4.12.2"
3434
google-search-results = "^2.4.1"
3535
google-api-python-client = "^2.79.0"
3636
typer = "^0.9.0"
3737
gunicorn = "^21.2.0"
3838
langchain = "~0.0.345"
39-
openai = "^1.3.6"
39+
openai = "^1.6.1"
4040
pandas = "2.0.3"
4141
chromadb = "^0.4.0"
4242
huggingface-hub = { version = "^0.19.0", extras = ["inference"] }
@@ -47,31 +47,31 @@ unstructured = "^0.11.0"
4747
pypdf = "^3.17.0"
4848
lxml = "^4.9.2"
4949
pysrt = "^1.1.2"
50-
fake-useragent = "^1.3.0"
50+
fake-useragent = "^1.4.0"
5151
docstring-parser = "^0.15"
5252
psycopg2-binary = "^2.9.6"
5353
pyarrow = "^14.0.0"
5454
tiktoken = "~0.5.0"
5555
wikipedia = "^1.4.0"
56-
qdrant-client = "^1.4.0"
56+
qdrant-client = "^1.7.0"
5757
websockets = "^10.3"
58-
weaviate-client = "^3.23.0"
58+
weaviate-client = "^3.26.0"
5959
jina = "*"
6060
sentence-transformers = { version = "^2.2.2", optional = true }
6161
ctransformers = { version = "^0.2.10", optional = true }
62-
cohere = "^4.37.0"
62+
cohere = "^4.39.0"
6363
python-multipart = "^0.0.6"
6464
sqlmodel = "^0.0.14"
6565
faiss-cpu = "^1.7.4"
66-
anthropic = "^0.7.0"
66+
anthropic = "^0.8.0"
6767
orjson = "3.9.3"
6868
multiprocess = "^0.70.14"
6969
cachetools = "^5.3.1"
7070
types-cachetools = "^5.3.0.5"
7171
platformdirs = "^4.1.0"
7272
pinecone-client = "^2.2.2"
73-
pymongo = "^4.5.0"
74-
supabase = "^2.0.3"
73+
pymongo = "^4.6.0"
74+
supabase = "^2.3.0"
7575
certifi = "^2023.11.17"
7676
google-cloud-aiplatform = "^1.36.0"
7777
psycopg = "^3.1.9"
@@ -81,13 +81,13 @@ langchain-experimental = "*"
8181
celery = { extras = ["redis"], version = "^5.3.6", optional = true }
8282
redis = { version = "^4.6.0", optional = true }
8383
flower = { version = "^2.0.0", optional = true }
84-
alembic = "^1.12.0"
84+
alembic = "^1.13.0"
8585
passlib = "^1.7.4"
8686
bcrypt = "4.0.1"
8787
python-jose = "^3.3.0"
8888
metaphor-python = "^0.1.11"
89-
pydantic = "^2.0.0"
90-
pydantic-settings = "^2.0.3"
89+
pydantic = "^2.5.0"
90+
pydantic-settings = "^2.1.0"
9191
zep-python = "*"
9292
pywin32 = { version = "^306", markers = "sys_platform == 'win32'" }
9393
loguru = "^0.7.1"
@@ -100,10 +100,11 @@ extract-msg = "^0.45.0"
100100
jq = { version = "^1.6.0", markers = "sys_platform != 'win32'" }
101101
boto3 = "^1.28.63"
102102
numexpr = "^2.8.6"
103-
qianfan = "0.0.5"
103+
qianfan = "0.2.0"
104104
pgvector = "^0.2.3"
105105
pyautogen = "^0.2.0"
106106
langchain-google-genai = "^0.0.2"
107+
pytube = "^15.0.0"
107108

108109
[tool.poetry.group.dev.dependencies]
109110
pytest-asyncio = "^0.23.1"

0 commit comments

Comments
 (0)