Closed uogbuji closed 1 year ago
Yes we can do
from importlib.metadata import version print(version('ogbujipt'))
or
import pkg_resources pkg_resources.get_distribution('ogbujipt').version
But we also want to allow the conventional
import ogbujipt print(ogbujipt.__version__)
Didn't know how much of a pain this would be for a hatch app, but it turned out to be simple enough. Implemented in main.
Yes we can do
or
But we also want to allow the conventional