revert copyright year to project start
Before adoption: this commit came in with the history the project adopted, so no landing records it.
add copyright header to files
authored by David Lord · committed by David Lord · parent 9bf5c3b · Browse files · 52 files·+167 added−52 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
52 files+167 added−52 removed
- tests:+61 added−24 removed
- other:+106 added−28 removed
Provenance
- Commit
310fbfc- Tree
94761f4- Author
David Lord <davidism@gmail.com>- Committer
David Lord <davidism@gmail.com>- Parent
9bf5c3b
52 files changed+167 added−52 removed
modified:docs/conf.py+16 added
15 unmodified lines16 import pkg_resources17 import time18 import datetime19 20+from sphinx.application import Sphinx21+22 BUILD_DATE = datetime.datetime.utcfromtimestamp(int(os.environ.get('SOURCE_DATE_EPOCH', time.time())))23 24 # If extensions (or modules to document with autodoc) are in another directory,25 # add these directories to sys.path here. If the directory is relative to the271 unmodified lines297 functools.update_wrapper = update_wrapper298 299 unwrap_decorators()300 del unwrap_decorators301+302+303+def setup(app: Sphinx):304+ def cut_module_meta(app, what, name, obj, options, lines):305+ """Remove metadata from autodoc output."""306+ if what != 'module':307+ return308+309+ lines[:] = [310+ line for line in lines311+ if not line.startswith((':copyright:', ':license:'))312+ ]313+314+ app.connect('autodoc-process-docstring', cut_module_meta)modified:examples/blueprintexample/blueprintexample.py+9 added
1+# -*- coding: utf-8 -*-2+"""3+Blueprint Example4+~~~~~~~~~~~~~~~~~5+6+:copyright: © 2010 by the Pallets team.7+:license: BSD, see LICENSE for more details.8+"""9+10 from flask import Flask11 from simple_page.simple_page import simple_page12 13 app = Flask(__name__)6 unmodified linesmodified:examples/blueprintexample/test_blueprintexample.py+5 added-3 removed
1 # -*- coding: utf-8 -*-2 """3- Blueprint Example Tests4- ~~~~~~~~~~~~~~3+Blueprint Example Tests4+~~~~~~~~~~~~~~~~~~~~~~~5 6- Tests the Blueprint example app6+:copyright: © 2010 by the Pallets team.7+:license: BSD, see LICENSE for more details.8 """9+10 import pytest11 12 import blueprintexample13 22 unmodified linesmodified:examples/flaskr/flaskr/blueprints/flaskr.py+1 added-1 removed
4 unmodified lines5 6 A microblog example application written as Flask tutorial with7 Flask and sqlite3.8 9- :copyright: (c) 2015 by Armin Ronacher.9+ :copyright: © 2010 by the Pallets team.10 :license: BSD, see LICENSE for more details.11 """12 13 from sqlite3 import dbapi2 as sqlite372 unmodified linesmodified:examples/flaskr/flaskr/factory.py+1 added-1 removed
4 unmodified lines5 6 A microblog example application written as Flask tutorial with7 Flask and sqlite3.8 9- :copyright: (c) 2015 by Armin Ronacher.9+ :copyright: © 2010 by the Pallets team.10 :license: BSD, see LICENSE for more details.11 """12 13 import os51 unmodified linesmodified:examples/flaskr/tests/test_flaskr.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~5 6 Tests the Flaskr application.7 8- :copyright: (c) 2015 by Armin Ronacher.8+ :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10 """11 12 import os71 unmodified linesmodified:examples/flaskr/setup.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~5 6 Tests the Flaskr application.7 8- :copyright: (c) 2015 by Armin Ronacher.8+ :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10 """11 12 from setuptools import setup, find_packages15 unmodified linesmodified:examples/jqueryexample/jqueryexample.py+2 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~5 6 A simple application that shows how Flask and jQuery get along.7 8- :copyright: (c) 2015 by Armin Ronacher.8+ :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10 """11+12 from flask import Flask, jsonify, render_template, request13 app = Flask(__name__)14 15 14 unmodified linesmodified:examples/minitwit/minitwit/minitwit.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~5 6 A microblogging application written with Flask and sqlite3.7 8- :copyright: (c) 2015 by Armin Ronacher.8+ :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10 """11 12 import time244 unmodified linesmodified:examples/minitwit/tests/test_minitwit.py+2 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~5 6 Tests the MiniTwit application.7 8- :copyright: (c) 2015 by Armin Ronacher.8+ :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10 """11+12 import os13 import tempfile14 import pytest15 from minitwit import minitwit135 unmodified linesmodified:examples/patterns/largerapp/tests/test_largerapp.py+10 added-1 removed
1+# -*- coding: utf-8 -*-2+"""3+Larger App Tests4+~~~~~~~~~~~~~~~~5+6+:copyright: © 2010 by the Pallets team.7+:license: BSD, see LICENSE for more details.8+"""9+10 from yourapplication import app11 import pytest12 13 @pytest.fixture3 unmodified lines17 return client18 19 def test_index(client):20 rv = client.get('/')12- assert b"Hello World!" in rv.data21+ assert b"Hello World!" in rv.datamodified:examples/patterns/largerapp/yourapplication/__init__.py+9 added
1+# -*- coding: utf-8 -*-2+"""3+yourapplication4+~~~~~~~~~~~~~~~5+6+:copyright: © 2010 by the Pallets team.7+:license: BSD, see LICENSE for more details.8+"""9+10 from flask import Flask11 app = Flask('yourapplication')12 13 import yourapplication.viewsmodified:examples/patterns/largerapp/yourapplication/views.py+10 added-1 removed
1+# -*- coding: utf-8 -*-2+"""3+yourapplication.views4+~~~~~~~~~~~~~~~~~~~~~5+6+:copyright: © 2010 by the Pallets team.7+:license: BSD, see LICENSE for more details.8+"""9+10 from yourapplication import app11 12 @app.route('/')13 def index():5- return 'Hello World!'14+ return 'Hello World!'modified:flask/json/__init__.py+8 added
1 # -*- coding: utf-8 -*-2+"""3+flask.json4+~~~~~~~~~~5+6+:copyright: © 2010 by the Pallets team.7+:license: BSD, see LICENSE for more details.8+"""9+10 import io11 import uuid12 from datetime import date, datetime13 from flask.globals import current_app, request268 unmodified linesmodified:flask/json/tag.py+3 added
1+# -*- coding: utf-8 -*-2 """3 Tagged JSON4 ~~~~~~~~~~~5 31 unmodified lines37 return OrderedDict(value)38 39 app.session_interface.serializer.register(TagOrderedDict, 0)40 41+:copyright: © 2010 by the Pallets team.42+:license: BSD, see LICENSE for more details.43 """44 45 from base64 import b64decode, b64encode46 from datetime import datetime254 unmodified linesmodified:flask/__init__.py+1 added-1 removed
4 unmodified lines5 6 A microframework based on Werkzeug. It's extensively documented7 and follows best practice patterns.8 9- :copyright: (c) 2015 by Armin Ronacher.9+ :copyright: © 2010 by the Pallets team.10 :license: BSD, see LICENSE for more details.11 """12 13 __version__ = '0.13-dev'36 unmodified linesmodified:flask/__main__.py+1 added-2 removed
3 unmodified lines4 ~~~~~~~~~~~~~~5 6 Alias for flask.run for the command line.7 8- :copyright: (c) 2015 by Armin Ronacher.8+ :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10 """11 12-12 if __name__ == '__main__':13 from .cli import main14 main(as_module=True)modified:flask/_compat.py+2 added-1 removed
5 unmodified lines6 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.9 10- :copyright: (c) 2015 by Armin Ronacher.10+ :copyright: © 2010 by the Pallets team.11 :license: BSD, see LICENSE for more details.12 """13+14 import sys15 16 PY2 = sys.version_info[0] == 217 _identity = lambda x: x82 unmodified linesmodified:flask/app.py+2 added-1 removed
3 unmodified lines4 ~~~~~~~~~5 6 This module implements the central WSGI application object.7 8- :copyright: (c) 2015 by Armin Ronacher.8+ :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10 """11+12 import os13 import sys14 import warnings15 from datetime import timedelta2199 unmodified linesmodified:flask/blueprints.py+2 added-1 removed
4 unmodified lines5 6 Blueprints are the recommended way to implement larger or more7 pluggable applications in Flask 0.7 and later.8 9- :copyright: (c) 2015 by Armin Ronacher.9+ :copyright: © 2010 by the Pallets team.10 :license: BSD, see LICENSE for more details.11 """12+13 from functools import update_wrapper14 15 from .helpers import _PackageBoundObject, _endpoint_from_view_func16 429 unmodified linesmodified:flask/cli.py+2 added-1 removed
3 unmodified lines4 ~~~~~~~~~5 6 A simple command line application to run flask apps.7 8- :copyright: (c) 2015 by Armin Ronacher.8+ :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10 """11+12 from __future__ import print_function13 14 import ast15 import inspect870 unmodified linesmodified:flask/config.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~5 6 Implements the configuration related objects.7 8- :copyright: (c) 2015 by Armin Ronacher.8+ :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10 """11 12 import os253 unmodified linesmodified:flask/ctx.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~5 6 Implements the objects required to keep the context.7 8- :copyright: (c) 2015 by Armin Ronacher.8+ :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10 """11 12 import sys403 unmodified linesmodified:flask/debughelpers.py+2 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~~~~5 6 Various helpers to make the development experience better.7 8- :copyright: (c) 2015 by Armin Ronacher.8+ :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10 """11+12 import os13 from warnings import warn14 15 from ._compat import implements_to_string, text_type153 unmodified linesmodified:flask/globals.py+1 added-1 removed
4 unmodified lines5 6 Defines all the global objects that are proxies to the current7 active context.8 9- :copyright: (c) 2015 by Armin Ronacher.9+ :copyright: © 2010 by the Pallets team.10 :license: BSD, see LICENSE for more details.11 """12 13 from functools import partial48 unmodified linesmodified:flask/helpers.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~5 6 Implements various helpers.7 8- :copyright: (c) 2015 by Armin Ronacher.8+ :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10 """11 12 import os1017 unmodified linesmodified:flask/logging.py+9 added
1+# -*- coding: utf-8 -*-2+"""3+flask.logging4+~~~~~~~~~~~~~5+6+:copyright: © 2010 by the Pallets team.7+:license: BSD, see LICENSE for more details.8+"""9+10 from __future__ import absolute_import11 12 import logging13 import sys65 unmodified linesmodified:flask/sessions.py+2 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~5 6 Implements cookie based sessions based on itsdangerous.7 8- :copyright: (c) 2015 by Armin Ronacher.8+ :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10 """11+12 import hashlib13 import warnings14 from collections import MutableMapping15 from datetime import datetime370 unmodified linesmodified:flask/signals.py+2 added-1 removed
4 unmodified lines5 6 Implements signals based on blinker if available, otherwise7 falls silently back to a noop.8 9- :copyright: (c) 2015 by Armin Ronacher.9+ :copyright: © 2010 by the Pallets team.10 :license: BSD, see LICENSE for more details.11 """12+13 signals_available = False14 try:15 from blinker import Namespace16 signals_available = True41 unmodified linesmodified:flask/templating.py+2 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~~5 6 Implements the bridge to Jinja2.7 8- :copyright: (c) 2015 by Armin Ronacher.8+ :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10 """11+12 from jinja2 import BaseLoader, Environment as BaseEnvironment, \13 TemplateNotFound14 15 from .globals import _request_ctx_stack, _app_ctx_stack135 unmodified linesmodified:flask/testing.py+1 added-1 removed
4 unmodified lines5 6 Implements test support helpers. This module is lazily imported7 and usually not used in production environments.8 9- :copyright: (c) 2015 by Armin Ronacher.9+ :copyright: © 2010 by the Pallets team.10 :license: BSD, see LICENSE for more details.11 """12 13 import werkzeug182 unmodified linesmodified:flask/views.py+2 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~5 6 This module provides class-based views inspired by the ones in Django.7 8- :copyright: (c) 2015 by Armin Ronacher.8+ :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10 """11+12 from .globals import request13 from ._compat import with_metaclass14 15 143 unmodified linesmodified:flask/wrappers.py+3 added-2 removed
3 unmodified lines4 ~~~~~~~~~~~~~~5 6 Implements the WSGI wrappers (request and response).7 8- :copyright: (c) 2015 by Armin Ronacher.8+ :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10 """11+12 from werkzeug.exceptions import BadRequest13 from werkzeug.wrappers import Request as RequestBase, Response as ResponseBase14 15 from flask import json106 unmodified lines122 #: a before/after handler (``request.url_rule.methods``) etc.123 #: Though if the request's method was invalid for the URL rule,124 #: the valid list is available in ``routing_exception.valid_methods``125 #: instead (an attribute of the Werkzeug exception :exc:`~werkzeug.exceptions.MethodNotAllowed`)125- #: because the request was never internally bound. 126+ #: because the request was never internally bound.127 #:128 #: .. versionadded:: 0.6129 url_rule = None130 65 unmodified linesmodified:tests/conftest.py+2 added-1 removed
1 unmodified line2 """3 tests.conftest4 ~~~~~~~~~~~~~~5 6- :copyright: (c) 2015 by the Flask Team, see AUTHORS for more details.6+ :copyright: © 2010 by the Pallets team.7 :license: BSD, see LICENSE for more details.8 """9+10 import gc11 import os12 import pkgutil13 import sys192 unmodified linesmodified:tests/test_appctx.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~5 6 Tests the application context.7 8- :copyright: (c) 2015 by Armin Ronacher.8+ :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10 """11 12 import pytest207 unmodified linesmodified:tests/test_basic.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~~~~~~~5 6 The basic functionality.7 8- :copyright: (c) 2015 by Armin Ronacher.8+ :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10 """11 12 import re1880 unmodified linesmodified:tests/test_blueprints.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~~5 6 Blueprints (and currently modules)7 8- :copyright: (c) 2015 by Armin Ronacher.8+ :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10 """11 12 import pytest817 unmodified linesmodified:tests/test_cli.py+5 added-6 removed
1 unmodified line2 """3 tests.test_cli4 ~~~~~~~~~~~~~~5 6- :copyright: (c) 2016 by the Flask Team, see AUTHORS for more details.6+ :copyright: © 2010 by the Pallets team.7 :license: BSD, see LICENSE for more details.8 """9-#10-# This file was part of Flask-CLI and was modified under the terms its license,11-# the Revised BSD License.12-# Copyright (C) 2015 CERN.13-#9+10+# This file was part of Flask-CLI and was modified under the terms of11+# its Revised BSD License. Copyright © 2015 CERN.12+13 from __future__ import absolute_import14 15 import os16 import ssl517 unmodified linesmodified:tests/test_config.py+1 added-2 removed
1 unmodified line2 """3 tests.test_config4 ~~~~~~~~~~~~~~~~~5 6- :copyright: (c) 2015 by the Flask Team, see AUTHORS for more details.6+ :copyright: © 2010 by the Pallets team.7 :license: BSD, see LICENSE for more details.8 """9 10-10 from datetime import timedelta11 import os12 import textwrap13 194 unmodified linesmodified:tests/test_helpers.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~~~~~~~~~5 6 Various helpers.7 8- :copyright: (c) 2015 by Armin Ronacher.8+ :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10 """11 12 import datetime912 unmodified linesmodified:tests/test_instance_config.py+2 added-1 removed
1 unmodified line2 """3 tests.test_instance4 ~~~~~~~~~~~~~~~~~~~5 6- :copyright: (c) 2015 by the Flask Team, see AUTHORS for more details.6+ :copyright: © 2010 by the Pallets team.7 :license: BSD, see LICENSE for more details.8 """9+10 import os11 import sys12 13 import pytest122 unmodified linesmodified:tests/test_json_tag.py+9 added
1+# -*- coding: utf-8 -*-2+"""3+tests.test_json_tag4+~~~~~~~~~~~~~~~~~~~5+6+:copyright: © 2010 by the Pallets team.7+:license: BSD, see LICENSE for more details.8+"""9+10 from datetime import datetime11 from uuid import uuid412 13 import pytest61 unmodified linesmodified:tests/test_logging.py+9 added
1+# -*- coding: utf-8 -*-2+"""3+tests.test_logging4+~~~~~~~~~~~~~~~~~~~5+6+:copyright: © 2010 by the Pallets team.7+:license: BSD, see LICENSE for more details.8+"""9+10 import logging11 import sys12 13 import pytest94 unmodified linesmodified:tests/test_regression.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~~~~~~~~~~~~5 6 Tests regressions.7 8- :copyright: (c) 2015 by Armin Ronacher.8+ :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10 """11 12 import gc87 unmodified linesmodified:tests/test_reqctx.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~5 6 Tests the request context.7 8- :copyright: (c) 2015 by Armin Ronacher.8+ :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10 """11 12 import pytest215 unmodified linesmodified:tests/test_signals.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~~~~~~~~~5 6 Signalling.7 8- :copyright: (c) 2015 by Armin Ronacher.8+ :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10 """11 12 import pytest191 unmodified linesmodified:tests/test_subclassing.py+1 added-1 removed
4 unmodified lines5 6 Test that certain behavior of flask can be customized by7 subclasses.8 9- :copyright: (c) 2015 by Armin Ronacher.9+ :copyright: © 2010 by the Pallets team.10 :license: BSD, see LICENSE for more details.11 """12 13 import flask20 unmodified linesmodified:tests/test_templating.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~~5 6 Template functionality7 8- :copyright: (c) 2015 by Armin Ronacher.8+ :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10 """11 12 import pytest431 unmodified linesmodified:tests/test_testing.py+2 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~5 6 Test client and more.7 8- :copyright: (c) 2015 by Armin Ronacher.8+ :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10 """11+12 import pytest13 14 import flask15 import werkzeug322 unmodified linesmodified:tests/test_user_error_handler.py+8 added
1 # -*- coding: utf-8 -*-2+"""3+tests.test_user_error_handler4+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~5+6+:copyright: © 2010 by the Pallets team.7+:license: BSD, see LICENSE for more details.8+"""9+10 from werkzeug.exceptions import (11 Forbidden,12 InternalServerError,13 HTTPException,182 unmodified linesmodified:tests/test_views.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~5 6 Pluggable views.7 8- :copyright: (c) 2015 by Armin Ronacher.8+ :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10 """11 12 import pytest227 unmodified linesmodified:setup.py+3 added
1 #!/usr/bin/env python2+# -*- coding: utf-8 -*-3 import io4 import re5 from setuptools import setup6 9 unmodified lines16 url='https://www.palletsprojects.com/p/flask/',17 license='BSD',18 author='Armin Ronacher',19 author_email='armin.ronacher@active-4.com',20+ maintainer='Pallets team',21+ maintainer_email='contact@palletsprojects.com',22 description='A simple framework for building complex web applications.',23 long_description=readme,24 packages=['flask', 'flask.json'],25 include_package_data=True,42 unmodified lines