2023-10-25 18:06:58 +00:00
|
|
|
[tool.poetry]
|
|
|
|
name = "langchain-cli"
|
2023-11-03 18:37:20 +00:00
|
|
|
version = "0.0.15"
|
2023-10-25 18:06:58 +00:00
|
|
|
description = "CLI for interacting with LangChain"
|
|
|
|
authors = ["Erick Friis <erick@langchain.dev>"]
|
|
|
|
readme = "README.md"
|
|
|
|
|
|
|
|
[tool.poetry.dependencies]
|
|
|
|
python = ">=3.8.1,<4.0"
|
|
|
|
typer = {extras = ["all"], version = "^0.9.0"}
|
|
|
|
gitpython = "^3.1.40"
|
2023-11-03 18:05:52 +00:00
|
|
|
langserve = {extras = ["all"], version = ">=0.0.16"}
|
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]
|
|
|
|
ruff = "^0.1.3"
|
|
|
|
|
|
|
|
[tool.poetry.group.test.dependencies]
|
|
|
|
|
|
|
|
[tool.poetry.group.typing.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
|
|
|
|
2023-10-27 00:01:31 +00:00
|
|
|
[tool.ruff]
|
|
|
|
select = [
|
|
|
|
"E", # pycodestyle
|
|
|
|
"F", # pyflakes
|
|
|
|
"I", # isort
|
|
|
|
]
|
|
|
|
|
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"
|