If the version is not embedded during wheel/distribution, it would be better to stop putting it there (or do it lazily).
importing importlib.metadata and calling it takes about 0.4s one the (slow) computer I am using. proto is meant to be lightweight and fast, this import takes more time than anything else when calling import betterproto
|
__version__ = metadata.version("betterproto2") |
If the version is not embedded during wheel/distribution, it would be better to stop putting it there (or do it lazily).
importing importlib.metadata and calling it takes about 0.4s one the (slow) computer I am using. proto is meant to be lightweight and fast, this import takes more time than anything else when calling
import betterprotopython-betterproto2/betterproto2/src/betterproto2/_version.py
Line 3 in 662476a