Skip to content

Expose version function in package root  #1382

Closed
@heitorlessa

Description

@heitorlessa

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 a help wanted.

Metadata

Metadata

Labels

tech-debtTechnical Debt tasks

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions