Skip to content
Myr

standardize license and copyright

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

authored by David Lord · committed by David Lord · parent 6cd92eb · Browse files · 44 files+133 added−178 removed
This commit

State

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

Diff stats

44 files+133 added−178 removed

  • tests:+36 added−36 removed
  • other:+97 added−142 removed

44 files+133 added−178 removed

deleted:artwork/LICENSE-20 removed
1Copyright (c) 2010 by Armin Ronacher.23Some rights reserved.45This logo or a modified version may be used by anyone to refer to the6Flask project, but does not indicate endorsement by the project.78Redistribution and use in source (the SVG file) and binary forms (rendered9PNG files etc.) of the image, with or without modification, are permitted10provided that the following conditions are met:1112* Redistributions of source code must retain the above copyright13 notice and this list of conditions.1415* The names of the contributors to the Flask software (see AUTHORS) may16 not be used to endorse or promote products derived from this software17 without specific prior written permission.1819Note: we would appreciate that you make the image a link to20http://flask.pocoo.org/ if you use it on a web page.
added:artwork/LICENSE.rst+19 added
1Copyright 2010 Pallets23This logo or a modified version may be used by anyone to refer to the4Flask project, but does not indicate endorsement by the project.56Redistribution and use in source (SVG) and binary (renders in PNG, etc.)7forms, with or without modification, are permitted provided that the8following conditions are met:9101. Redistributions of source code must retain the above copyright11 notice and this list of conditions.12133. Neither the name of the copyright holder nor the names of its14 contributors may be used to endorse or promote products derived from15 this software without specific prior written permission.1617We would appreciate that you make the image a link to18https://palletsprojects.com/p/flask/ if you use it in a medium that19supports links.
modified:docs/license.rst+10 added-39 removed
1License2=======34Flask is licensed under a three clause BSD License. It basically means:5do whatever you want with it as long as the copyright in Flask sticks6around, the conditions are not modified and the disclaimer is present.7Furthermore you must not use the names of the authors to promote derivatives8of the software without written consent.4Source License5--------------610The full license text can be found below (:ref:`flask-license`). For the11documentation and artwork different licenses apply.7This license applies to all files in the Flask repository and source8distribution. This includes Flask's source code, the examples, and9tests, as well as the documentation.1013.. _authors:11.. include:: ../LICENSE.rst1215Authors16-------1318.. include:: ../AUTHORS14Artwork License15---------------1620General License Definitions21---------------------------17This license applies to Flask's logo.1823The following section contains the full license texts for Flask and the24documentation.2526- "AUTHORS" hereby refers to all the authors listed in the27 :ref:`authors` section.2829- The ":ref:`flask-license`" applies to all the source code shipped as30 part of Flask (Flask itself as well as the examples and the unittests)31 as well as documentation.3233- The ":ref:`artwork-license`" applies to the project's Horn-Logo.3435.. _flask-license:3637Flask License38-------------3940.. include:: ../LICENSE414243.. _artwork-license:4445Flask Artwork License46---------------------4748.. include:: ../artwork/LICENSE19.. include:: ../artwork/LICENSE.rst
modified:flask/json/__init__.py+2 added-2 removed
1 unmodified line
2"""3flask.json4~~~~~~~~~~56:copyright: © 2010 by the Pallets team.7:license: BSD, see LICENSE for more details.6:copyright: 2010 Pallets7:license: BSD-3-Clause8"""9import codecs10import io11import uuid
346 unmodified lines
modified:flask/json/tag.py+2 added-2 removed
36 unmodified lines
37 return OrderedDict(value)3839 app.session_interface.serializer.register(TagOrderedDict, index=0)4041:copyright: © 2010 by the Pallets team.42:license: BSD, see LICENSE for more details.41:copyright: 2010 Pallets42:license: BSD-3-Clause43"""4445from base64 import b64decode, b64encode46from datetime import datetime
254 unmodified lines
modified:flask/__init__.py+2 added-2 removed
4 unmodified lines
56 A microframework based on Werkzeug. It's extensively documented7 and follows best practice patterns.89 :copyright: © 2010 by the Pallets team.10 :license: BSD, see LICENSE for more details.9 :copyright: 2010 Pallets10 :license: BSD-3-Clause11"""1213__version__ = '1.0.3'14
35 unmodified lines
modified:flask/__main__.py+2 added-2 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~56 Alias for flask.run for the command line.78 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.8 :copyright: 2010 Pallets9 :license: BSD-3-Clause10"""1112if __name__ == '__main__':13 from .cli import main
1 unmodified line
modified:flask/_compat.py+2 added-2 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: © 2010 by the Pallets team.11 :license: BSD, see LICENSE for more details.10 :copyright: 2010 Pallets11 :license: BSD-3-Clause12"""1314import sys15
86 unmodified lines
modified:flask/app.py+2 added-2 removed
3 unmodified lines
4 ~~~~~~~~~56 This module implements the central WSGI application object.78 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.8 :copyright: 2010 Pallets9 :license: BSD-3-Clause10"""1112import os13import sys
2327 unmodified lines
modified:flask/blueprints.py+2 added-2 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: © 2010 by the Pallets team.10 :license: BSD, see LICENSE for more details.9 :copyright: 2010 Pallets10 :license: BSD-3-Clause11"""12from functools import update_wrapper1314from .helpers import _PackageBoundObject, _endpoint_from_view_func
471 unmodified lines
modified:flask/cli.py+2 added-2 removed
3 unmodified lines
4 ~~~~~~~~~56 A simple command line application to run flask apps.78 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.8 :copyright: 2010 Pallets9 :license: BSD-3-Clause10"""1112from __future__ import print_function13
897 unmodified lines
modified:flask/config.py+2 added-2 removed
3 unmodified lines
4 ~~~~~~~~~~~~56 Implements the configuration related objects.78 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.8 :copyright: 2010 Pallets9 :license: BSD-3-Clause10"""1112import os13import types
256 unmodified lines
modified:flask/ctx.py+2 added-2 removed
3 unmodified lines
4 ~~~~~~~~~56 Implements the objects required to keep the context.78 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.8 :copyright: 2010 Pallets9 :license: BSD-3-Clause10"""1112import sys13from functools import update_wrapper
444 unmodified lines
modified:flask/debughelpers.py+2 added-2 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~56 Various helpers to make the development experience better.78 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.8 :copyright: 2010 Pallets9 :license: BSD-3-Clause10"""1112import os13from warnings import warn
155 unmodified lines
modified:flask/globals.py+2 added-2 removed
4 unmodified lines
56 Defines all the global objects that are proxies to the current7 active context.89 :copyright: © 2010 by the Pallets team.10 :license: BSD, see LICENSE for more details.9 :copyright: 2010 Pallets10 :license: BSD-3-Clause11"""1213from functools import partial14from werkzeug.local import LocalStack, LocalProxy
47 unmodified lines
modified:flask/helpers.py+2 added-2 removed
3 unmodified lines
4 ~~~~~~~~~~~~~56 Implements various helpers.78 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.8 :copyright: 2010 Pallets9 :license: BSD-3-Clause10"""1112import os13import socket
1038 unmodified lines
modified:flask/logging.py+2 added-2 removed
1 unmodified line
2"""3flask.logging4~~~~~~~~~~~~~56:copyright: © 2010 by the Pallets team.7:license: BSD, see LICENSE for more details.6:copyright: 2010 Pallets7:license: BSD-3-Clause8"""910from __future__ import absolute_import11
67 unmodified lines
modified:flask/sessions.py+2 added-2 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~56 Implements cookie based sessions based on itsdangerous.78 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.8 :copyright: 2010 Pallets9 :license: BSD-3-Clause10"""1112import hashlib13import warnings
372 unmodified lines
modified:flask/signals.py+2 added-2 removed
4 unmodified lines
56 Implements signals based on blinker if available, otherwise7 falls silently back to a noop.89 :copyright: © 2010 by the Pallets team.10 :license: BSD, see LICENSE for more details.9 :copyright: 2010 Pallets10 :license: BSD-3-Clause11"""1213signals_available = False14try:
43 unmodified lines
modified:flask/templating.py+2 added-2 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~56 Implements the bridge to Jinja2.78 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.8 :copyright: 2010 Pallets9 :license: BSD-3-Clause10"""1112from jinja2 import BaseLoader, Environment as BaseEnvironment, \13 TemplateNotFound
137 unmodified lines
modified:flask/testing.py+2 added-2 removed
4 unmodified lines
56 Implements test support helpers. This module is lazily imported7 and usually not used in production environments.89 :copyright: © 2010 by the Pallets team.10 :license: BSD, see LICENSE for more details.9 :copyright: 2010 Pallets10 :license: BSD-3-Clause11"""1213import werkzeug14from contextlib import contextmanager
232 unmodified lines
modified:flask/views.py+2 added-2 removed
3 unmodified lines
4 ~~~~~~~~~~~56 This module provides class-based views inspired by the ones in Django.78 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.8 :copyright: 2010 Pallets9 :license: BSD-3-Clause10"""1112from .globals import request13from ._compat import with_metaclass
145 unmodified lines
modified:flask/wrappers.py+2 added-2 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~56 Implements the WSGI wrappers (request and response).78 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.8 :copyright: 2010 Pallets9 :license: BSD-3-Clause10"""1112from werkzeug.exceptions import BadRequest13from werkzeug.wrappers import Request as RequestBase, Response as ResponseBase
203 unmodified lines
modified:tests/conftest.py+2 added-2 removed
1 unmodified line
2"""3 tests.conftest4 ~~~~~~~~~~~~~~56 :copyright: © 2010 by the Pallets team.7 :license: BSD, see LICENSE for more details.6 :copyright: 2010 Pallets7 :license: BSD-3-Clause8"""910import gc11import os
187 unmodified lines
modified:tests/test_appctx.py+2 added-2 removed
3 unmodified lines
4 ~~~~~~~~~~~~56 Tests the application context.78 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.8 :copyright: 2010 Pallets9 :license: BSD-3-Clause10"""1112import pytest13
206 unmodified lines
modified:tests/test_basic.py+2 added-2 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~~56 The basic functionality.78 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.8 :copyright: 2010 Pallets9 :license: BSD-3-Clause10"""1112import re13import time
1935 unmodified lines
modified:tests/test_blueprints.py+2 added-2 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~56 Blueprints (and currently modules)78 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.8 :copyright: 2010 Pallets9 :license: BSD-3-Clause10"""1112import functools13import pytest
843 unmodified lines
modified:tests/test_cli.py+2 added-2 removed
1 unmodified line
2"""3 tests.test_cli4 ~~~~~~~~~~~~~~56 :copyright: © 2010 by the Pallets team.7 :license: BSD, see LICENSE for more details.6 :copyright: 2010 Pallets7 :license: BSD-3-Clause8"""910# This file was part of Flask-CLI and was modified under the terms of11# its Revised BSD License. Copyright © 2015 CERN.
566 unmodified lines
modified:tests/test_config.py+2 added-2 removed
1 unmodified line
2"""3 tests.test_config4 ~~~~~~~~~~~~~~~~~56 :copyright: © 2010 by the Pallets team.7 :license: BSD, see LICENSE for more details.6 :copyright: 2010 Pallets7 :license: BSD-3-Clause8"""910from datetime import timedelta11import os
196 unmodified lines
modified:tests/test_helpers.py+2 added-2 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~~~~56 Various helpers.78 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.8 :copyright: 2010 Pallets9 :license: BSD-3-Clause10"""1112import datetime13import os
943 unmodified lines
modified:tests/test_instance_config.py+2 added-2 removed
1 unmodified line
2"""3 tests.test_instance4 ~~~~~~~~~~~~~~~~~~~56 :copyright: © 2010 by the Pallets team.7 :license: BSD, see LICENSE for more details.6 :copyright: 2010 Pallets7 :license: BSD-3-Clause8"""910import os11import sys
124 unmodified lines
modified:tests/test_json_tag.py+2 added-2 removed
1 unmodified line
2"""3tests.test_json_tag4~~~~~~~~~~~~~~~~~~~56:copyright: © 2010 by the Pallets team.7:license: BSD, see LICENSE for more details.6:copyright: 2010 Pallets7:license: BSD-3-Clause8"""910from datetime import datetime11from uuid import uuid4
79 unmodified lines
modified:tests/test_logging.py+2 added-2 removed
1 unmodified line
2"""3tests.test_logging4~~~~~~~~~~~~~~~~~~~56:copyright: © 2010 by the Pallets team.7:license: BSD, see LICENSE for more details.6:copyright: 2010 Pallets7:license: BSD-3-Clause8"""910import logging11import sys
96 unmodified lines
modified:tests/test_regression.py+2 added-2 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~~~~~~~56 Tests regressions.78 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.8 :copyright: 2010 Pallets9 :license: BSD-3-Clause10"""1112import gc13import sys
86 unmodified lines
modified:tests/test_reqctx.py+2 added-2 removed
3 unmodified lines
4 ~~~~~~~~~~~~56 Tests the request context.78 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.8 :copyright: 2010 Pallets9 :license: BSD-3-Clause10"""1112import pytest13
209 unmodified lines
modified:tests/test_signals.py+2 added-2 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~~~~56 Signalling.78 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.8 :copyright: 2010 Pallets9 :license: BSD-3-Clause10"""1112import pytest13
190 unmodified lines
modified:tests/test_subclassing.py+2 added-2 removed
4 unmodified lines
56 Test that certain behavior of flask can be customized by7 subclasses.89 :copyright: © 2010 by the Pallets team.10 :license: BSD, see LICENSE for more details.9 :copyright: 2010 Pallets10 :license: BSD-3-Clause11"""1213import flask14
19 unmodified lines
modified:tests/test_templating.py+2 added-2 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~56 Template functionality78 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.8 :copyright: 2010 Pallets9 :license: BSD-3-Clause10"""1112import pytest13
430 unmodified lines
modified:tests/test_testing.py+2 added-2 removed
3 unmodified lines
4 ~~~~~~~~~~~~~56 Test client and more.78 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.8 :copyright: 2010 Pallets9 :license: BSD-3-Clause10"""11import click12import pytest13
400 unmodified lines
modified:tests/test_user_error_handler.py+2 added-2 removed
1 unmodified line
2"""3tests.test_user_error_handler4~~~~~~~~~~~~~~~~~~~~~~~~~~~~~56:copyright: © 2010 by the Pallets team.7:license: BSD, see LICENSE for more details.6:copyright: 2010 Pallets7:license: BSD-3-Clause8"""910from werkzeug.exceptions import (11 Forbidden,
188 unmodified lines
modified:tests/test_views.py+2 added-2 removed
3 unmodified lines
4 ~~~~~~~~~~~56 Pluggable views.78 :copyright: © 2010 by the Pallets team.9 :license: BSD, see LICENSE for more details.8 :copyright: 2010 Pallets9 :license: BSD-3-Clause10"""1112import pytest13
226 unmodified lines
deleted:AUTHORS-12 removed
1Flask is developed and maintained by the Pallets team and community2contributors. It was created by Armin Ronacher. The core maintainers3are:45- David Lord (davidism)6- Adrian Mönnich (ThiefMaster)7- Armin Ronacher (mitsuhiko)8- Marcus Unterwaditzer (untitaker)910A full list of contributors is available from git with::1112 git shortlog -sne
deleted:LICENSE-31 removed
1Copyright © 2010 by the Pallets team.23Some rights reserved.45Redistribution and use in source and binary forms of the software as6well as documentation, with or without modification, are permitted7provided that the following conditions are met:89* Redistributions of source code must retain the above copyright notice,10 this list of conditions and the following disclaimer.1112* Redistributions in binary form must reproduce the above copyright13 notice, this list of conditions and the following disclaimer in the14 documentation and/or other materials provided with the distribution.1516* Neither the name of the copyright holder nor the names of its17 contributors may be used to endorse or promote products derived from18 this software without specific prior written permission.1920THIS SOFTWARE AND DOCUMENTATION IS PROVIDED BY THE COPYRIGHT HOLDERS AND21CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,22BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND23FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE24COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,25INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT26NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF27USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON28ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT29(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF30THIS SOFTWARE AND DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY OF31SUCH DAMAGE.
added:LICENSE.rst+28 added
1Copyright 2010 Pallets23Redistribution and use in source and binary forms, with or without4modification, are permitted provided that the following conditions are5met:671. Redistributions of source code must retain the above copyright8 notice, this list of conditions and the following disclaimer.9102. Redistributions in binary form must reproduce the above copyright11 notice, this list of conditions and the following disclaimer in the12 documentation and/or other materials provided with the distribution.13143. Neither the name of the copyright holder nor the names of its15 contributors may be used to endorse or promote products derived from16 this software without specific prior written permission.1718THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS19"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT20LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A21PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT22HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,23SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED24TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR25PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF26LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING27NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS28SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.