2022-10-24 21:51:15 +00:00
|
|
|
"""Set up the package."""
|
|
|
|
from pathlib import Path
|
|
|
|
|
|
|
|
from setuptools import find_packages, setup
|
|
|
|
|
|
|
|
with open(Path(__file__).absolute().parents[0] / "langchain" / "VERSION") as _f:
|
|
|
|
__version__ = _f.read().strip()
|
|
|
|
|
|
|
|
with open("README.md", "r") as f:
|
|
|
|
long_description = f.read()
|
|
|
|
|
2022-11-14 01:34:58 +00:00
|
|
|
LLM_DEPENDENCIES = ["cohere", "openai", "nlpcloud", "huggingface_hub"]
|
|
|
|
OTHER_DEPENDENCIES = [
|
|
|
|
"elasticsearch",
|
|
|
|
"google-search-results",
|
|
|
|
"wikipedia",
|
|
|
|
"faiss-cpu",
|
|
|
|
"sentence_transformers",
|
|
|
|
"transformers",
|
|
|
|
"spacy",
|
|
|
|
"nltk",
|
|
|
|
]
|
|
|
|
|
|
|
|
|
2022-10-24 21:51:15 +00:00
|
|
|
setup(
|
|
|
|
name="langchain",
|
|
|
|
version=__version__,
|
|
|
|
packages=find_packages(),
|
|
|
|
description="Building applications with LLMs through composability",
|
2022-11-10 16:46:35 +00:00
|
|
|
install_requires=["pydantic", "sqlalchemy", "numpy", "requests"],
|
2022-10-24 21:51:15 +00:00
|
|
|
long_description=long_description,
|
|
|
|
license="MIT",
|
|
|
|
url="https://github.com/hwchase17/langchain",
|
|
|
|
include_package_data=True,
|
|
|
|
long_description_content_type="text/markdown",
|
2022-11-14 01:34:58 +00:00
|
|
|
extras_require={
|
|
|
|
"llms": LLM_DEPENDENCIES,
|
|
|
|
"all": LLM_DEPENDENCIES + OTHER_DEPENDENCIES,
|
|
|
|
},
|
2022-10-24 21:51:15 +00:00
|
|
|
)
|