Opened 13 years ago
Last modified 3 years ago
#10083 closed enhancement
Make Trac work with Python 3 — at Version 9
Reported by: | Remy Blank | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | general | Version: | |
Severity: | normal | Keywords: | python3 |
Cc: | leho@…, Thijs Triemstra, gabriele.svelto@…, Ryan J Ollos, py.hieroglyph@…, Jun Omae, Arthur.Solomon@…, t17-0by@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description (last modified by )
With Genshi having been ported to Python 3, we could start thinking about how we can achieve the same with Trac. As a first step, we should check if our dependencies have a Python 3 port:
Database backends | SQLite | builtin sqlite3, PySqlite? |
---|---|---|
PostgreSQL | psycopg 2.4 | |
MySQL | unofficial mysqldb or pymysql | |
Version control bindings | Subversion | unlikely (1) |
Mercurial | unlikely (2) | |
Web frontends | Apache | mod_wsgi |
Others | setuptools (Distribute) | works (3) |
Genshi | py3k branch | |
Babel | #bl209 | |
pytz | unofficial, but it seems official 2011d can be easy_install 'ed
| |
docutils | works (4) | |
pygments | works (1.4) |
Notes
- svn: not much activity on the bindings; rather go the svn.exe way
- hg: after 2 GSoC projects already, the efforts seem to have stalled
- distribute: seems ok on Linux, "works" more or less on Windows; might be worth to wait for distutils2
- docutils: seems it was ported and works on Linux, but
easy_install docutils
on Windows hangs… Installing docutils-0.7.tar.gz also hangs, so it seems it's not distribute's fault.
Once we have at least one backend, VC binding and frontend ready, the next step would be playing with 2to3
and see what comes out.
See also resources listed in PortingPythonToPy3k.
Let's set the milestone tentatively to 0.14.
Change History (9)
follow-up: 3 comment:1 by , 13 years ago
comment:2 by , 13 years ago
Cc: | added |
---|
comment:3 by , 13 years ago
comment:4 by , 13 years ago
Cc: | added |
---|
comment:5 by , 13 years ago
Description: | modified (diff) |
---|
Create a table for the packages and document some already py3k compatible packages or in-progress status.
comment:6 by , 13 years ago
Description: | modified (diff) |
---|
Correction: Simon Cross' py3k branch not yet on trunk apparently.
comment:7 by , 13 years ago
Description: | modified (diff) |
---|
Added some data according to what's installed on my machine (Gentoo Linux).
comment:8 by , 13 years ago
Description: | modified (diff) |
---|
Report my early experiments with distribute on Python 3.2 (x64) on Windows 7.
comment:9 by , 13 years ago
Description: | modified (diff) |
---|
Add some infos on db related packages. Nothing actually tested, though.
There is also a 3to2 tool, and rumors here at PyCon that 3to2 will (soonish?) have the ability to take Python 3 code and output versions that will work for 2.7, 2.6, 2.5, and maybe even 2.4.