quivr/backend/core/pyproject.toml
Stan Girard b3debeefee
chore(main): release core 0.0.13 (#2930)
🤖 I have created a release *beep* *boop*
---


##
[0.0.13](https://github.com/QuivrHQ/quivr/compare/core-0.0.12...core-0.0.13)
(2024-08-01)


### Features

* quivr core tox test + parsers
([#2929](https://github.com/QuivrHQ/quivr/issues/2929))
([6855585](685558560c))


### Bug Fixes

* processor quivr version
([#2934](https://github.com/QuivrHQ/quivr/issues/2934))
([2d64962](2d64962ca4))
* quivr core fix tests
([#2935](https://github.com/QuivrHQ/quivr/issues/2935))
([d9c1f3a](d9c1f3add4))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-08-02 15:24:21 +02:00

153 lines
4.4 KiB
TOML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[tool.poetry]
name = "quivr-core"
version = "0.0.13"
description = "Quivr core RAG package"
authors = []
readme = "README.md"
repository = "https://github.com/QuivrHQ/quivr"
[tool.poetry.dependencies]
python = "^3.11,<3.13"
pydantic = "^2.7.4"
langchain-core = "^0.2.10"
langchain = "^0.2.9"
httpx = "^0.27.0"
rich = "^13.7.1"
tiktoken = "^0.7.0"
aiofiles = ">=23.0.0,<25.0.0"
faiss-cpu = { version = "^1.8.0.post1", optional = true }
langchain-community = { version = "^0.2.6", optional = true }
langchain-openai = { version = "^0.1.14", optional = true }
# To install unstructured, youll also need to install the following system dependencies:
# libmagic, poppler, libreoffice, pandoc, and tesseract.
# NOTE: for now poetry doesn't support groups as extra:
# see : https://github.com/pythofeat: async load n-poetry/poetry/issues/4842
torch = [
{ version = "2.3.1", source = "pypi", platform = "darwin", optional = true },
{ version = "2.3.1", source = "pypi", platform = "linux", markers = "platform_machine != 'x86_64'", optional = true },
{ version = "2.3.1+cpu", source = "pytorch-cpu-src", platform = "linux", markers = "platform_machine == 'x86_64'", optional = true },
{ version = "2.3.1+cpu", source = "pytorch-cpu-src", platform = "win32", optional = true },
]
torchvision = [
{ version = "0.18.1", source = "pypi", platform = "darwin", optional = true },
{ version = "0.18.1", source = "pypi", platform = "linux", markers = "platform_machine != 'x86_64'", optional = true },
{ version = "0.18.1+cpu", source = "pytorch-cpu-src", platform = "linux", markers = "platform_machine == 'x86_64'", optional = true },
{ version = "0.18.1+cpu", source = "pytorch-cpu-src", platform = "win32", optional = true },
]
megaparse = { version = "0.0.24", optional = true, source = "pypi" }
docx2txt = { version = "^0.8", optional = true }
unstructured = { version = "^0.15.0", optional = true, extras = [
"epub",
"odt",
"docx",
"doc",
"pptx",
"ppt",
"xlsx",
] }
[tool.poetry.extras]
base = ["langchain-community", "faiss-cpu", "langchain-openai"]
csv = ["langchain-community"]
md = ["langchain-community"]
ipynb = ["langchain-community"]
epub = ["unstructured", "langchain-community"]
odt = ["unstructured", "langchain-community", "docx2txt"]
docx = ["unstructured", "langchain-community", "docx2txt"]
pptx = ["unstructured", "langchain-community"]
xlsx = ["unstructured", "langchain-community"]
pdf = ["langchain-community", "megaparse"]
all = [
"langchain-community",
"faiss-cpu",
"langchain-openai",
"unstructured",
"docx2txt",
"megaparse",
]
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
mypy = "^1.10.0"
pre-commit = "^3.7.1"
ipykernel = "*"
ruff = "^0.4.8"
flake8 = "*"
flake8-black = "*"
[tool.poetry.group.test]
optional = true
[tool.poetry.group.test.dependencies]
pytest-asyncio = "^0.23.7"
pytest = "^8.2.2"
pytest-xdist = "^3.6.1"
pytest-cov = "^5.0.0"
tox = "^4.16.0"
[tool.mypy]
disallow_untyped_defs = true
# Remove venv skip when integrated with pre-commit
exclude = ["_static", "build", "examples", "notebooks", "venv", ".venv"]
ignore_missing_imports = true
python_version = "3.11"
[tool.ruff]
line-length = 88
exclude = [".git", "__pycache__", ".mypy_cache", ".pytest_cache"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
]
ignore = [
"B904",
"B006",
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"C901", # too complex
]
[tool.ruff.lint.isort]
order-by-type = true
relative-imports-order = "closest-to-furthest"
extra-standard-library = ["typing"]
section-order = [
"future",
"standard-library",
"third-party",
"first-party",
"local-folder",
]
known-first-party = []
[tool.pytest.ini_options]
addopts = "--tb=short -ra -v"
filterwarnings = ["ignore::DeprecationWarning"]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"base: these tests require quivr-core with extra `base` to be installed",
"tika: these tests require a tika server to be running",
"unstructured: these tests require `unstructured` dependency",
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[[tool.poetry.source]]
name = "pytorch-cpu-src"
url = "https://download.pytorch.org/whl/cpu"
priority = "explicit"