2023-04-01 21:28:24 +00:00
|
|
|
from setuptools import setup
|
|
|
|
|
import os
|
|
|
|
|
|
2023-06-17 21:35:38 +00:00
|
|
|
VERSION = "0.4.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-04-01 21:28:24 +00:00
|
|
|
description="Access large language models from the command-line",
|
|
|
|
|
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-04-01 22:00:16 +00:00
|
|
|
packages=["llm"],
|
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",
|
|
|
|
|
"openai",
|
|
|
|
|
"click-default-group-wheel",
|
|
|
|
|
"sqlite-utils",
|
2023-07-03 20:12:33 +00:00
|
|
|
"pydantic<2.0",
|
2023-06-17 07:40:46 +00:00
|
|
|
"PyYAML",
|
2023-06-17 16:42:13 +00:00
|
|
|
"pluggy",
|
2023-06-15 08:14:26 +00:00
|
|
|
],
|
2023-06-14 17:32:48 +00:00
|
|
|
extras_require={"test": ["pytest", "requests-mock"]},
|
2023-04-01 21:28:24 +00:00
|
|
|
python_requires=">=3.7",
|
|
|
|
|
)
|