Skip to content

Commit

Permalink
0.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoSa-2000 committed Jul 25, 2023
1 parent 5889065 commit f83ea7b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

Get random anime gifs by category. Use Python (intended (for now) for Discord).

WIP - updated in time to time. Versions below v0.5.3 aren't expected to work flawlessly or at all. Version below v0.6 will not have the gifs library updated anymore.
WIP - updated in time to time. Versions below v0.5.3 aren't expected to work flawlessly or at all. Version below v0.7 will not have the gifs library updated anymore.
For troubleshoots, known errors and categories list, check below.

`pip install animegifs`
Expand Down Expand Up @@ -49,7 +49,7 @@ user_input = input() #let user send any input and search if that input matches a
#if user_input == "nom": #nom as category doesn't exist, but is similar to bite (as example)
# user_input = "bite"
try:
gif = gifs.get_gif(user_input) #return the url of the gif if category exists.
gif = gifs.get_gif(user_input) #return the url of the gif if the category exists.
except animegifs.errors.CategoryError:
print("not a valid gif category.")
```
Expand Down Expand Up @@ -99,7 +99,7 @@ except animegifs.errors.CategoryError:
* Run

**S**
* Sad, Scared, ,Shoot, Shrug, Sip, Slap, Smirk, Sorry, Spank, Stare
* Sad, Scared, Shoot, Shrug, Sip, Slap, Smirk, Sorry, Spank, Stare

**T**
* Tease, Threat, Tickle, Tired
Expand Down
6 changes: 3 additions & 3 deletions animegifs/distutils/errors.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class CategoryIntegral(Exception):
"""
Category can't be an integral, only a string.
You can check valid categories at: https://github.com/MarcoSa-2000/animegifs
You can check valid categories at: https://github.com/MarcoSa-2000/animegifs#category-list
"""

def __init__(self, category, error="Category can't be an integral."):
Expand All @@ -12,7 +12,7 @@ def __init__(self, category, error="Category can't be an integral."):
class CategoryError(Exception):
"""
Not a valid category. Category must be a string.
You can check valid categories at: https://github.com/MarcoSa-2000/animegifs
You can check valid categories at: https://github.com/MarcoSa-2000/animegifs#category-list
"""

def __init__(self, category, error="Not a valid category."):
Expand All @@ -24,7 +24,7 @@ class CategoryUnknown(Exception):
"""
This is a not handled error, probably the category type is neither an int nor a str.
Make sure to check category is a string and is a valid category.
You can check valid categories at: https://github.com/MarcoSa-2000/animegifs
You can check valid categories at: https://github.com/MarcoSa-2000/animegifs#category-list
"""

def __init__(self, category, error="Not a valid category."):
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
long_description = "\n" + fh.read()

LONG_DESCRIPTION = long_description
VERSION = '0.7.1'
VERSION = '0.7.2'

setup(
name='animegifs',
Expand All @@ -23,9 +23,9 @@
license='MIT',
url="https://github.com/MarcoSa-2000/animegifs",
install_requires=[
'requests>=2.28.2,<=2.29.0',
'requests==2.31.0',
'mal-api==0.5.3',
'PyJWT>=2.4.0,<=2.7.0'
'PyJWT>=2.4.0,<=2.8.0'
],
python_requires='>=3.8',
classifiers=[
Expand Down

0 comments on commit f83ea7b

Please sign in to comment.