esm-tools / esm_version_checker

GNU General Public License v2.0
0 stars 0 forks source link

Function for Project -> Git Sha #24

Closed pgierz closed 2 years ago

pgierz commented 3 years ago

It would nice to have a small function that allows you to just figure out the git SHA of all the tools you current are using.

Effectively, this would look at the currently installed tool version (respecting the virtual environment, if one is active), and returning the git sha value for each esm-tools related project. This could look something like the following:

import esm_version_checker.determine_shas

git_shas = determine_shas()
print(git_shas)

Gives back:

{
"esm_tools": "140d197",
"esm_runscripts": "something",
}

and so on. We indirectly do this anyway, so it should not be too hard.

denizural commented 3 years ago

This is exactly what I am planning to do. I just have some stuff lying around in my TODO list. Will do it asap.

pgierz commented 2 years ago

No longer relevant as of monorepo, closing...