Skip to content

Commit

Permalink
Prepare 1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
silentsokolov committed Apr 15, 2018
1 parent 28d0fb0 commit 513a0b6
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
1.0.4 (2018-04-15)
- Update setup.py

1.0.2 (2017-06-07)
- Fix "mkdirs" py2/py3 compatibility

Expand Down
2 changes: 1 addition & 1 deletion flask_thumbnails/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

from .utils import import_from_string, generate_filename, parse_size, aspect_to_string

__version__ = '1.0.3'
__version__ = '1.0.4'


class Thumbnail(object):
Expand Down
26 changes: 19 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
from setuptools import setup


def read_md(f):
return open(f, 'r').read()


def get_version(package):
init_py = open(os.path.join(package, '__init__.py')).read()
return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
Expand All @@ -21,23 +25,31 @@ def get_packages(package):
version=get_version('flask_thumbnails'),
url='https://github.com/silentsokolov/flask-thumbnails',
license='MIT',
description='A simple extension to create a thumbs for the Flask',
long_description=read_md('README.rst'),
author='Dmitriy Sokolov',
author_email='silentsokolov@gmail.com',
description='A simple extension to create a thumbs for the Flask',
zip_safe=False,
packages=get_packages('flask_thumbnails'),
include_package_data=True,
install_requires=[],
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
zip_safe=False,
platforms='any',
test_suite='tests',
packages=get_packages('flask_thumbnails'),
install_requires=[],
classifiers=[
'Development Status :: 4 - Beta',
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Flask',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Utilities',
]
)

0 comments on commit 513a0b6

Please sign in to comment.