-
Notifications
You must be signed in to change notification settings - Fork 11
/
setup.py
82 lines (74 loc) · 2.28 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/usr/bin/env python
"""
Flask-Resize
------------
Flask extension for automating the resizing of images in your code and
templates. Can convert from JPEG|PNG|SVG to JPEG|PNG, resize to fit and crop.
File-based and S3-based storage options are available.
See https://flask-resize.readthedocs.io/ for documentation.
"""
from __future__ import print_function
import sys
from setuptools import setup, find_packages
appname = 'Flask-Resize'
pkgname = appname.lower().replace('-', '_')
setup(
name=appname,
version='2.0.4',
description='Flask extension for resizing images in code and templates',
long_description=__doc__,
packages=find_packages(),
package_dir={pkgname: pkgname},
package_data={
pkgname: [
'fonts/*.ttf',
],
},
install_requires=[
'argh',
'Flask',
'pilkit',
'Pillow',
],
extras_require={
'svg': ['cairosvg'],
'redis': ['redis'],
's3': ['boto3'],
'full': (
['redis', 'boto3'] +
(['cairosvg'] if sys.version_info >= (3, 4) else [])
),
'test': [
'click>=6.7',
'coverage>=4.2',
'pytest>=3.0.7',
],
'test_s3': ['moto>=0.4.31'],
},
entry_points={
'console_scripts': {
'flask-resize = flask_resize.bin:parser.dispatch',
},
},
author='Jacob Magnusson',
author_email='[email protected]',
url='https://github.com/jmagnusson/Flask-Resize',
license='BSD',
platforms='any',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
],
)