Skip to content
Myr

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

52 files+167 added−52 removed

modified:docs/conf.py+16 added
15 unmodified lines
16import pkg_resources17import time18import datetime1920from sphinx.application import Sphinx2122BUILD_DATE = datetime.datetime.utcfromtimestamp(int(os.environ.get('SOURCE_DATE_EPOCH', time.time())))2324# 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 the
271 unmodified lines
297 functools.update_wrapper = update_wrapper298299unwrap_decorators()300del unwrap_decorators301302303def 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 return308309 lines[:] = [310 line for line in lines311 if not line.startswith((':copyright:', ':license:'))312 ]313314 app.connect('autodoc-process-docstring', cut_module_meta)
modified:examples/blueprintexample/blueprintexample.py+9 added
1# -*- coding: utf-8 -*-2"""3Blueprint Example4~~~~~~~~~~~~~~~~~56:copyright: © 2010 by the Pallets team.7:license: BSD, see LICENSE for more details.8"""910from flask import Flask11from simple_page.simple_page import simple_page1213app = Flask(__name__)
6 unmodified lines
modified:examples/blueprintexample/test_blueprintexample.py+5 added-3 removed
1# -*- coding: utf-8 -*-2"""3 Blueprint Example Tests4 ~~~~~~~~~~~~~~3Blueprint Example Tests4~~~~~~~~~~~~~~~~~~~~~~~56 Tests the Blueprint example app6:copyright: © 2010 by the Pallets team.7:license: BSD, see LICENSE for more details.8"""910import pytest1112import blueprintexample13
22 unmodified lines
modified:examples/flaskr/flaskr/blueprints/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) 2015 by Armin Ronacher.9 :copyright: © 2010 by the Pallets team.10 :license: BSD, see LICENSE for more details.11"""1213from sqlite3 import dbapi2 as sqlite3
72 unmodified lines
modified:examples/flaskr/flaskr/factory.py+1 added-1 removed
4 unmodified lines
56 A microblog example application written as Flask tutorial with7 Flask and sqlite3.89 :copyright: (c) 2015 by Armin Ronacher.9 :copyright: © 2010 by the Pallets team.10 :license: BSD, see LICENSE for more details.11"""1213import os
51 unmodified lines
modified:examples/flaskr/tests/test_flaskr.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~56 Tests the Flaskr application.78 :copyright: (c) 2015 by Armin Ronacher.8 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10"""1112import os
71 unmodified lines
modified:examples/flaskr/setup.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~56 Tests the Flaskr application.78 :copyright: (c) 2015 by Armin Ronacher.8 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10"""1112from setuptools import setup, find_packages
15 unmodified lines
modified:examples/jqueryexample/jqueryexample.py+2 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~56 A simple application that shows how Flask and jQuery get along.78 :copyright: (c) 2015 by Armin Ronacher.8 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10"""1112from flask import Flask, jsonify, render_template, request13app = Flask(__name__)1415
14 unmodified lines
modified:examples/minitwit/minitwit/minitwit.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~56 A microblogging application written with Flask and sqlite3.78 :copyright: (c) 2015 by Armin Ronacher.8 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10"""1112import time
244 unmodified lines
modified:examples/minitwit/tests/test_minitwit.py+2 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~56 Tests the MiniTwit application.78 :copyright: (c) 2015 by Armin Ronacher.8 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10"""1112import os13import tempfile14import pytest15from minitwit import minitwit
135 unmodified lines
modified:examples/patterns/largerapp/tests/test_largerapp.py+10 added-1 removed
1# -*- coding: utf-8 -*-2"""3Larger App Tests4~~~~~~~~~~~~~~~~56:copyright: © 2010 by the Pallets team.7:license: BSD, see LICENSE for more details.8"""910from yourapplication import app11import pytest1213@pytest.fixture
3 unmodified lines
17 return client1819def test_index(client):20 rv = client.get('/')12 assert b"Hello World!" in rv.data21 assert b"Hello World!" in rv.data
modified:examples/patterns/largerapp/yourapplication/__init__.py+9 added
1# -*- coding: utf-8 -*-2"""3yourapplication4~~~~~~~~~~~~~~~56:copyright: © 2010 by the Pallets team.7:license: BSD, see LICENSE for more details.8"""910from flask import Flask11app = Flask('yourapplication')1213import yourapplication.views
modified:examples/patterns/largerapp/yourapplication/views.py+10 added-1 removed
1# -*- coding: utf-8 -*-2"""3yourapplication.views4~~~~~~~~~~~~~~~~~~~~~56:copyright: © 2010 by the Pallets team.7:license: BSD, see LICENSE for more details.8"""910from yourapplication import app1112@app.route('/')13def index():5 return 'Hello World!'14 return 'Hello World!'
modified:flask/json/__init__.py+8 added
1# -*- coding: utf-8 -*-2"""3flask.json4~~~~~~~~~~56:copyright: © 2010 by the Pallets team.7:license: BSD, see LICENSE for more details.8"""910import io11import uuid12from datetime import date, datetime13from flask.globals import current_app, request
268 unmodified lines
modified:flask/json/tag.py+3 added
1# -*- coding: utf-8 -*-2"""3Tagged JSON4~~~~~~~~~~~5
31 unmodified lines
37 return OrderedDict(value)3839 app.session_interface.serializer.register(TagOrderedDict, 0)4041:copyright: © 2010 by the Pallets team.42:license: BSD, see LICENSE for more details.43"""4445from base64 import b64decode, b64encode46from datetime import datetime
254 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) 2015 by Armin Ronacher.9 :copyright: © 2010 by the Pallets team.10 :license: BSD, see LICENSE for more details.11"""1213__version__ = '0.13-dev'
36 unmodified lines
modified:flask/__main__.py+1 added-2 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~56 Alias for flask.run for the command line.78 :copyright: (c) 2015 by Armin Ronacher.8 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10"""111212if __name__ == '__main__':13 from .cli import main14 main(as_module=True)
modified:flask/_compat.py+2 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) 2015 by Armin Ronacher.10 :copyright: © 2010 by the Pallets team.11 :license: BSD, see LICENSE for more details.12"""1314import sys1516PY2 = sys.version_info[0] == 217_identity = lambda x: x
82 unmodified lines
modified:flask/app.py+2 added-1 removed
3 unmodified lines
4 ~~~~~~~~~56 This module implements the central WSGI application object.78 :copyright: (c) 2015 by Armin Ronacher.8 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10"""1112import os13import sys14import warnings15from datetime import timedelta
2199 unmodified lines
modified:flask/blueprints.py+2 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) 2015 by Armin Ronacher.9 :copyright: © 2010 by the Pallets team.10 :license: BSD, see LICENSE for more details.11"""1213from functools import update_wrapper1415from .helpers import _PackageBoundObject, _endpoint_from_view_func16
429 unmodified lines
modified:flask/cli.py+2 added-1 removed
3 unmodified lines
4 ~~~~~~~~~56 A simple command line application to run flask apps.78 :copyright: (c) 2015 by Armin Ronacher.8 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10"""1112from __future__ import print_function1314import ast15import inspect
870 unmodified lines
modified:flask/config.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~56 Implements the configuration related objects.78 :copyright: (c) 2015 by Armin Ronacher.8 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10"""1112import os
253 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) 2015 by Armin Ronacher.8 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10"""1112import sys
403 unmodified lines
modified:flask/debughelpers.py+2 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~56 Various helpers to make the development experience better.78 :copyright: (c) 2015 by Armin Ronacher.8 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10"""1112import os13from warnings import warn1415from ._compat import implements_to_string, text_type
153 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) 2015 by Armin Ronacher.9 :copyright: © 2010 by the Pallets team.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) 2015 by Armin Ronacher.8 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10"""1112import os
1017 unmodified lines
modified:flask/logging.py+9 added
1# -*- coding: utf-8 -*-2"""3flask.logging4~~~~~~~~~~~~~56:copyright: © 2010 by the Pallets team.7:license: BSD, see LICENSE for more details.8"""910from __future__ import absolute_import1112import logging13import sys
65 unmodified lines
modified:flask/sessions.py+2 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~56 Implements cookie based sessions based on itsdangerous.78 :copyright: (c) 2015 by Armin Ronacher.8 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10"""1112import hashlib13import warnings14from collections import MutableMapping15from datetime import datetime
370 unmodified lines
modified:flask/signals.py+2 added-1 removed
4 unmodified lines
56 Implements signals based on blinker if available, otherwise7 falls silently back to a noop.89 :copyright: (c) 2015 by Armin Ronacher.9 :copyright: © 2010 by the Pallets team.10 :license: BSD, see LICENSE for more details.11"""1213signals_available = False14try:15 from blinker import Namespace16 signals_available = True
41 unmodified lines
modified:flask/templating.py+2 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~56 Implements the bridge to Jinja2.78 :copyright: (c) 2015 by Armin Ronacher.8 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10"""1112from jinja2 import BaseLoader, Environment as BaseEnvironment, \13 TemplateNotFound1415from .globals import _request_ctx_stack, _app_ctx_stack
135 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) 2015 by Armin Ronacher.9 :copyright: © 2010 by the Pallets team.10 :license: BSD, see LICENSE for more details.11"""1213import werkzeug
182 unmodified lines
modified:flask/views.py+2 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~56 This module provides class-based views inspired by the ones in Django.78 :copyright: (c) 2015 by Armin Ronacher.8 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10"""1112from .globals import request13from ._compat import with_metaclass1415
143 unmodified lines
modified:flask/wrappers.py+3 added-2 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~56 Implements the WSGI wrappers (request and response).78 :copyright: (c) 2015 by Armin Ronacher.8 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10"""1112from werkzeug.exceptions import BadRequest13from werkzeug.wrappers import Request as RequestBase, Response as ResponseBase1415from flask import json
106 unmodified lines
122 #: 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 lines
modified:tests/conftest.py+2 added-1 removed
1 unmodified line
2"""3 tests.conftest4 ~~~~~~~~~~~~~~56 :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"""910import gc11import os12import pkgutil13import sys
192 unmodified lines
modified:tests/test_appctx.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~56 Tests the application context.78 :copyright: (c) 2015 by Armin Ronacher.8 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10"""1112import pytest
207 unmodified lines
modified:tests/test_basic.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~~56 The basic functionality.78 :copyright: (c) 2015 by Armin Ronacher.8 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10"""1112import re
1880 unmodified lines
modified:tests/test_blueprints.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~56 Blueprints (and currently modules)78 :copyright: (c) 2015 by Armin Ronacher.8 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10"""1112import pytest
817 unmodified lines
modified:tests/test_cli.py+5 added-6 removed
1 unmodified line
2"""3 tests.test_cli4 ~~~~~~~~~~~~~~56 :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#910# This file was part of Flask-CLI and was modified under the terms of11# its Revised BSD License. Copyright © 2015 CERN.1213from __future__ import absolute_import1415import os16import ssl
517 unmodified lines
modified:tests/test_config.py+1 added-2 removed
1 unmodified line
2"""3 tests.test_config4 ~~~~~~~~~~~~~~~~~56 :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"""91010from datetime import timedelta11import os12import textwrap13
194 unmodified lines
modified:tests/test_helpers.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~~~~56 Various helpers.78 :copyright: (c) 2015 by Armin Ronacher.8 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10"""1112import datetime
912 unmodified lines
modified:tests/test_instance_config.py+2 added-1 removed
1 unmodified line
2"""3 tests.test_instance4 ~~~~~~~~~~~~~~~~~~~56 :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"""910import os11import sys1213import pytest
122 unmodified lines
modified:tests/test_json_tag.py+9 added
1# -*- coding: utf-8 -*-2"""3tests.test_json_tag4~~~~~~~~~~~~~~~~~~~56:copyright: © 2010 by the Pallets team.7:license: BSD, see LICENSE for more details.8"""910from datetime import datetime11from uuid import uuid41213import pytest
61 unmodified lines
modified:tests/test_logging.py+9 added
1# -*- coding: utf-8 -*-2"""3tests.test_logging4~~~~~~~~~~~~~~~~~~~56:copyright: © 2010 by the Pallets team.7:license: BSD, see LICENSE for more details.8"""910import logging11import sys1213import pytest
94 unmodified lines
modified:tests/test_regression.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~~~~~~~56 Tests regressions.78 :copyright: (c) 2015 by Armin Ronacher.8 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10"""1112import gc
87 unmodified lines
modified:tests/test_reqctx.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~56 Tests the request context.78 :copyright: (c) 2015 by Armin Ronacher.8 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10"""1112import pytest
215 unmodified lines
modified:tests/test_signals.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~~~~56 Signalling.78 :copyright: (c) 2015 by Armin Ronacher.8 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10"""1112import pytest
191 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) 2015 by Armin Ronacher.9 :copyright: © 2010 by the Pallets team.10 :license: BSD, see LICENSE for more details.11"""1213import flask
20 unmodified lines
modified:tests/test_templating.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~56 Template functionality78 :copyright: (c) 2015 by Armin Ronacher.8 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10"""1112import pytest
431 unmodified lines
modified:tests/test_testing.py+2 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~56 Test client and more.78 :copyright: (c) 2015 by Armin Ronacher.8 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10"""1112import pytest1314import flask15import werkzeug
322 unmodified lines
modified:tests/test_user_error_handler.py+8 added
1# -*- coding: utf-8 -*-2"""3tests.test_user_error_handler4~~~~~~~~~~~~~~~~~~~~~~~~~~~~~56:copyright: © 2010 by the Pallets team.7:license: BSD, see LICENSE for more details.8"""910from werkzeug.exceptions import (11 Forbidden,12 InternalServerError,13 HTTPException,
182 unmodified lines
modified:tests/test_views.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~56 Pluggable views.78 :copyright: (c) 2015 by Armin Ronacher.8 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.10"""1112import pytest
227 unmodified lines
modified:setup.py+3 added
1#!/usr/bin/env python2# -*- coding: utf-8 -*-3import io4import re5from setuptools import setup6
9 unmodified lines
16 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