From 513a0b697a54d684116a1812ebeb9cfc98e917de Mon Sep 17 00:00:00 2001 From: silentsokolov Date: Sun, 15 Apr 2018 15:43:00 +0300 Subject: [PATCH] Prepare 1.0.4 --- CHANGES | 3 +++ flask_thumbnails/__init__.py | 2 +- setup.py | 26 +++++++++++++++++++------- 3 files changed, 23 insertions(+), 8 deletions(-) diff --git a/CHANGES b/CHANGES index 01c2496..d9070f8 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +1.0.4 (2018-04-15) + - Update setup.py + 1.0.2 (2017-06-07) - Fix "mkdirs" py2/py3 compatibility diff --git a/flask_thumbnails/__init__.py b/flask_thumbnails/__init__.py index cc9374e..a012475 100644 --- a/flask_thumbnails/__init__.py +++ b/flask_thumbnails/__init__.py @@ -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): diff --git a/setup.py b/setup.py index b6ebd79..323b0b3 100644 --- a/setup.py +++ b/setup.py @@ -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) @@ -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', ] )