remove tests and docs for python 2.6 and 3.3
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 27a7171 · 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
Provenance
- Commit
28d0f66- Tree
c58dd5b- Author
David Lord <davidism@gmail.com>- Committer
David Lord <davidism@gmail.com>- Parent
27a7171
8 files changed+11 added−51 removed
modified:docs/advanced_foreword.rst-8 removed
43 unmodified lines44 spam, links to malicious software, and the like.45 46 Flask is no different from any other framework in that you the developer must47 build with caution, watching for exploits when building to your requirements.48-49-Python 3 Support in Flask50--------------------------51-52-Flask, its dependencies, and most Flask extensions all support Python 3.53-If you want to use Flask with Python 3 have a look at the :ref:`python3-support` page.54-55-Continue to :ref:`installation` or the :ref:`quickstart`.modified:docs/contents.rst.inc-1 removed
54 unmodified lines55 security56 unicode57 extensiondev58 styleguide59- python359 upgrading60 changelog61 license62 contributingmodified:docs/extensiondev.rst+1 added-1 removed
381 unmodified lines382 must be a link to automatically install the development version383 (``PackageName==dev``).384 9. The ``zip_safe`` flag in the setup script must be set to ``False``,385 even if the extension would be safe for zipping.386-10. An extension currently has to support Python 2.7, Python 3.3 and higher.386+10. An extension currently has to support Python 3.4 and newer and 2.7.387 388 389 390 Extension Import Transition20 unmodified linesmodified:docs/installation.rst+2 added-2 removed
4 unmodified lines5 6 Python Version7 --------------8 9-We recommend using the latest version of Python 3. Flask supports Python 3.310-and newer, Python 2.6 and newer, and PyPy.9+We recommend using the latest version of Python 3. Flask supports Python 3.410+and newer, Python 2.7, and PyPy.11 12 Dependencies13 ------------14 167 unmodified linesdeleted:docs/python3.rst-23 removed
1-.. _python3-support:2-3-Python 3 Support4-================5-6-Flask, its dependencies, and most Flask extensions support Python 3.7-You should start using Python 3 for your next project,8-but there are a few things to be aware of.9-10-You need to use Python 3.3 or higher. 3.2 and older are *not* supported.11-12-You should use the latest versions of all Flask-related packages.13-Flask 0.10 and Werkzeug 0.9 were the first versions to introduce Python 3 support.14-15-Python 3 changed how unicode and bytes are handled, which complicates how low16-level code handles HTTP data. This mainly affects WSGI middleware interacting17-with the WSGI ``environ`` data. Werkzeug wraps that information in high-level18-helpers, so encoding issues should not affect you.19-20-The majority of the upgrade work is in the lower-level libraries like21-Flask and Werkzeug, not the high-level application code.22-For example, all of the examples in the Flask repository work on both Python 2 and 323-and did not require a single line of code changed.modified:.travis.yml+2 added-10 removed
2 unmodified lines3456778910111213121516171314151617222324251819202113 unmodified lines2 unmodified lines
matrix: include: - python: 3.6 env: TOXENV=py,codecov env: TOXENV=py,simplejson,devel,lowest,codecov,docs-html - python: 3.5 env: TOXENV=py,codecov - python: 3.4 env: TOXENV=py,codecov - python: 3.3 env: TOXENV=py,codecov - python: 2.7 env: TOXENV=py,codecov - python: 2.6 env: TOXENV=py,codecov env: TOXENV=py,simplejson,devel,lowest,codecov - python: pypy env: TOXENV=py,codecov - python: nightly env: TOXENV=py - python: 3.6 env: TOXENV=docs-html - python: 3.6 env: TOXENV=py-simplejson,codecov
install: - pip install tox
13 unmodified linesmodified:CHANGES+2 added
6 unmodified lines7 ------------8 9 Major release, unreleased10 11+- **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 that99 unmodified lines115 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.118 119+.. _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/1898657 unmodified linesmodified:tox.ini+4 added-6 removed
1 [tox]2 envlist =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-report9 10 [testenv]11 passenv = LANG12-usedevelop = true12 deps =13 pytest>=314 coverage15 greenlet11 unmodified lines27 devel: https://github.com/pallets/itsdangerous/archive/master.tar.gz28 devel: https://github.com/pallets/click/archive/master.tar.gz29 30 simplejson: simplejson31+32 commands =33 # the examples need to be installed to test successfully34 pip install -e examples/flaskr -q35 pip install -e examples/minitwit -q22 unmodified lines58 passenv = CI TRAVIS TRAVIS_*59 deps = codecov60 skip_install = true61 commands =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