mirror of https://github.com/pallets/flask.git
remove tests and docs for python 2.6 and 3.3
This commit is contained in:
parent
27a7171d42
commit
28d0f66c1f
12
.travis.yml
12
.travis.yml
|
@ -4,25 +4,17 @@ language: python
|
|||
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
|
||||
|
|
2
CHANGES
2
CHANGES
|
@ -8,6 +8,7 @@ Version 0.13
|
|||
|
||||
Major release, unreleased
|
||||
|
||||
- **Python 2.6 and 3.3 are no longer supported.** (`pallets/meta#24`_)
|
||||
- Minimum Werkzeug version bumped to 0.9, but please use the latest version.
|
||||
- Minimum Click version bumped to 4, but please use the latest version.
|
||||
- Make ``app.run()`` into a noop if a Flask application is run from the
|
||||
|
@ -115,6 +116,7 @@ Major release, unreleased
|
|||
- Blueprint view function name may not contain dots. (`#2450`_)
|
||||
- The dev server now uses threads by default.
|
||||
|
||||
.. _pallets/meta#24: https://github.com/pallets/meta/issues/24
|
||||
.. _#1421: https://github.com/pallets/flask/issues/1421
|
||||
.. _#1489: https://github.com/pallets/flask/pull/1489
|
||||
.. _#1621: https://github.com/pallets/flask/pull/1621
|
||||
|
|
|
@ -45,11 +45,3 @@ spam, links to malicious software, and the like.
|
|||
|
||||
Flask is no different from any other framework in that you the developer must
|
||||
build with caution, watching for exploits when building to your requirements.
|
||||
|
||||
Python 3 Support in Flask
|
||||
-------------------------
|
||||
|
||||
Flask, its dependencies, and most Flask extensions all support Python 3.
|
||||
If you want to use Flask with Python 3 have a look at the :ref:`python3-support` page.
|
||||
|
||||
Continue to :ref:`installation` or the :ref:`quickstart`.
|
||||
|
|
|
@ -56,7 +56,6 @@ Design notes, legal information and changelog are here for the interested.
|
|||
unicode
|
||||
extensiondev
|
||||
styleguide
|
||||
python3
|
||||
upgrading
|
||||
changelog
|
||||
license
|
||||
|
|
|
@ -383,7 +383,7 @@ extension to be approved you have to follow these guidelines:
|
|||
(``PackageName==dev``).
|
||||
9. The ``zip_safe`` flag in the setup script must be set to ``False``,
|
||||
even if the extension would be safe for zipping.
|
||||
10. An extension currently has to support Python 2.7, Python 3.3 and higher.
|
||||
10. An extension currently has to support Python 3.4 and newer and 2.7.
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -6,8 +6,8 @@ Installation
|
|||
Python Version
|
||||
--------------
|
||||
|
||||
We recommend using the latest version of Python 3. Flask supports Python 3.3
|
||||
and newer, Python 2.6 and newer, and PyPy.
|
||||
We recommend using the latest version of Python 3. Flask supports Python 3.4
|
||||
and newer, Python 2.7, and PyPy.
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
|
|
@ -1,23 +0,0 @@
|
|||
.. _python3-support:
|
||||
|
||||
Python 3 Support
|
||||
================
|
||||
|
||||
Flask, its dependencies, and most Flask extensions support Python 3.
|
||||
You should start using Python 3 for your next project,
|
||||
but there are a few things to be aware of.
|
||||
|
||||
You need to use Python 3.3 or higher. 3.2 and older are *not* supported.
|
||||
|
||||
You should use the latest versions of all Flask-related packages.
|
||||
Flask 0.10 and Werkzeug 0.9 were the first versions to introduce Python 3 support.
|
||||
|
||||
Python 3 changed how unicode and bytes are handled, which complicates how low
|
||||
level code handles HTTP data. This mainly affects WSGI middleware interacting
|
||||
with the WSGI ``environ`` data. Werkzeug wraps that information in high-level
|
||||
helpers, so encoding issues should not affect you.
|
||||
|
||||
The majority of the upgrade work is in the lower-level libraries like
|
||||
Flask and Werkzeug, not the high-level application code.
|
||||
For example, all of the examples in the Flask repository work on both Python 2 and 3
|
||||
and did not require a single line of code changed.
|
10
tox.ini
10
tox.ini
|
@ -1,15 +1,14 @@
|
|||
[tox]
|
||||
envlist =
|
||||
py{36,35,34,33,27,26,py}
|
||||
py{36,35,34,27,py}
|
||||
py{36,27,py}-simplejson
|
||||
py{36,33,27,26,py}-devel
|
||||
py{36,33,27,26,py}-lowest
|
||||
py{36,27,py}-devel
|
||||
py{36,27,py}-lowest
|
||||
docs-html
|
||||
coverage-report
|
||||
|
||||
[testenv]
|
||||
passenv = LANG
|
||||
usedevelop = true
|
||||
deps =
|
||||
pytest>=3
|
||||
coverage
|
||||
|
@ -29,6 +28,7 @@ deps =
|
|||
devel: https://github.com/pallets/click/archive/master.tar.gz
|
||||
|
||||
simplejson: simplejson
|
||||
|
||||
commands =
|
||||
# the examples need to be installed to test successfully
|
||||
pip install -e examples/flaskr -q
|
||||
|
@ -59,8 +59,6 @@ passenv = CI TRAVIS TRAVIS_*
|
|||
deps = codecov
|
||||
skip_install = true
|
||||
commands =
|
||||
# install argparse for 2.6
|
||||
python -c 'import sys, pip; sys.version_info < (2, 7) and pip.main(["install", "argparse", "-q"])'
|
||||
coverage combine
|
||||
coverage report
|
||||
codecov
|
||||
|
|
Loading…
Reference in New Issue