-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
testfixtures.__version__ doesn't exist #94
Comments
I what context are you looking to find the version?
That's the standard way, AFAIK. |
The context is I've got the module imported and want an easy way to double-check what version I'm running. For example: https://github.com/zzzeek/sqlalchemy/blob/576b33d46a9418424e94926bf9f02bdad3fc593f/lib/sqlalchemy/__init__.py#L133 |
Why do you want to check the module at import time? There's a |
No followup in a couple of weeks, so let's close until python-poetry/poetry#144 takes care of this. |
Hello @cjw296 According to PEP 396 it is a good practice to include the version of your package in a This is useful if you want to check the module version at import time, for instance because different version have different API so you will do different calls. Also there should be a single source of truth for both I'd be happy to make you a PR if you want ! |
Sure, PR welcome :-) |
Is there any other easy way to see what version of the package you are using?
Should we add
__version__
to__init__.py
, as is typically done for other packages?The text was updated successfully, but these errors were encountered: