-
Notifications
You must be signed in to change notification settings - Fork 15
/
setup.py
125 lines (115 loc) · 3.36 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
from pathlib import Path
from setuptools import setup
from setuptools import find_packages
INSTALL_REQUIRE = [
"requests[socks]==2.31.0",
"appdirs==1.4.4",
"pyyaml==6.0.1",
"webchatgpt==0.3.0",
"GoogleBard1>=2.1.4",
"poe-api-wrapper==1.3.6",
"brotli==1.1.0",
"g4f>=0.2.6.1",
"Helpingai_T2-fork==0.3.2",
"python-vlc>=3.0.20",
"httpx==0.27.0",
]
cli_reqs = [
"click==8.1.3",
"rich==13.3.4",
"clipman==3.1.0",
"pyperclip==1.8.2",
"colorama==0.4.6",
"g4f>=0.2.6.1",
"python-dotenv==1.0.0",
]
api = [
"fastapi[all]==0.110.1",
]
termux = [
"g4f==0.2.6.1",
]
EXTRA_REQUIRE = {
"termux": termux,
"termux-cli": termux + cli_reqs,
"termux-api": termux + api,
"termux-all": termux + cli_reqs + api,
"cli": cli_reqs,
"api": api,
"all": ["g4f[all]>=0.2.6.1", "matplotlib", "gpt4all==2.2.0"] + cli_reqs + api,
}
DOCS_PATH = Path(__file__).parents[0] / "docs/README.md"
PATH = Path("README.md")
if not PATH.exists():
with Path.open(DOCS_PATH, encoding="utf-8") as f1:
with Path.open(PATH, "w+", encoding="utf-8") as f2:
f2.write(f1.read())
setup(
name="python-tgpt",
version="0.7.4",
license="MIT",
author="Smartwa",
maintainer="Smartwa",
author_email="simatwacaleb@proton.me",
description="Interact with AI without API key",
packages=find_packages("src"),
package_dir={"": "src"},
url="https://github.com/Simatwa/python-tgpt",
project_urls={
"Bug Report": "https://github.com/Simatwa/python-tgpt/issues/new",
"Homepage": "https://github.com/Simatwa/python-tgpt",
"Source Code": "https://github.com/Simatwa/python-tgpt",
"Issue Tracker": "https://github.com/Simatwa/python-tgpt/issues",
"Download": "https://github.com/Simatwa/python-tgpt/releases",
"Documentation": "https://github.com/Simatwa/python-tgpt/blob/main/docs",
},
entry_points={
"console_scripts": [
"pytgpt = pytgpt.console:main",
],
},
install_requires=INSTALL_REQUIRE,
extras_require=EXTRA_REQUIRE,
python_requires=">=3.10",
keywords=[
"chatgpt",
"gpt",
"tgpt",
"pytgpt",
"chatgpt-cli",
"chatgpt-sdk",
"chatgpt-api",
"llama-api",
"leo",
"llama2",
"blackboxai",
"opengpt",
"koboldai",
"openai",
"bard",
"gpt4free",
"gpt4all-cli",
"gptcli",
"poe-api",
"perplexity",
"gpt4free",
],
long_description=Path.open("README.md", encoding="utf-8").read(),
long_description_content_type="text/markdown",
classifiers=[
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Intended Audience :: Developers",
"Natural Language :: English",
"License :: Free For Home Use",
"Intended Audience :: Customer Service",
"Programming Language :: Python",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
)