Merge pull request #731 from ThomasWaldmann/docs
Before adoption: this commit came in with the history the project adopted, so no landing records it.
document python 2.6 minimum requirement, remove stuff that refers to 2.5
authored by Daniel Neuhäuser · committed by Daniel Neuhäuser · parents 521398d, 40fad2e · Browse files · 10 files·+8 added−20 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
10 files+8 added−20 removed
- other:+8 added−20 removed
Provenance
- Commit
c87735f- Tree
e36e7ae- Author
Daniel Neuhäuser <dasdasich@gmail.com>- Committer
Daniel Neuhäuser <dasdasich@gmail.com>- Parent 1
521398d- Parent 2
40fad2e
10 files changed+8 added−20 removed
modified:docs/patterns/jquery.rst-4 removed
9 unmodified lines10 Python primitives (numbers, strings, dicts and lists) look like which is11 widely supported and very easy to parse. It became popular a few years12 ago and quickly replaced XML as transport format in web applications.13 14-If you have Python 2.6 JSON will work out of the box, in Python 2.5 you15-will have to install the `simplejson`_ library from PyPI.16-14 .. _jQuery: http://jquery.com/18-.. _simplejson: http://pypi.python.org/pypi/simplejson15 16 Loading jQuery17 --------------18 145 unmodified linesmodified:docs/tutorial/dbinit.rst+2 added-5 removed
19 unmodified lines20 errors. It's a good idea to add a function that initializes the database21 for you to the application.22 23 If you want to do that, you first have to import the24-:func:`contextlib.closing` function from the contextlib package. If you25-want to use Python 2.5 it's also necessary to enable the `with` statement26-first (`__future__` imports must be the very first import). Accordingly,27-add the following lines to your existing imports in `flaskr.py`::24+:func:`contextlib.closing` function from the contextlib package.25+Accordingly, add the following lines to your existing imports in `flaskr.py`::26 29- from __future__ import with_statement27 from contextlib import closing28 29 Next we can create a function called `init_db` that initializes the30 database. For this we can use the `connect_db` function we defined36 unmodified linesmodified:docs/extensiondev.rst+1 added-1 removed
388 unmodified lines389 must be a link to automatically install the development version390 (``PackageName==dev``).391 9. The ``zip_safe`` flag in the setup script must be set to ``False``,392 even if the extension would be safe for zipping.393-10. An extension currently has to support Python 2.5, 2.6 as well as393+10. An extension currently has to support Python 2.6 as well as394 Python 2.7395 396 397 .. _ext-import-transition:23 unmodified linesmodified:docs/installation.rst+1 added-1 removed
11 unmodified lines12 So how do you get all that on your computer quickly? There are many ways you13 could do that, but the most kick-ass method is virtualenv, so let's have a look14 at that first.15 16-You will need Python 2.5 or higher to get started, so be sure to have an16+You will need Python 2.6 or higher to get started, so be sure to have an17 up-to-date Python 2.x installation. Python 3.x is not supported.18 19 .. _virtualenv:20 152 unmodified linesmodified:flask/json.py+1 added-2 removed
159 unmodified lines160 "email": "admin@localhost",161 "id": 42162 }163 164- This requires Python 2.6 or an installed version of simplejson. For165- security reasons only objects are supported toplevel. For more164+ For security reasons only objects are supported toplevel. For more165 information about this, have a look at :ref:`json-security`.166 167 .. versionadded:: 0.2168 """3 unmodified linesmodified:flask/wrappers.py-2 removed
90 unmodified lines91 @cached_property92 def json(self):93 """If the mimetype is `application/json` this will contain the94 parsed JSON data. Otherwise this will be `None`.95-96- This requires Python 2.6 or an installed version of simplejson.95 """96 if self.mimetype == 'application/json':97 request_charset = self.mimetype_params.get('charset')98 try:46 unmodified linesmodified:scripts/flask-07-upgrade.py+1 added-3 removed
285 unmodified lines286 if not args:287 args = ['.']288 289 if ast is None:290- parser.error('Python 2.6 or later is required to run the upgrade script.\n'291- 'The runtime requirements for Flask 0.7 however are still '292- 'Python 2.5.')290+ parser.error('Python 2.6 or later is required to run the upgrade script.')291 292 for path in args:293 scan_path(path, teardown=not options.no_teardown)294 3 unmodified linesmodified:.travis.yml-1 removed
1234456719 unmodified lineslanguage: python
python: - 2.5 - 2.6 - 2.7 - pypy
19 unmodified linesmodified:CHANGES+2 added
52 unmodified lines53 to work better with Google Chrome.54 - Added `message_flashed` signal that simplifies flashing testing.55 - Added support for copying of request contexts for better working with56 greenlets.57+- Python requirements changed: requiring Python 2.6 or 2.7 now to prepare58+ for Python 3.3 port.59 60 Version 0.961 -----------62 365 unmodified linesmodified:setup.py-1 removed
99 unmodified lines100 'Intended Audience :: Developers',101 'License :: OSI Approved :: BSD License',102 'Operating System :: OS Independent',103 'Programming Language :: Python',104- 'Programming Language :: Python :: 2.5',104 'Programming Language :: Python :: 2.6',105 'Programming Language :: Python :: 2.7',106 'Topic :: Internet :: WWW/HTTP :: Dynamic Content',107 'Topic :: Software Development :: Libraries :: Python Modules'4 unmodified lines