Skip to content
Myr

Happy New Year 2015

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Parkayun · committed by Parkayun · parent 4fde65e · Browse files · 48 files+48 added−48 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

48 files+48 added−48 removed

  • tests:+16 added−16 removed
  • other:+32 added−32 removed

48 files+48 added−48 removed

modified:docs/conf.py+1 added-1 removed
41 unmodified lines
42master_doc = 'index'4344# General information about the project.45project = u'Flask'46copyright = u'2014, Armin Ronacher'46copyright = u'2015, Armin Ronacher'4748# The version info for the project you're documenting, acts as replacement for49# |version| and |release|, also used in various other places throughout the50# built documents.
221 unmodified lines
modified:examples/flaskr/flaskr.py+1 added-1 removed
4 unmodified lines
56 A microblog example application written as Flask tutorial with7 Flask and sqlite3.89 :copyright: (c) 2014 by Armin Ronacher.9 :copyright: (c) 2015 by Armin Ronacher.10 :license: BSD, see LICENSE for more details.11"""1213import os
97 unmodified lines
modified:examples/flaskr/test_flaskr.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~56 Tests the Flaskr application.78 :copyright: (c) 2014 by Armin Ronacher.8 :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112import pytest
65 unmodified lines
modified:examples/jqueryexample/jqueryexample.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~56 A simple application that shows how Flask and jQuery get along.78 :copyright: (c) 2014 by Armin Ronacher.8 :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""11from flask import Flask, jsonify, render_template, request12app = Flask(__name__)
13 unmodified lines
modified:examples/minitwit/minitwit.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~56 A microblogging application written with Flask and sqlite3.78 :copyright: (c) 2014 by Armin Ronacher.8 :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112import time
244 unmodified lines
modified:examples/minitwit/test_minitwit.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~56 Tests the MiniTwit application.78 :copyright: (c) 2014 by Armin Ronacher.8 :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""11import os12import minitwit
139 unmodified lines
modified:flask/ext/__init__.py+1 added-1 removed
12 unmodified lines
1314 We're switching from namespace packages because it was just too painful for15 everybody involved.1617 :copyright: (c) 2014 by Armin Ronacher.17 :copyright: (c) 2015 by Armin Ronacher.18 :license: BSD, see LICENSE for more details.19"""2021
8 unmodified lines
modified:flask/__init__.py+1 added-1 removed
4 unmodified lines
56 A microframework based on Werkzeug. It's extensively documented7 and follows best practice patterns.89 :copyright: (c) 2014 by Armin Ronacher.9 :copyright: (c) 2015 by Armin Ronacher.10 :license: BSD, see LICENSE for more details.11"""1213__version__ = '0.11-dev'
36 unmodified lines
modified:flask/__main__.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~56 Alias for flask.run for the command line.78 :copyright: (c) 2014 by Armin Ronacher.8 :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112
3 unmodified lines
modified:flask/_compat.py+1 added-1 removed
5 unmodified lines
6 Some py2/py3 compatibility support based on a stripped down7 version of six so we don't have to depend on a specific version8 of it.910 :copyright: (c) 2014 by Armin Ronacher.10 :copyright: (c) 2015 by Armin Ronacher.11 :license: BSD, see LICENSE for more details.12"""13import sys14
83 unmodified lines
modified:flask/app.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~56 This module implements the central WSGI application object.78 :copyright: (c) 2014 by Armin Ronacher.8 :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112import os
1897 unmodified lines
modified:flask/blueprints.py+1 added-1 removed
4 unmodified lines
56 Blueprints are the recommended way to implement larger or more7 pluggable applications in Flask 0.7 and later.89 :copyright: (c) 2014 by Armin Ronacher.9 :copyright: (c) 2015 by Armin Ronacher.10 :license: BSD, see LICENSE for more details.11"""12from functools import update_wrapper13
401 unmodified lines
modified:flask/cli.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~56 A simple command line application to run flask apps.78 :copyright: (c) 2014 by Armin Ronacher.8 :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112import os
486 unmodified lines
modified:flask/config.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~56 Implements the configuration related objects.78 :copyright: (c) 2014 by Armin Ronacher.8 :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112import imp
246 unmodified lines
modified:flask/ctx.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~56 Implements the objects required to keep the context.78 :copyright: (c) 2014 by Armin Ronacher.8 :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112from __future__ import with_statement
383 unmodified lines
modified:flask/debughelpers.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~56 Various helpers to make the development experience better.78 :copyright: (c) 2014 by Armin Ronacher.8 :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""11from ._compat import implements_to_string, text_type12from .app import Flask
143 unmodified lines
modified:flask/exthook.py+1 added-1 removed
14 unmodified lines
15 everybody involved.1617 This is used by `flask.ext`.1819 :copyright: (c) 2014 by Armin Ronacher.19 :copyright: (c) 2015 by Armin Ronacher.20 :license: BSD, see LICENSE for more details.21"""22import sys23import os
97 unmodified lines
modified:flask/globals.py+1 added-1 removed
4 unmodified lines
56 Defines all the global objects that are proxies to the current7 active context.89 :copyright: (c) 2014 by Armin Ronacher.9 :copyright: (c) 2015 by Armin Ronacher.10 :license: BSD, see LICENSE for more details.11"""1213from functools import partial
48 unmodified lines
modified:flask/helpers.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~56 Implements various helpers.78 :copyright: (c) 2014 by Armin Ronacher.8 :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112import os
891 unmodified lines
modified:flask/json.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~56 Implementation helpers for the JSON support in Flask.78 :copyright: (c) 2014 by Armin Ronacher.8 :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""11import io12import uuid
243 unmodified lines
modified:flask/logging.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~56 Implements the logging support for Flask.78 :copyright: (c) 2014 by Armin Ronacher.8 :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112from __future__ import absolute_import
78 unmodified lines
modified:flask/sessions.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~56 Implements cookie based sessions based on itsdangerous.78 :copyright: (c) 2014 by Armin Ronacher.8 :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112import uuid
353 unmodified lines
modified:flask/signals.py+1 added-1 removed
4 unmodified lines
56 Implements signals based on blinker if available, otherwise7 falls silently back to a noop.89 :copyright: (c) 2014 by Armin Ronacher.9 :copyright: (c) 2015 by Armin Ronacher.10 :license: BSD, see LICENSE for more details.11"""12signals_available = False13try:
42 unmodified lines
modified:flask/templating.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~56 Implements the bridge to Jinja2.78 :copyright: (c) 2014 by Armin Ronacher.8 :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""11from jinja2 import BaseLoader, Environment as BaseEnvironment, \12 TemplateNotFound
126 unmodified lines
modified:flask/testing.py+1 added-1 removed
4 unmodified lines
56 Implements test support helpers. This module is lazily imported7 and usually not used in production environments.89 :copyright: (c) 2014 by Armin Ronacher.9 :copyright: (c) 2015 by Armin Ronacher.10 :license: BSD, see LICENSE for more details.11"""1213from contextlib import contextmanager
115 unmodified lines
modified:flask/views.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~56 This module provides class-based views inspired by the ones in Django.78 :copyright: (c) 2014 by Armin Ronacher.8 :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""11from .globals import request12from ._compat import with_metaclass
137 unmodified lines
modified:flask/wrappers.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~56 Implements the WSGI wrappers (request and response).78 :copyright: (c) 2014 by Armin Ronacher.8 :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112from werkzeug.wrappers import Request as RequestBase, Response as ResponseBase
189 unmodified lines
modified:scripts/flask-07-upgrade.py+1 added-1 removed
14 unmodified lines
15 attempts to accomplish is impossible to do statically it tries to support16 the most common patterns at least. The diff it generates should be17 hand reviewed and not applied blindly without making backups.1819 :copyright: (c) Copyright 2014 by Armin Ronacher.19 :copyright: (c) Copyright 2015 by Armin Ronacher.20 :license: see LICENSE for more details.21"""22import re23import os
274 unmodified lines
modified:scripts/flaskext_compat.py+1 added-1 removed
10 unmodified lines
11 import flaskext_compat12 flaskext_compat.activate()13 from flask.ext import foo1415 :copyright: (c) 2014 by Armin Ronacher.15 :copyright: (c) 2015 by Armin Ronacher.16 :license: BSD, see LICENSE for more details.17"""18import sys19import os
106 unmodified lines
modified:scripts/flaskext_tester.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~~56 Tests the Flask extensions.78 :copyright: (c) 2014 by Ali Afshar.8 :copyright: (c) 2015 by Ali Afshar.9 :license: BSD, see LICENSE for more details.10"""1112import os
297 unmodified lines
modified:scripts/make-release.py+1 added-1 removed
5 unmodified lines
67 Helper script that performs a release. Does pretty much everything8 automatically for us.910 :copyright: (c) 2014 by Armin Ronacher.10 :copyright: (c) 2015 by Armin Ronacher.11 :license: BSD, see LICENSE for more details.12"""13import sys14import os
138 unmodified lines
modified:tests/conftest.py+1 added-1 removed
1 unmodified line
2"""3 tests.conftest4 ~~~~~~~~~~~~~~56 :copyright: (c) 2014 by the Flask Team, see AUTHORS for more details.6 :copyright: (c) 2015 by the Flask Team, see AUTHORS for more details.7 :license: BSD, see LICENSE for more details.8"""9import flask10import os
123 unmodified lines
modified:tests/test_appctx.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~56 Tests the application context.78 :copyright: (c) 2014 by Armin Ronacher.8 :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112import pytest
99 unmodified lines
modified:tests/test_basic.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~~56 The basic functionality.78 :copyright: (c) 2014 by Armin Ronacher.8 :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112import pytest
1566 unmodified lines
modified:tests/test_blueprints.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~56 Blueprints (and currently modules)78 :copyright: (c) 2014 by Armin Ronacher.8 :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112import pytest
565 unmodified lines
modified:tests/test_config.py+1 added-1 removed
1 unmodified line
2"""3 tests.test_config4 ~~~~~~~~~~~~~~~~~56 :copyright: (c) 2014 by the Flask Team, see AUTHORS for more details.6 :copyright: (c) 2015 by the Flask Team, see AUTHORS for more details.7 :license: BSD, see LICENSE for more details.8"""910import pytest
182 unmodified lines
modified:tests/test_deprecations.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~56 Tests deprecation support. Not used currently.78 :copyright: (c) 2014 by Armin Ronacher.8 :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112import pytest
38 unmodified lines
modified:tests/test_ext.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~56 Tests the extension import thing.78 :copyright: (c) 2014 by Armin Ronacher.8 :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112import sys
175 unmodified lines
modified:tests/test_helpers.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~~~~56 Various helpers.78 :copyright: (c) 2014 by Armin Ronacher.8 :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112import pytest
624 unmodified lines
modified:tests/test_instance_config.py+1 added-1 removed
1 unmodified line
2"""3 tests.test_instance4 ~~~~~~~~~~~~~~~~~~~56 :copyright: (c) 2014 by the Flask Team, see AUTHORS for more details.6 :copyright: (c) 2015 by the Flask Team, see AUTHORS for more details.7 :license: BSD, see LICENSE for more details.8"""9import os10import sys
124 unmodified lines
modified:tests/test_regression.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~~~~~~~56 Tests regressions.78 :copyright: (c) 2014 by Armin Ronacher.8 :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112import pytest
95 unmodified lines
modified:tests/test_reqctx.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~56 Tests the request context.78 :copyright: (c) 2014 by Armin Ronacher.8 :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112import pytest
172 unmodified lines
modified:tests/test_signals.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~~~~56 Signalling.78 :copyright: (c) 2014 by Armin Ronacher.8 :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112import pytest
166 unmodified lines
modified:tests/test_subclassing.py+1 added-1 removed
4 unmodified lines
56 Test that certain behavior of flask can be customized by7 subclasses.89 :copyright: (c) 2014 by Armin Ronacher.9 :copyright: (c) 2015 by Armin Ronacher.10 :license: BSD, see LICENSE for more details.11"""12import flask13from logging import StreamHandler
24 unmodified lines
modified:tests/test_templating.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~56 Template functionality78 :copyright: (c) 2014 by Armin Ronacher.8 :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112import pytest
351 unmodified lines
modified:tests/test_testing.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~56 Test client and more.78 :copyright: (c) 2014 by Armin Ronacher.8 :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""11import pytest12
230 unmodified lines
modified:tests/test_views.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~56 Pluggable views.78 :copyright: (c) 2014 by Armin Ronacher.8 :copyright: (c) 2015 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""1112import pytest
150 unmodified lines
modified:LICENSE+1 added-1 removed
1Copyright (c) 2014 by Armin Ronacher and contributors. See AUTHORS1Copyright (c) 2015 by Armin Ronacher and contributors. See AUTHORS2for more details.34Some rights reserved.5
28 unmodified lines