2023-07-01 18:36:58 +00:00
|
|
|
from setuptools import setup, find_packages
|
2023-04-01 21:28:24 +00:00
|
|
|
import os
|
|
|
|
|
|
2024-01-27 00:24:58 +00:00
|
|
|
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",
|
2023-07-12 14:09:16 +00:00
|
|
|
description=(
|
|
|
|
|
"A CLI utility and Python library for interacting with Large Language Models, "
|
2023-07-13 22:07:48 +00:00
|
|
|
"including OpenAI, PaLM and local models installed on your own machine."
|
2023-07-12 14:09:16 +00:00
|
|
|
),
|
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={
|
2023-06-17 08:44:06 +00:00
|
|
|
"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
|
|
|
""",
|
2023-06-15 08:14:26 +00:00
|
|
|
install_requires=[
|
|
|
|
|
"click",
|
2024-01-26 06:00:44 +00:00
|
|
|
"openai>=1.0",
|
2023-09-06 02:35:26 +00:00
|
|
|
"click-default-group>=1.2.3",
|
2023-08-21 06:33:42 +00:00
|
|
|
"sqlite-utils>=3.35.0",
|
2023-09-03 17:50:51 +00:00
|
|
|
"sqlite-migrate>=0.1a2",
|
2023-08-20 03:50:59 +00:00
|
|
|
"pydantic>=1.10.2",
|
2023-06-17 07:40:46 +00:00
|
|
|
"PyYAML",
|
2023-06-17 16:42:13 +00:00
|
|
|
"pluggy",
|
2023-07-11 05:37:45 +00:00
|
|
|
"python-ulid",
|
2023-07-14 04:04:07 +00:00
|
|
|
"setuptools",
|
2023-07-14 21:07:42 +00:00
|
|
|
"pip",
|
2024-01-27 00:24:58 +00:00
|
|
|
"pyreadline3; sys_platform == 'win32'",
|
2023-06-15 08:14:26 +00:00
|
|
|
],
|
2023-07-02 19:39:37 +00:00
|
|
|
extras_require={
|
|
|
|
|
"test": [
|
|
|
|
|
"pytest",
|
2023-09-14 21:01:27 +00:00
|
|
|
"numpy",
|
2024-01-26 06:00:44 +00:00
|
|
|
"pytest-httpx",
|
2023-07-02 19:39:37 +00:00
|
|
|
"cogapp",
|
2024-05-13 20:00:37 +00:00
|
|
|
"mypy>=1.10.0",
|
2024-01-26 06:00:44 +00:00
|
|
|
"black>=24.1.0",
|
2023-07-02 19:41:40 +00:00
|
|
|
"ruff",
|
2023-07-07 03:45:10 +00:00
|
|
|
"types-click",
|
2023-07-02 19:39:37 +00:00
|
|
|
"types-PyYAML",
|
2023-09-10 21:12:09 +00:00
|
|
|
"types-setuptools",
|
2023-07-02 19:39:37 +00:00
|
|
|
]
|
|
|
|
|
},
|
2024-01-26 00:48:49 +00:00
|
|
|
python_requires=">=3.8",
|
2023-04-01 21:28:24 +00:00
|
|
|
)
|