forked from llm-workflow-engine/llm-workflow-engine
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
40 lines (35 loc) · 1.24 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
from setuptools import find_packages, setup
import re
from os import path
FILE_DIR = path.dirname(path.abspath(path.realpath(__file__)))
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
with open('requirements.txt') as f:
install_requirement = f.readlines()
with open(path.join(FILE_DIR, 'chatgpt_wrapper', 'version.py')) as f:
version = re.match(r'^__version__ = "([\w\.]+)"$', f.read().strip())[1]
setup(
name="chatGPT",
version=version,
author="Mahmoud Mabrouk",
author_email="mahmoudmabrouk.mail@gmail.com",
description="CLI wrapper around common LLMs, with a focus on OpenAI's models",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/mmabrouk/chatgpt-wrapper",
packages=find_packages(),
install_requires=install_requirement,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires=">=3.7",
entry_points={
"console_scripts": [
"chatgpt = chatgpt_wrapper.main:main",
],
"chatgpt_wrapper_plugins": [],
},
scripts=["postinstall.sh"],
)