PageRenderTime 52ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/SQLAlchemy-0.7.8/README.py3k

#
Unknown | 52 lines | 33 code | 19 blank | 0 comment | 0 complexity | 40ca30e5d90e77f49bc051a348319427 MD5 | raw file
  1. =================
  2. PYTHON 3 SUPPORT
  3. =================
  4. Current Python 3k support in SQLAlchemy is provided by a customized
  5. 2to3 script which wraps Python's 2to3 tool.
  6. Installing Distribute
  7. ---------------------
  8. Distribute should be installed with the Python3 installation. The
  9. distribute bootloader is included.
  10. Running as a user with permission to modify the Python distribution,
  11. install Distribute:
  12. python3 distribute_setup.py
  13. Installing SQLAlchemy in Python 3
  14. ---------------------------------
  15. Once Distribute is installed, SQLAlchemy can be installed directly.
  16. The 2to3 process will kick in which takes several minutes:
  17. python3 setup.py install
  18. Converting Tests, Examples, Source to Python 3
  19. ----------------------------------------------
  20. To convert all files in the source distribution, run
  21. SQLAlchemys "sa2to3.py" script, which monkeypatches a preprocessor
  22. onto the 2to3 tool:
  23. python3 sa2to3.py --no-diffs -w lib test examples
  24. The above will rewrite all files in-place in Python 3 format.
  25. Running Tests
  26. -------------
  27. To run unit tests in Py3k, Nose 1.0 is required, or a development
  28. version of Nose that supports Python 3. The tests are run
  29. using ./sqla_nose.py as described in README.unittests.
  30. Current 3k Issues
  31. -----------------
  32. Current bugs and tickets related to Py3k are on the Py3k milestone in trac:
  33. http://www.sqlalchemy.org/trac/query?status=new&status=assigned&status=reopened&milestone=py3k