Initial work to investigate very roughly how long a migration to python 3 would take.
Note, this is based off of Matt Archer's branch to add integration testing.
Plans for a migration:
[x] upgrade integration test to run in python3
[x] update dependencies for compatibility with python3, note that it is not currently possible to bump numpy to v2.x.x because statsmodels isn't compatible with versions above and including numpy 2.
[x] run python 2to3 tool, this picked up some of the more standard syntax changes but has not found more subtle issues and currently still getting runtime issues.
[ ] run a code coverage tool, have been trying to run pytest's coverage tool but hitting some snags currently
[ ] add unit tests, there are 13 modules which look like candidates for unit testing in the oneflux directory, these are very long, with library being 1300 lines.
[ ] add a README for running the tests (a stub has been added so far)
[ ] update the remaining syntax in the project - estimate x% remaining
My feeling is that the time needed to add appropriate tests would make this a 6 month project.
Initial work to investigate very roughly how long a migration to python 3 would take.
Note, this is based off of Matt Archer's branch to add integration testing.
Plans for a migration:
oneflux/partition/nighttime.py
which is 966 lines long. This included fixing an encoding issue inlibrary.py
which was to do with changes to the way python3 represents byte strings (second answer down in this post: https://stackoverflow.com/questions/21957667/numpy-dtype-issues-in-genfromtxt-reads-string-in-as-bytestring)oneflux directory
, these are very long, withlibrary
being 1300 lines.My feeling is that the time needed to add appropriate tests would make this a 6 month project.