Add support for Python 3.12 (#1873)

* Add support for Python 3.12

* chore: Update Python version to 3.11 and DuckDB dependency to 0.10.2

* chore: fix mistral components lint

* Update SQLAgent and SQLExecutor imports to use langchain_community utilities

* Update langchain import to langchain_community

* Update langchain import to langchain_community

* 📝 (langflow/__main__.py): Import warnings module to suppress warnings during app execution
📝 (langflow/api/v1/schemas.py): Update timestamp field default value to use datetime.now with timezone.utc
📝 (auth/utils.py): Ignore warnings related to datetime.utcnow when decoding JWT tokens and creating refresh tokens
📝 (models/flow/model.py): Update updated_at field default value to use lambda function with timezone.utc
📝 (models/user/model.py): Update create_at and updated_at field default values to use lambda function with timezone.utc
This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-05-10 12:25:34 -03:00 • committed by GitHub
commit 5ca1c22893
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
36 changed files with 468 additions and 874 deletions

View file

@ -25,7 +25,7 @@ langflow = "langflow.__main__:main"
[tool.poetry.dependencies]
python = ">=3.10,<3.12"
python = ">=3.10,<3.13"
langflow-base = { path = "./src/backend/base", develop = true }
beautifulsoup4 = "^4.12.2"
google-search-results = "^2.4.1"
@ -72,7 +72,7 @@ langchain-cohere = "^0.1.0rc1"
elasticsearch = "^8.12.0"
pytube = "^15.0.0"
llama-index = "^0.10.13"
unstructured = { extras = ["md"], version = "^0.12.4" }
# unstructured = { extras = ["md"], version = "^0.12.4" }
dspy-ai = "^2.4.0"
html2text = "^2024.2.26"
assemblyai = "^0.23.1"
@ -85,7 +85,7 @@ zep-python = { version = "^2.0.0rc5", allow-prereleases = true }
langchain-google-vertexai = "^1.0.3"
langchain-groq = "^0.1.3"
langchain-pinecone = "^0.1.0"
langchain-mistralai ="^0.1.6"
langchain-mistralai = "^0.1.6"
[tool.poetry.group.dev.dependencies]