Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display python-wheel commit? #2

Open
ross-spencer opened this issue May 22, 2022 · 2 comments
Open

Display python-wheel commit? #2

ross-spencer opened this issue May 22, 2022 · 2 comments

Comments

@ross-spencer
Copy link
Owner

Not sure what we can do here, but we use a python wheel to deliver demystify. I mean, this could be a pypi download too. We could get the version of the script but that's fallible. A commit would be better. How do we write this into the wheel/package?

@ross-spencer
Copy link
Owner Author

One option?

  • Make wheel.
  • Add to the recipe: git log --graph --pretty=format:%h" "%s" "(%cr)" <"%an">" and take the first line HEAD and add it to a file/filename to pass to demystify-lite with the .whl.
  • Read the filename from Python and display in HTML.

@ross-spencer
Copy link
Owner Author

Can we use git get-tar-commit-id?: https://git-scm.com/docs/git-get-tar-commit-id

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant