[Starlingx-discuss] Python 2to3 code porting

Ramirez, Eddie eddie.ramirez at intel.com
Tue Jul 24 17:16:12 UTC 2018


Yan,

I created this list https://etherpad.openstack.org/p/stx-python-2-to-3, I hope it can help us to track those packages as we make more discoveries.

From: "Ramirez, Eddie" <eddie.ramirez at intel.com>
Date: Tuesday, July 24, 2018 at 9:52 AM
To: Scott Little <scott.little at windriver.com>, "starlingx-discuss at lists.starlingx.io" <starlingx-discuss at lists.starlingx.io>
Subject: Re: [Starlingx-discuss] Python 2to3 code porting

+1

We would need to add cgtsclient to the list. I will confirm with other TiS packages today as Horizon uses packages like: cgtsclient, cgcs_patch, sysinv, tsconfig and mfclient…

From: Scott Little <scott.little at windriver.com>
Date: Tuesday, July 24, 2018 at 7:23 AM
To: "starlingx-discuss at lists.starlingx.io" <starlingx-discuss at lists.starlingx.io>
Subject: Re: [Starlingx-discuss] Python 2to3 code porting

Agreed.  We need the code restructuring and a working build before starting this task.

Scott

On 18-07-24 07:22 AM, Rowsell, Brent wrote:
The priority of this needs to be discussed at the next architecture meeting.
With all  current churn and lack of a working build, this activity in my opinion needs to wait.

Brent

From: Chen, Yan [mailto:yan.chen at intel.com]
Sent: Tuesday, July 24, 2018 12:38 AM
To: starlingx-discuss at lists.starlingx.io<mailto:starlingx-discuss at lists.starlingx.io>
Subject: [Starlingx-discuss] Python 2to3 code porting

Hi, there,
I just wonder if anyone is already working on this task now?
I created a story days ago, and studied most of our Python code and the python rpms in the system.
Here’s the conclusions:

  1.  Most of the Tis dependency python packages are already Python 2/3 compatible, but still some exceptions:

     *   The following packages are Python2 only and same for the latest code tree:

                                                                                       i.      createrepo-0.9.9 (used by cgcs-patch-controller)

                                                                                     ii.      net-snmp-5.7.2 (used by snmp-audittrail)

                                                                                    iii.      pyparted-3.9 (used by sysinv)

     *   The following packages are Python 2 but the latest version has Python 3 support, need upgrade:

                                                                                       i.      python-daemon-1.6 (used by logmgmt)
             * This analysis is still on-going, more packages may be found.

  1.  The Python modules for Python 2/3 compatibility (python-futures and python-six) are already included.
  2.  Some of the openstack packages/dependencies are Python 2 only, we may need to find a good version of Openstack to upgrade.

We can start to clean our code first, I think we follow the guideline here, one topic each time, how do you think?
http://python-future.org/compatible_idioms.html

Here’s the link for the story:
https://storyboard.openstack.org/#!/story/2002909<https://storyboard.openstack.org/#%21/story/2002909>



Yan






_______________________________________________

Starlingx-discuss mailing list

Starlingx-discuss at lists.starlingx.io<mailto:Starlingx-discuss at lists.starlingx.io>

http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.starlingx.io/pipermail/starlingx-discuss/attachments/20180724/e4f7082a/attachment.html>


More information about the Starlingx-discuss mailing list