Browse Source

Switch to newer click (2.0)

pull/1150/head
Armin Ronacher 10 years ago
parent
commit
f6d25bbc4f
  1. 4
      flask/cli.py
  2. 2
      setup.py

4
flask/cli.py

@ -192,11 +192,11 @@ def without_appcontext(f):
return f return f
def set_debug_value(ctx, value): def set_debug_value(ctx, param, value):
ctx.ensure_object(ScriptInfo).debug = value ctx.ensure_object(ScriptInfo).debug = value
def set_app_value(ctx, value): def set_app_value(ctx, param, value):
if value is not None: if value is not None:
if os.path.isfile(value): if os.path.isfile(value):
value = prepare_exec_for_file(value) value = prepare_exec_for_file(value)

2
setup.py

@ -100,7 +100,7 @@ setup(
'Werkzeug>=0.7', 'Werkzeug>=0.7',
'Jinja2>=2.4', 'Jinja2>=2.4',
'itsdangerous>=0.21', 'itsdangerous>=0.21',
'click>=0.6', 'click>=2.0',
], ],
classifiers=[ classifiers=[
'Development Status :: 4 - Beta', 'Development Status :: 4 - Beta',

Loading…
Cancel
Save