Skip to content
Myr

Merge pull request #2555 from pallets/deprecate-26-33

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

remove tests and docs for python 2.6 and 3.3

authored by David Lord · committed by GitHub · parents b786585, 28d0f66 · Browse files · 8 files+11 added−51 removed
This commit

State

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

Diff stats

8 files+11 added−51 removed

  • other:+11 added−51 removed

8 files+11 added−51 removed

modified:docs/advanced_foreword.rst-8 removed
43 unmodified lines
44spam, links to malicious software, and the like.4546Flask is no different from any other framework in that you the developer must47build with caution, watching for exploits when building to your requirements.4849Python 3 Support in Flask50-------------------------5152Flask, its dependencies, and most Flask extensions all support Python 3.53If you want to use Flask with Python 3 have a look at the :ref:`python3-support` page.5455Continue to :ref:`installation` or the :ref:`quickstart`.
modified:docs/contents.rst.inc-1 removed
54 unmodified lines
55 security56 unicode57 extensiondev58 styleguide59 python359 upgrading60 changelog61 license62 contributing
modified:docs/extensiondev.rst+1 added-1 removed
381 unmodified lines
382 must be a link to automatically install the development version383 (``PackageName==dev``).3849. The ``zip_safe`` flag in the setup script must be set to ``False``,385 even if the extension would be safe for zipping.38610. An extension currently has to support Python 2.7, Python 3.3 and higher.38610. An extension currently has to support Python 3.4 and newer and 2.7.387388389390Extension Import Transition
20 unmodified lines
modified:docs/installation.rst+2 added-2 removed
4 unmodified lines
56Python Version7--------------89We recommend using the latest version of Python 3. Flask supports Python 3.310and newer, Python 2.6 and newer, and PyPy.9We recommend using the latest version of Python 3. Flask supports Python 3.410and newer, Python 2.7, and PyPy.1112Dependencies13------------14
167 unmodified lines
deleted:docs/python3.rst-23 removed
1.. _python3-support:23Python 3 Support4================56Flask, its dependencies, and most Flask extensions support Python 3.7You should start using Python 3 for your next project,8but there are a few things to be aware of.910You need to use Python 3.3 or higher. 3.2 and older are *not* supported.1112You should use the latest versions of all Flask-related packages.13Flask 0.10 and Werkzeug 0.9 were the first versions to introduce Python 3 support.1415Python 3 changed how unicode and bytes are handled, which complicates how low16level code handles HTTP data. This mainly affects WSGI middleware interacting17with the WSGI ``environ`` data. Werkzeug wraps that information in high-level18helpers, so encoding issues should not affect you.1920The majority of the upgrade work is in the lower-level libraries like21Flask and Werkzeug, not the high-level application code.22For example, all of the examples in the Flask repository work on both Python 2 and 323and did not require a single line of code changed.
modified:.travis.yml+2 added-10 removed
modified:CHANGES+2 added
6 unmodified lines
7------------89Major release, unreleased1011- **Python 2.6 and 3.3 are no longer supported.** (`pallets/meta#24`_)12- Minimum Werkzeug version bumped to 0.9, but please use the latest version.13- Minimum Click version bumped to 4, but please use the latest version.14- Make ``app.run()`` into a noop if a Flask application is run from the15 development server on the command line. This avoids some behavior that
99 unmodified lines
115 added if no handlers are already configured. (`#2436`_)116- Blueprint view function name may not contain dots. (`#2450`_)117- The dev server now uses threads by default.118119.. _pallets/meta#24: https://github.com/pallets/meta/issues/24120.. _#1421: https://github.com/pallets/flask/issues/1421121.. _#1489: https://github.com/pallets/flask/pull/1489122.. _#1621: https://github.com/pallets/flask/pull/1621123.. _#1898: https://github.com/pallets/flask/pull/1898
657 unmodified lines
modified:tox.ini+4 added-6 removed
1[tox]2envlist =3 py{36,35,34,33,27,26,py}3 py{36,35,34,27,py}4 py{36,27,py}-simplejson5 py{36,33,27,26,py}-devel6 py{36,33,27,26,py}-lowest5 py{36,27,py}-devel6 py{36,27,py}-lowest7 docs-html8 coverage-report910[testenv]11passenv = LANG12usedevelop = true12deps =13 pytest>=314 coverage15 greenlet
11 unmodified lines
27 devel: https://github.com/pallets/itsdangerous/archive/master.tar.gz28 devel: https://github.com/pallets/click/archive/master.tar.gz2930 simplejson: simplejson3132commands =33 # the examples need to be installed to test successfully34 pip install -e examples/flaskr -q35 pip install -e examples/minitwit -q
22 unmodified lines
58passenv = CI TRAVIS TRAVIS_*59deps = codecov60skip_install = true61commands =62 # install argparse for 2.663 python -c 'import sys, pip; sys.version_info < (2, 7) and pip.main(["install", "argparse", "-q"])'62 coverage combine63 coverage report64 codecov