2023-10-25 18:06:58 +00:00
|
|
|
[tool.poetry]
|
|
|
|
name = "langchain-cli"
|
2024-03-26 22:08:56 +00:00
|
|
|
version = "0.0.22rc0"
|
2023-10-25 18:06:58 +00:00
|
|
|
description = "CLI for interacting with LangChain"
|
|
|
|
authors = ["Erick Friis <erick@langchain.dev>"]
|
|
|
|
readme = "README.md"
|
2024-01-22 21:28:30 +00:00
|
|
|
repository = "https://github.com/langchain-ai/langchain"
|
|
|
|
license = "MIT"
|
|
|
|
|
|
|
|
[tool.poetry.urls]
|
|
|
|
"Source Code" = "https://github.com/langchain-ai/langchain/tree/master/libs/cli"
|
2023-10-25 18:06:58 +00:00
|
|
|
|
|
|
|
[tool.poetry.dependencies]
|
|
|
|
python = ">=3.8.1,<4.0"
|
2024-03-26 22:08:56 +00:00
|
|
|
typer = { extras = ["all"], version = "^0.9.0" }
|
2023-10-25 18:06:58 +00:00
|
|
|
gitpython = "^3.1.40"
|
2024-03-26 22:08:56 +00:00
|
|
|
langserve = { extras = ["all"], version = ">=0.0.51" }
|
2023-10-25 18:06:58 +00:00
|
|
|
uvicorn = "^0.23.2"
|
2023-11-07 19:06:08 +00:00
|
|
|
tomlkit = "^0.12.2"
|
2023-10-25 18:06:58 +00:00
|
|
|
|
|
|
|
[tool.poetry.scripts]
|
|
|
|
langchain = "langchain_cli.cli:app"
|
|
|
|
langchain-cli = "langchain_cli.cli:app"
|
|
|
|
|
|
|
|
[tool.poetry.group.dev.dependencies]
|
|
|
|
poethepoet = "^0.24.1"
|
|
|
|
pytest = "^7.4.2"
|
|
|
|
pytest-watch = "^4.2.0"
|
|
|
|
|
2023-10-27 00:01:31 +00:00
|
|
|
[tool.poetry.group.lint.dependencies]
|
2023-11-14 21:00:21 +00:00
|
|
|
ruff = "^0.1.5"
|
2023-10-27 00:01:31 +00:00
|
|
|
|
|
|
|
[tool.poetry.group.test.dependencies]
|
|
|
|
|
|
|
|
[tool.poetry.group.typing.dependencies]
|
|
|
|
|
2023-12-19 20:09:04 +00:00
|
|
|
[tool.poetry.group.test_integration.dependencies]
|
|
|
|
|
2023-10-27 20:37:03 +00:00
|
|
|
[tool.poetry.extras]
|
|
|
|
# For langserve
|
2023-11-03 18:05:52 +00:00
|
|
|
serve = []
|
2023-10-27 20:37:03 +00:00
|
|
|
|
2024-02-09 22:28:02 +00:00
|
|
|
[tool.ruff.lint]
|
2023-10-27 00:01:31 +00:00
|
|
|
select = [
|
2024-03-26 22:08:56 +00:00
|
|
|
"E", # pycodestyle
|
|
|
|
"F", # pyflakes
|
|
|
|
"I", # isort
|
2024-02-10 00:13:30 +00:00
|
|
|
"T201", # print
|
2023-10-27 00:01:31 +00:00
|
|
|
]
|
|
|
|
|
2023-10-25 18:06:58 +00:00
|
|
|
[tool.poe.tasks]
|
|
|
|
test = "poetry run pytest"
|
|
|
|
watch = "poetry run ptw"
|
2023-10-31 21:50:04 +00:00
|
|
|
version = "poetry version --short"
|
|
|
|
bump = ["_bump_1", "_bump_2"]
|
2023-10-31 20:52:25 +00:00
|
|
|
lint = ["_lint", "_check_formatting"]
|
|
|
|
format = ["_lint_fix", "_format"]
|
2023-10-25 18:06:58 +00:00
|
|
|
|
2023-10-31 21:50:04 +00:00
|
|
|
_bump_2.shell = """sed -i "" "/^__version__ =/c\\ \n__version__ = \\"$version\\"\n" langchain_cli/cli.py"""
|
|
|
|
_bump_2.uses = { version = "version" }
|
|
|
|
|
|
|
|
_bump_1 = "poetry version patch"
|
2023-10-31 20:52:25 +00:00
|
|
|
_check_formatting = "poetry run ruff format . --diff"
|
|
|
|
_lint = "poetry run ruff ."
|
|
|
|
_format = "poetry run ruff format ."
|
|
|
|
_lint_fix = "poetry run ruff . --fix"
|
2023-10-25 18:06:58 +00:00
|
|
|
|
|
|
|
[build-system]
|
|
|
|
requires = ["poetry-core"]
|
|
|
|
build-backend = "poetry.core.masonry.api"
|