GenomeRIK / tama

Transcriptome Annotation by Modular Algorithms (for long read RNA sequencing data)
GNU General Public License v3.0
128 stars 25 forks source link

Update to Python 3 #87

Open jamestwebber opened 1 year ago

jamestwebber commented 1 year ago

Since January 2020, Python 2 is no longer supported, and no longer gets updates. Many other packages no longer support it.

I just ran the 2to3 tool on the project and went through the changes. I haven't tested everything though.

The primary change was just going from xrange to range, which does the same thing in Python 3. Most print statements were already using parentheses for some reason so those were fine.

2to3 assumes you wanted a list from dict.keys() and map so it wraps those calls. That might not be necessary (I didn't review all the uses) but it should maintain functionality at least.

verdurin commented 11 months ago

Is there any hope of this being merged? I'm looking at adding tama to EasyBuild, for installation on HPC clusters, and obviously relying on Python 2 is problematic.