aio-libs / aiohttp-devtools

dev tools for aiohttp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Expose __version__ in __init__.py

asvetlov opened this issue · comments

Looks like it is standard de-facto for python packaging.

I was thought that pkg_resources.get_distribution(...).version is a bit more reliable and common than magic attributes.

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.

Well, maybe not for every lib -- I didn't check it. But for most of them at least.

Hm, ok. Took a note for aiocouchdb.

I normally do this, I think I just forgot, will fix.