mirror of https://github.com/pallets/flask.git
bump dependency versions
This commit is contained in:
parent
8c2c802f19
commit
af32ea0b94
|
@ -8,9 +8,9 @@ Version 1.0
|
||||||
unreleased
|
unreleased
|
||||||
|
|
||||||
- **Python 2.6 and 3.3 are no longer supported.** (`pallets/meta#24`_)
|
- **Python 2.6 and 3.3 are no longer supported.** (`pallets/meta#24`_)
|
||||||
- Minimum Werkzeug version bumped to 0.14, but please use the latest
|
- Bump minimum dependency versions to the latest stable versions:
|
||||||
version.
|
Werkzeug >= 0.14, Jinja >= 2.10, itsdangerous >= 0.24, Click >= 5.1.
|
||||||
- Minimum Click version bumped to 4, but please use the latest version.
|
(`#2586`_)
|
||||||
- Make ``app.run()`` into a noop if a Flask application is run from the
|
- Make ``app.run()`` into a noop if a Flask application is run from the
|
||||||
development server on the command line. This avoids some behavior that
|
development server on the command line. This avoids some behavior that
|
||||||
was confusing to debug for newcomers.
|
was confusing to debug for newcomers.
|
||||||
|
@ -159,6 +159,7 @@ unreleased
|
||||||
.. _#2450: https://github.com/pallets/flask/pull/2450
|
.. _#2450: https://github.com/pallets/flask/pull/2450
|
||||||
.. _#2526: https://github.com/pallets/flask/issues/2526
|
.. _#2526: https://github.com/pallets/flask/issues/2526
|
||||||
.. _#2529: https://github.com/pallets/flask/pull/2529
|
.. _#2529: https://github.com/pallets/flask/pull/2529
|
||||||
|
.. _#2586: https://github.com/pallets/flask/issues/2586
|
||||||
.. _#2581: https://github.com/pallets/flask/pull/2581
|
.. _#2581: https://github.com/pallets/flask/pull/2581
|
||||||
.. _#2606: https://github.com/pallets/flask/pull/2606
|
.. _#2606: https://github.com/pallets/flask/pull/2606
|
||||||
.. _#2607: https://github.com/pallets/flask/pull/2607
|
.. _#2607: https://github.com/pallets/flask/pull/2607
|
||||||
|
|
|
@ -608,18 +608,13 @@ def send_file(filename_or_fp, mimetype=None, as_attachment=False,
|
||||||
'headers' % filename, stacklevel=2)
|
'headers' % filename, stacklevel=2)
|
||||||
|
|
||||||
if conditional:
|
if conditional:
|
||||||
if callable(getattr(Range, 'to_content_range_header', None)):
|
try:
|
||||||
# Werkzeug supports Range Requests
|
rv = rv.make_conditional(request, accept_ranges=True,
|
||||||
# Remove this test when support for Werkzeug <0.12 is dropped
|
complete_length=fsize)
|
||||||
try:
|
except RequestedRangeNotSatisfiable:
|
||||||
rv = rv.make_conditional(request, accept_ranges=True,
|
if file is not None:
|
||||||
complete_length=fsize)
|
file.close()
|
||||||
except RequestedRangeNotSatisfiable:
|
raise
|
||||||
if file is not None:
|
|
||||||
file.close()
|
|
||||||
raise
|
|
||||||
else:
|
|
||||||
rv = rv.make_conditional(request)
|
|
||||||
# make sure we don't send x-sendfile for servers that
|
# make sure we don't send x-sendfile for servers that
|
||||||
# ignore the 304 status code for x-sendfile.
|
# ignore the 304 status code for x-sendfile.
|
||||||
if rv.status_code == 304:
|
if rv.status_code == 304:
|
||||||
|
|
29
setup.py
29
setup.py
|
@ -68,28 +68,26 @@ setup(
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
platforms='any',
|
platforms='any',
|
||||||
|
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
|
||||||
install_requires=[
|
install_requires=[
|
||||||
'Werkzeug>=0.9',
|
'Werkzeug>=0.14',
|
||||||
'Jinja2>=2.4',
|
'Jinja2>=2.10',
|
||||||
'itsdangerous>=0.21',
|
'itsdangerous>=0.24',
|
||||||
'click>=4.0',
|
'click>=5.1',
|
||||||
],
|
],
|
||||||
extras_require={
|
extras_require={
|
||||||
'dotenv': ['python-dotenv'],
|
'dotenv': ['python-dotenv'],
|
||||||
'dev': [
|
'dev': [
|
||||||
'blinker',
|
|
||||||
'python-dotenv',
|
|
||||||
'greenlet',
|
|
||||||
'pytest>=3',
|
'pytest>=3',
|
||||||
'coverage',
|
'coverage',
|
||||||
'tox',
|
'tox',
|
||||||
'sphinx',
|
'sphinx',
|
||||||
'sphinxcontrib-log-cabinet'
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
classifiers=[
|
classifiers=[
|
||||||
'Development Status :: 4 - Beta',
|
'Development Status :: 5 - Production/Stable',
|
||||||
'Environment :: Web Environment',
|
'Environment :: Web Environment',
|
||||||
|
'Framework :: Flask',
|
||||||
'Intended Audience :: Developers',
|
'Intended Audience :: Developers',
|
||||||
'License :: OSI Approved :: BSD License',
|
'License :: OSI Approved :: BSD License',
|
||||||
'Operating System :: OS Independent',
|
'Operating System :: OS Independent',
|
||||||
|
@ -101,10 +99,13 @@ setup(
|
||||||
'Programming Language :: Python :: 3.5',
|
'Programming Language :: Python :: 3.5',
|
||||||
'Programming Language :: Python :: 3.6',
|
'Programming Language :: Python :: 3.6',
|
||||||
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
|
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
|
||||||
'Topic :: Software Development :: Libraries :: Python Modules'
|
'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
|
||||||
|
'Topic :: Software Development :: Libraries :: Application Frameworks',
|
||||||
|
'Topic :: Software Development :: Libraries :: Python Modules',
|
||||||
],
|
],
|
||||||
entry_points='''
|
entry_points={
|
||||||
[console_scripts]
|
'console_scripts': [
|
||||||
flask=flask.cli:main
|
'flask = flask.cli:main',
|
||||||
'''
|
],
|
||||||
|
},
|
||||||
)
|
)
|
||||||
|
|
6
tox.ini
6
tox.ini
|
@ -17,9 +17,9 @@ deps =
|
||||||
python-dotenv
|
python-dotenv
|
||||||
|
|
||||||
lowest: Werkzeug==0.14
|
lowest: Werkzeug==0.14
|
||||||
lowest: Jinja2==2.4
|
lowest: Jinja2==2.10
|
||||||
lowest: itsdangerous==0.21
|
lowest: itsdangerous==0.24
|
||||||
lowest: Click==4.0
|
lowest: Click==5.1
|
||||||
|
|
||||||
devel: https://github.com/pallets/werkzeug/archive/master.tar.gz
|
devel: https://github.com/pallets/werkzeug/archive/master.tar.gz
|
||||||
devel: https://github.com/pallets/markupsafe/archive/master.tar.gz
|
devel: https://github.com/pallets/markupsafe/archive/master.tar.gz
|
||||||
|
|
Loading…
Reference in New Issue