OoriData / OgbujiPT

Client-side toolkit for using large language models, including where self-hosted
Apache License 2.0
103 stars 8 forks source link

Ensure __version__ is exposed #18

Closed uogbuji closed 1 year ago

uogbuji commented 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__)
uogbuji commented 1 year ago

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.