langchain/setup.py

41 lines
1.1 KiB
Python
Raw Permalink Normal View History

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()
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-20 04:32:45 +00:00
install_requires=["pydantic", "sqlalchemy", "numpy", "requests", "pyyaml"],
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",
extras_require={
"llms": LLM_DEPENDENCIES,
"all": LLM_DEPENDENCIES + OTHER_DEPENDENCIES,
},
2022-10-24 21:51:15 +00:00
)