Python 3 default for all layered / reactive charms

Stuart Bishop stuart.bishop at canonical.com
Tue Nov 17 03:07:30 UTC 2015


On 17 November 2015 at 03:50, Cory Johns <cory.johns at canonical.com> wrote:
> https://github.com/juju-solutions/reactive-base-layer/issues/5
>
> I am for using Python 3 in the base layer, but we need to address the effect
> that would have on the charms currently written using layers.  I don't think
> the community effort to handle the switch at this point would be large, but
> we could also fork the base layer have a "basic-py2" layer for a period to
> ease the transition.
>
> Thoughts or concerns?

Right now with the new framework is the best opportunity we are ever
going to get. The alternative is supporting hacks allowing both Py2
and Py3 until 2020 (but you know that, since I published one such hack
and recommended not merging it ;) )

I doubt there are any Py2 charms that cannot easily move, since the
oldest version they can target is 2.7. The only thing that comes to my
mind is git support, as IIRC charmhelpers is using an obsolete git
library and the functionality is unavailable with Py3.

-- 
Stuart Bishop <stuart.bishop at canonical.com>



More information about the Juju mailing list