Skip to content

Commit

Permalink
version fetch fix
Browse files Browse the repository at this point in the history
  • Loading branch information
arrrlo committed Mar 17, 2021
1 parent d60c7f6 commit a0a2608
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
/Google_Images_Search.egg-info/
/build/
/dist/
/google_images_search/
/tests/__pycache__/
/.DS_Store
.venv
/tests/test_my.py
/google_images_search/__pycache__/
/dwnld/
2 changes: 1 addition & 1 deletion google_images_search/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from google_images_search.fetch_resize_save import \
FetchResizeSave as GoogleImagesSearch, __version__
FetchResizeSave as GoogleImagesSearch
from google_images_search.google_api import GoogleBackendException
2 changes: 1 addition & 1 deletion google_images_search/fetch_resize_save.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
from PIL import Image, UnidentifiedImageError
from resizeimage import resizeimage, imageexceptions

from .meta import __version__
from .google_api import GoogleCustomSearch


__version__ = "1.3.7"
IMAGES_NUM_LIMIT = 10


Expand Down
1 change: 1 addition & 0 deletions google_images_search/meta.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = '1.3.7'
11 changes: 8 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
import os
from setuptools import setup

from google_images_search.fetch_resize_save import __version__


def readme():
with open('README.md') as f:
return f.read()


def version():
with open(os.path.join('.', 'google_images_search', 'meta.py')) as f:
contents = f.read()
return contents.split('__version__ = ')[1].strip()[1:-1]


setup(
name='Google Images Search',
version=__version__,
version=version(),

description='Search for image using Google Custom Search '
'API and resize & crop the image afterwords',
Expand Down

0 comments on commit a0a2608

Please sign in to comment.