llm/setup.py

38 lines
1 KiB
Python
Raw Normal View History

2023-04-01 21:28:24 +00:00
from setuptools import setup
import os
VERSION = "0.1"
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(
name="llm-cli",
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={
"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 21:41:46 +00:00
packages=["llm_cli"],
2023-04-01 21:28:24 +00:00
entry_points="""
[console_scripts]
2023-04-01 21:41:46 +00:00
llm=llm_cli.cli:cli
2023-04-01 21:28:24 +00:00
""",
install_requires=["click", "openai", "click-default-group-wheel"],
extras_require={"test": ["pytest"]},
python_requires=">=3.7",
)