-
Notifications
You must be signed in to change notification settings - Fork 421
Expose version function in package root #1382
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
Labels
tech-debt
Technical Debt tasks
Comments
9 tasks
version
as a package variable
7 tasks
Hi @heitorlessa! I include this in User Agent PR. |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With Python 3.6 being dropped in v2, we can use use
importlib
to expose a version function.Since
importlib
looks up DIST files to gather package information, it'll impact cold start performance. Instead, we should create a version and use lazy import to amortize the overhead.NOTE:
importlib.metadata
is only available in 3.8. Reducing priority and assigning ahelp wanted
.The text was updated successfully, but these errors were encountered: