Multirelease effort: Moving to Python 3

Nick Coghlan ncoghlan at redhat.com
Mon Jul 22 00:28:33 UTC 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/20/2013 07:44 AM, Toshio Kuratomi wrote:
> On Fri, Jul 19, 2013 at 05:30:36PM -0400, Matthew Miller wrote:
>> On Fri, Jul 19, 2013 at 01:45:41PM -0700, Toshio Kuratomi wrote:
>>> * python-cheetah -- Development slowed way down after they made
>>> their last release in 2010 and announced that the next release
>>> cheetah-3.0 would include python3 support.  Probably need to
>>> contact upstream about this and may need to prepare the patch
>>> to do the port.
>> 
>> What I'd _really_ like to do is get cheetah factored out of
>> cloud-init. (https://bugzilla.redhat.com/show_bug.cgi?id=974327).
>> It brings in a whole dependency chain of which python2 vs.
>> python3 is the least of the troubles.

Are Matthew's replies stuck in the python-devel moderation queue?
(Just realised the likely reason I'm only seeing half this
conversation...)

Hmm, also just realised I've been hitting Reply-List, so my replies
are only going to python-devel...

> If your needs are very minimal, python3-tempita might be a good
> choice. If you actually do need more features than that,
> python-mako and python-jinja2 are popular.  Note that both of those
> have a few deps (but hopefully not as bad as cheetah).  (Also --
> the python3 version of mako has less deps than the python2
> version... I think that it just because those deps haven't been
> ported to python3 yet and the package can operate with reduced
> functionality without them.  the deps fo the python3 version might 
> expand i nthe future).

Jinja2 is excellent, with very high quality error reporting - an oft
overlooked feature in a templating tool! (it's actually Armin
Ronacher's fault I started thinking about how to deal with the problem
of surrogate escaped strings escaping from their intended "retrieve
from OS API, pass straight back to OS API" box - he did an excellent
write-up of how this can go wrong after finishing the Werkzeug and
Jinja2 Python 3 updates: see
http://lucumr.pocoo.org/2013/5/21/porting-to-python-3-redux/ and
http://lucumr.pocoo.org/2013/7/2/the-updated-guide-to-unicode/).

Cheers,
Nick.

- -- 
Nick Coghlan
Red Hat Infrastructure Engineering & Development, Brisbane

Testing Solutions Team Lead
Beaker Development Lead (http://beaker-project.org/)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJR7HyxAAoJEHEkJo9fMO/LZa0H/i1YQpgb0WPTB/jq+3Raqsp1
DKtYp+nGmMZxXDrfTms1GTc3hnRWRM7GV91D2VK16U3t7G0awmx9Ib1xrXgdnWee
Pvh7zD0CMbvFOwOPJsSB2c3kqRaVymUB+tLbY2Z9+GUfSTNL6kfIDbhj5Krm7qiV
ASNBjfOSIzMv0oc/cbekH9WmTX+5A5GpXnKe1MAk/La/Gn/+0Yp45mfueUb0bedb
mZRjYaI62CoxFaWDzcUTjfkxeOiexKTy6ZAyFqgeEHn+x592ENOhQr3p61nwEuJj
Q46+3mEu7iYNLlIHOX9VVK8p69NMwZYgDVjF3ykbWwrSXBjOAfNqIpB5wUhFI8E=
=7kEP
-----END PGP SIGNATURE-----


More information about the python-devel mailing list