Skip to content

Commit 0f8d7a4

Browse files
committed
feat: Update postinst script to recommend installing python-tgpt[cli]
fix: Simplify postrm script by removing unnecessary file deletion logic patch: Add suggestion to run pytgpt from source in postrm script
1 parent 0d1b6da commit 0f8d7a4

File tree

5 files changed

+21
-21
lines changed

5 files changed

+21
-21
lines changed

assets/deb/DEBIAN/postinst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
ln -s /usr/lib/pytgpt/pytgpt /usr/bin/pytgpt
44

5-
echo "To get the most out of this package, install it from pypi <pip install python-tgpt>"
5+
echo "To get the most out of this package, install it from pypi <pip install python-tgpt[cli]>"
66
echo "Submit any bug at https://github.com/Simatwa/python-tgpt/issues/new/choose"

assets/deb/DEBIAN/postrm

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,5 @@
11
#!/bin/bash
22

3-
FILE_LIST=/usr/lib/pytgpt/entries.txt
4-
5-
if [ -f "$FILE_LIST" ]; then
6-
while read -r ENTRY; do
7-
if [ -d "$ENTRY" ]; then
8-
rm -rf "$ENTRY"
9-
elif [ -f "$ENTRY" ]; then
10-
rm -f "$ENTRY"
11-
else
12-
echo ""
13-
fi
14-
done < "$FILE_LIST"
15-
else
16-
echo "The file list $FILE_LIST does not exist. Nothing to do."
17-
fi
18-
193
rm /usr/bin/pytgpt
20-
4+
echo "You might want to run pytgpt from source - <pip install python-tgpt[cli]>
215
echo "Submit any bug at <https://github.com/Simatwa/python-tgpt/issues/new>"

assets/deb/DEBIAN/prerm

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
FILE_LIST=/usr/lib/pytgpt/entries.txt
4+
5+
if [ -f "$FILE_LIST" ]; then
6+
while read -r ENTRY; do
7+
if [ -d "$ENTRY" ]; then
8+
rm -rf "$ENTRY"
9+
elif [ -f "$ENTRY" ]; then
10+
rm -f "$ENTRY"
11+
else
12+
echo ""
13+
fi
14+
done < "$FILE_LIST"
15+
else
16+
echo "The file list $FILE_LIST does not exist. Nothing to do."
17+
fi

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
setup(
5656
name="python-tgpt",
57-
version="0.7.8",
57+
version="0.7.9",
5858
license="MIT",
5959
author="Smartwa",
6060
maintainer="Smartwa",

src/pytgpt/auto/main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def __init__(
5757
exclude(list[str], optional): List of providers to be excluded. Defaults to [].
5858
"""
5959
self.provider: Union[
60-
OPENGPT, KOBOLDAI, PHIND, LLAMA2, BLACKBOXAI, PERPLEXITY, GPT4FREE
60+
OPENGPT, KOBOLDAI, PHIND, BLACKBOXAI, PERPLEXITY, GPT4FREE
6161
] = None
6262
self.provider_name: str = None
6363
self.is_conversation = is_conversation
@@ -266,7 +266,6 @@ def __init__(
266266
AsyncOPENGPT,
267267
AsyncKOBOLDAI,
268268
AsyncPHIND,
269-
AsyncLLAMA2,
270269
AsyncBLACKBOXAI,
271270
AsyncGPT4FREE,
272271
] = None

0 commit comments

Comments
 (0)