setuptools_scm
setuptools_scm copied to clipboard
QST: how to get the complete git commit hash
Is there a way to get the complete git commit hash using setuptools_scm?
More context please, there are some ways available but not everywhere/easy
I'm exploring if pandas could use setuptools_scm to replace versioneer. The only piece missing is the complete git commit hash. pandas displays it as a part of its version information. It would be nice if there is explicit way to do this using setuptools_scm.
I think a custom write_to template can expose it,
Will create a example later
Is there any news on this? It would be great, if beside the version a commit hash could be saved via "write_to".
https://github.com/pandas-dev/pandas/issues/39415#issuecomment-1189354996
Someone posted a workaround. I haven't tested it yet. Just share it here for reference.
The best way would be to add a full node local version scheme as the full node is available on the scm version now
@RonnyPfannschmidt Is it possible to use SCMVersion attributes in the template. For now only version string & version_tuple is available ?
Currently only those 2 are avaliable
The best way would be to add a full node local version scheme as the full node is available on the scm version now
Can I ask more details w.r.t. full node? I'm having troubles to locate them in code.
Currently they are only partially available, detail on extraction and pass over have to change