2023-07-01 18:36:58 +00:00
|
|
|
from setuptools import setup, find_packages
|
2023-04-01 21:28:24 +00:00
|
|
|
import os
|
|
|
|
|
|
Release 0.23
Refs #520, #766, #774, #775, #776, #777, #778, #780, #781, #782, #783, #784, #785, #788, #790, #791, #793, #794, #795, #796, #797, #798, #799, #800, #801, #806
Closes #803
2025-02-28 16:55:59 +00:00
|
|
|
VERSION = "0.23"
|
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=(
|
2025-02-17 06:36:44 +00:00
|
|
|
"CLI utility and Python library for interacting with Large Language Models from "
|
|
|
|
|
"organizations like OpenAI, Anthropic and Gemini plus 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",
|
2025-01-18 22:10:55 +00:00
|
|
|
"openai>=1.55.3",
|
2023-09-06 02:35:26 +00:00
|
|
|
"click-default-group>=1.2.3",
|
2024-07-18 18:49:31 +00:00
|
|
|
"sqlite-utils>=3.37",
|
2023-09-03 17:50:51 +00:00
|
|
|
"sqlite-migrate>=0.1a2",
|
2025-02-26 18:05:54 +00:00
|
|
|
"pydantic>=2.0.0",
|
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'",
|
2024-10-27 00:40:23 +00:00
|
|
|
"puremagic",
|
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-10-28 22:36:12 +00:00
|
|
|
"pytest-httpx>=0.33.0",
|
2024-11-14 01:51:00 +00:00
|
|
|
"pytest-asyncio",
|
2023-07-02 19:39:37 +00:00
|
|
|
"cogapp",
|
2024-05-13 20:00:37 +00:00
|
|
|
"mypy>=1.10.0",
|
2025-01-31 21:18:41 +00:00
|
|
|
"black>=25.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-10-27 18:26:47 +00:00
|
|
|
python_requires=">=3.9",
|
2023-04-01 21:28:24 +00:00
|
|
|
)
|