jpy-consortium / jpy

Apache License 2.0
68 stars 16 forks source link

Add __version__ to `jpy` #116

Open chipkent opened 9 months ago

chipkent commented 9 months ago

For debugging purposes, it would be useful to have jpy.__version__ specified.

devinrsmith commented 9 months ago
from importlib import metadata

metadata.version('jpy')

is the most canonical way - do we need __version__? https://docs.python.org/3/library/importlib.metadata.html#distribution-versions