2020-12-10, 02:53
Hi there!
I have a private repository to host a private addon currently developed in Python 2. I am doing the Python 3 migration now and I wonder if I can publish both versions at the same time in the repository, Kodi 19 downloading the Python 3 version and Kodi <19 keeping the python 2 version.
I guess that current best practice would be to rewrite the addon to be Python 2 and 3 compatible, but I would like to take advantage of new features/syntax in Python 3. I can keep the old Python 2 releases around until people upgrade to Kodi 19 and then the addon would be automatically (I hope) upgraded to the python 3 version.
Is this a fantasy of mine or could it work? Should I bite the bulled and do a hybrid release containing both Python 2 and Python 3 code? (or code written to be compatible with both, that is). I would like to avoid it if possible.
Thanks!
I have a private repository to host a private addon currently developed in Python 2. I am doing the Python 3 migration now and I wonder if I can publish both versions at the same time in the repository, Kodi 19 downloading the Python 3 version and Kodi <19 keeping the python 2 version.
I guess that current best practice would be to rewrite the addon to be Python 2 and 3 compatible, but I would like to take advantage of new features/syntax in Python 3. I can keep the old Python 2 releases around until people upgrade to Kodi 19 and then the addon would be automatically (I hope) upgraded to the python 3 version.
Is this a fantasy of mine or could it work? Should I bite the bulled and do a hybrid release containing both Python 2 and Python 3 code? (or code written to be compatible with both, that is). I would like to avoid it if possible.
Thanks!