Skip to content

Commit

Permalink
last bits before release
Browse files Browse the repository at this point in the history
  • Loading branch information
victordomingos committed Nov 1, 2020
1 parent 058b4a0 commit 718364a
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 34 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ Python 3.6+ installation. We try to keep the external dependencies at a minimum,
in order to keep compatibility with different platforms, including Pythonista
on iOS. At this moment, we require:

- Pillow>=6.2.2
- Pillow>=8.0.1
- piexif>=1.1.3
- watchdog>=0.10.3

The easiest way to install it in a single step, including any dependencies, is
by using this command:
Expand Down
2 changes: 1 addition & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Version history:
================

---
v.1.4.0 - 2020-?
v.1.4.0 - 2020-11-01
* New feature: watch a directory for changes and optimize any new image file as
soon as it is created (no multiprocessing for now, sorry). This feature is
not compatible with Pythonista for iOS, since it requires a third-party
Expand Down
2 changes: 1 addition & 1 deletion docs/docs_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Python 3.6+ installation. We try to keep the external dependencies at a minimum,
in order to keep compatibility with different platforms, including Pythonista
on iOS. At this moment, we require:

- Pillow>=8.0.0
- Pillow>=8.0.1
- piexif>=1.1.3
- watchdog>=0.10.3

Expand Down
2 changes: 1 addition & 1 deletion docs/docs_PT.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ superior. Procuramos manter no mínimo as dependências externas, de modo a
manter a compatibilidade com diferentes plataformas, incluindo Pythonista em
iOS. Neste momento, requer:

- Pillow>=8.0.0
- Pillow>=8.0.1
- piexif>=1.1.3
- watchdog>=0.10.3

Expand Down
2 changes: 1 addition & 1 deletion optimize_images/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.4.0a1'
__version__ = '1.4.0'
2 changes: 1 addition & 1 deletion optimize_images/img_dynamic_quality.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def get_diff_at_quality(photo, quality):
return 1 - diff_score / 100


@lru_cache
@lru_cache(maxsize=None)
def _diff_iteration_count(lo, hi):
"""Return the depth of the binary search tree for this range"""
if lo >= hi:
Expand Down
2 changes: 1 addition & 1 deletion optimize_images/platforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __init__(self):
self.size_is_smaller = 'v'


@lru_cache
@lru_cache(maxsize=None)
def adjust_for_platform() -> Tuple[int, Union[TPoolExType, PPoolExType], int]:
if platform.system() == 'Darwin':
if platform.machine().startswith('iPad'):
Expand Down
2 changes: 1 addition & 1 deletion optimize_images/reporting.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from optimize_images.platforms import IconGenerator


@lru_cache
@lru_cache(maxsize=None)
def human(number: int, suffix='B') -> str:
"""Return a human readable memory size in a string.
Expand Down
21 changes: 0 additions & 21 deletions requirements_development.txt

This file was deleted.

2 changes: 1 addition & 1 deletion requirements_for_desktop.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Pillow>=8.0.0
Pillow>=8.0.01
piexif>=1.1.3
watchdog>=0.10.3
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import platform

used = sys.version_info
required = (3, 6)
required = (3, 7)

# if version of pip that doesn't understand the python_requires classifier, must be pip >= 9.0.0
# must be built using at least version 24.2.0 of setuptools
Expand Down Expand Up @@ -40,7 +40,7 @@ def read_readme(file_name):
'Source': 'https://github.com/victordomingos/optimize-images',
'Bug Reports': 'https://github.com/victordomingos/optimize-images/issues',
},
python_requires='>=3.6',
python_requires='>=3.7',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
Expand All @@ -55,9 +55,9 @@ def read_readme(file_name):
'Operating System :: Unix',
'Operating System :: POSIX :: Linux ',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Topic :: Utilities',
'Topic :: Multimedia :: Graphics',
'Topic :: Multimedia :: Graphics :: Graphics Conversion',
Expand All @@ -68,7 +68,7 @@ def read_readme(file_name):
'seo-optimization website-performance cli recursive non-recursive',

install_requires=[
'piexif>=1.1.3',
'piexif==1.1.3',
],

entry_points={
Expand Down

0 comments on commit 718364a

Please sign in to comment.