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
Provenance
- Commit
3adc9de- Tree
2ab6c79- Author
Armin Ronacher <armin.ronacher@active-4.com>- Committer
Armin Ronacher <armin.ronacher@active-4.com>- Parent
dcf5dff
1 file changed+40 added−0 removed
modified:docs/extensiondev.rst+40 added
275 unmodified lines276 The best Flask extensions are extensions that share common idioms for the277 API. And this can only work if collaboration happens early.278 279 280+Approved Extensions281+-------------------282+283+Flask also has the concept of approved extensions. Approved extensions284+are tested as part of Flask itself to ensure extensions do not break on285+new releases. These approved extensions are listed on the `Flask286+Extension Registry`_ and marked appropriately. If you want your own287+extension to be approved you have to follow these guidelines:288+289+1. An approved Flask extension must provide exactly one package or module290+ inside the `flaskext` namespace package.291+2. 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.297+3. APIs of approved extensions will be checked for the following298+ behavioristics:299+300+ - 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.304+305+4. The license has to be BSD/MIT/WTFPL licensed unless a depending306+ library absolutely enforces GPL or another license.307+5. The naming scheme for official extensions is *Flask-ExtensionName* or308+ *ExtensionName-Flask*.309+6. 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.312+7. The extension must have documentation that furthermore uses one of313+ the two Flask themes for Sphinx documentation.314+8. 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``).318+319+320 .. _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