Expose __version__ in __init__.py
asvetlov opened this issue · comments
Andrew Svetlov commented
Looks like it is standard de-facto for python packaging.
Alexander Shorin commented
I was thought that pkg_resources.get_distribution(...).version
is a bit more reliable and common than magic attributes.
Andrew Svetlov commented
You could use pkg_resources
on your own but supporting aiohttp_devtools.__version__
attribute doesn't make things worse.
Also we do it for every aio-libs library -- let's be consistent.
Andrew Svetlov commented
Well, maybe not for every lib -- I didn't check it. But for most of them at least.
Alexander Shorin commented
Hm, ok. Took a note for aiocouchdb.
Samuel Colvin commented
I normally do this, I think I just forgot, will fix.