sqlalchemy / README.py3k

The rel_0_7 branch has multiple heads


Current Python 3k support in SQLAlchemy is provided by a customized
2to3 script which wraps Python's 2to3 tool.

Installing Distribute

Distribute should be installed with the Python3 installation.  The
distribute bootloader is included.

Running as a user with permission to modify the Python distribution,
install Distribute:


Installing SQLAlchemy in Python 3

Once Distribute is installed, SQLAlchemy can be installed directly.
The 2to3 process will kick in which takes several minutes:

    python3 install

Converting Tests, Examples, Source to Python 3

To convert all files in the source distribution, run 
SQLAlchemys "" script, which monkeypatches a preprocessor
onto the 2to3 tool:

    python3 --no-diffs -w lib test examples

The above will rewrite all files in-place in Python 3 format.

Running Tests

To run unit tests in Py3k, Nose 1.0 is required, or a development
version of Nose that supports Python 3.   The tests are run
using ./ as described in README.unittests.

Current 3k Issues

Current bugs and tickets related to Py3k are on the Py3k milestone in trac:
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.