Skip to content
Myr

Updated docs for extension approval process

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

authored by Armin Ronacher · committed by Armin Ronacher · parent dcf5dff · Browse files · 1 file+40 added−0 removed
This commit

State

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

Diff stats

1 file+40 added−0 removed

  • other:+40 added−0 removed

1 file+40 added−0 removed

modified:docs/extensiondev.rst+40 added
275 unmodified lines
276The best Flask extensions are extensions that share common idioms for the277API. And this can only work if collaboration happens early.278279280Approved Extensions281-------------------282283Flask also has the concept of approved extensions. Approved extensions284are tested as part of Flask itself to ensure extensions do not break on285new releases. These approved extensions are listed on the `Flask286Extension Registry`_ and marked appropriately. If you want your own287extension to be approved you have to follow these guidelines:2882891. An approved Flask extension must provide exactly one package or module290 inside the `flaskext` namespace package.2912. It must ship a testsuite that can either be invoked with ``make test``292 or ``python setup.py test``. For testsuites invoked with ``make293 test`` the extension has to ensure that all dependencies for the test294 are installed automatically, in case of ``python setup.py test``295 dependencies for tests alone can be specified in the `setup.py`296 file. The testsuite also has to be part of the distribution.2973. APIs of approved extensions will be checked for the following298 behavioristics:299300 - an approved extension has to support multiple applications301 running in the same Python process.302 - it must be possible to use the factory pattern for creating303 applications.3043054. The license has to be BSD/MIT/WTFPL licensed unless a depending306 library absolutely enforces GPL or another license.3075. The naming scheme for official extensions is *Flask-ExtensionName* or308 *ExtensionName-Flask*.3096. Approved extensions must define all their dependencies in the310 `setup.py` file unless a dependency cannot by met because it is not311 available on PyPI.3127. The extension must have documentation that furthermore uses one of313 the two Flask themes for Sphinx documentation.3148. The setup.py description (and thus the PyPI description) has to315 link to the documentation, website (if there is one) and there316 must be a link to automatically install the development version317 (``PackageName==dev``).318319320.. _Flask Extension Wizard:321 http://github.com/mitsuhiko/flask-extension-wizard322.. _OAuth extension: http://packages.python.org/Flask-OAuth/323.. _mailinglist: http://flask.pocoo.org/mailinglist/
1 unmodified line