nschloe/perfplot

Programmatically determine version, a la `perfplot.__version__`

Closed this issue · 2 comments

Hi, this is a nice work. Just out of curiosity, is there a way to determine the version knowing only that I have imported perfplot? In most packages, we can do this with package.__version__; this is not available in perfplot.

The modern way of doing this is via importlib, e.g.,

from importlib import metadata

print(metadata.version("perfplot"))
0.9.13

@nschloe thank you very much!