adamtornhill / maat-scripts

Scripts used to post-process the results from Code Maat
GNU General Public License v3.0
74 stars 30 forks source link

Conversion of Scripts to Python 3 #7

Closed HelgeCPH closed 2 years ago

HelgeCPH commented 5 years ago

Hej Adam,

After a long time I was again reading your book Your Code as a Crime Scene. Thank you for it. It is really well written and inspiring.

Since I wanted to run some of your scripts and since Python 2 is close to EOL, I just thought you might be interested in my changes for Python 3. While doing that I fixed two minor issues 4a552cc and 359a3b5.

Unfortunately, I do not know how to send a PR for a separate branch, as there are likely people who want to run the Python 2 scripts from the master branch. Please let me know if I should do anything different.

Best, Helge

adamtornhill commented 5 years ago

Thanks a lot @HelgeCPH for your kind words, and thanks for the pull request!

I think we should provide two versions of the scripts: one for Python 2, and one version with your updated Python 3 scripts. We could either introduce a separate folder, e.g. python3 that contains updated versions of all scripts. Or we could maintain a separate fork where we update the documentation to highlight that this is a Python 3 compatible version. We could then link from maat-scripts to the fork.

Which one would you prefer? I'm lending towards the fork.

HelgeCPH commented 5 years ago

Thank you for your reply and sorry for my late reply.

I think we should provide two versions of the scripts: one for Python 2, and one version with your updated Python 3 scripts.

Yes, I agree. Likely many people use the Python 2 scripts as they are.

We could either introduce a separate folder, e.g. python3 that contains updated versions of all scripts. Or we could maintain a separate fork where we update the documentation to highlight that this is a Python 3 compatible version. We could then link from maat-scripts to the fork.

Which one would you prefer? I'm lending towards the fork.

Let's do whatever suits you best. If it is the fork then we just do it as you suggested.

Ryuno-Ki commented 4 years ago

What's the status with this?

I picked up Software Design X-Rays which also refers to this project.

wonderbird commented 2 years ago

Hi @adamtornhill, @HelgeCPH and @Ryuno-Ki,

in https://github.com/wonderbird/maat-scripts I have combined @HelgeCPH's changes with the latest commit of @adamtornhill's master branch and resolved the conflicts shown below.

Next steps

Best, Stefan

wonderbird commented 2 years ago

P.S.: In addition I have resolved a bug that surfaced with the python3 version of the merge_comp_freqs.py script.

adamtornhill commented 2 years ago

@wonderbird I have created the branch: https://github.com/adamtornhill/maat-scripts/tree/python3

We should also include a mention of the Python 3 support in the README.md.

wonderbird commented 2 years ago

Thanks @adamtornhill . I have created PR #11 with the intention to replace this PR.

adamtornhill commented 2 years ago

Closing this PR since the work was completed in #11.