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

Get version from package metadata rather than hardcoded string #31

Open
bd808 opened this issue Aug 17, 2023 · 0 comments
Open

Get version from package metadata rather than hardcoded string #31

bd808 opened this issue Aug 17, 2023 · 0 comments
Milestone

Comments

@bd808
Copy link
Owner

bd808 commented Aug 17, 2023

Use importlib.metadata to find the version of the installed package. See https://gitlab.wikimedia.org/repos/ci-tools/commit-message-validator/-/commit/64a3b58411f8dd3773516504556d22bee1465ff1 as an implementation example including support for older versions of Python.

@bd808 bd808 added this to the 1.0.0 milestone Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant