llm/setup.py

68 lines
1.7 KiB
Python
Raw Normal View History

2023-07-01 18:36:58 +00:00
from setuptools import setup, find_packages
2023-04-01 21:28:24 +00:00
import os
VERSION = "0.13.1"
2023-04-01 21:28:24 +00:00
def get_long_description():
with open(
os.path.join(os.path.dirname(os.path.abspath(__file__)), "README.md"),
encoding="utf8",
) as fp:
return fp.read()
setup(
2023-04-01 22:00:16 +00:00
name="llm",
description=(
"A CLI utility and Python library for interacting with Large Language Models, "
"including OpenAI, PaLM and local models installed on your own machine."
),
2023-04-01 21:28:24 +00:00
long_description=get_long_description(),
long_description_content_type="text/markdown",
author="Simon Willison",
url="https://github.com/simonw/llm",
project_urls={
"Documentation": "https://llm.datasette.io/",
2023-04-01 21:28:24 +00:00
"Issues": "https://github.com/simonw/llm/issues",
"CI": "https://github.com/simonw/llm/actions",
"Changelog": "https://github.com/simonw/llm/releases",
},
license="Apache License, Version 2.0",
version=VERSION,
2023-07-01 18:36:58 +00:00
packages=find_packages(),
2023-04-01 21:28:24 +00:00
entry_points="""
[console_scripts]
2023-04-01 22:00:16 +00:00
llm=llm.cli:cli
2023-04-01 21:28:24 +00:00
""",
install_requires=[
"click",
"openai>=1.0",
"click-default-group>=1.2.3",
"sqlite-utils>=3.35.0",
"sqlite-migrate>=0.1a2",
"pydantic>=1.10.2",
2023-06-17 07:40:46 +00:00
"PyYAML",
"pluggy",
"python-ulid",
"setuptools",
"pip",
"pyreadline3; sys_platform == 'win32'",
],
extras_require={
"test": [
"pytest",
"numpy",
"pytest-httpx",
"cogapp",
2024-05-13 20:00:37 +00:00
"mypy>=1.10.0",
"black>=24.1.0",
2023-07-02 19:41:40 +00:00
"ruff",
2023-07-07 03:45:10 +00:00
"types-click",
"types-PyYAML",
2023-09-10 21:12:09 +00:00
"types-setuptools",
]
},
python_requires=">=3.8",
2023-04-01 21:28:24 +00:00
)