Skip to content
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

cocoex module has no __version__ #1702

Closed
brockho opened this issue Jan 24, 2018 · 2 comments
Closed

cocoex module has no __version__ #1702

brockho opened this issue Jan 24, 2018 · 2 comments

Comments

@brockho
Copy link
Contributor

brockho commented Jan 24, 2018

Contrary to the cocopp and cocoprep modules, the cocoex module does not have an accessible __version__ attribute. In order to check which version is installed, the presence of such an attribute will be much more convenient than trying to uninstall the module via pip uninstall cocoex and then looking at the print out (which is what I can do right now). Low priority issue though.

@nikohansen
Copy link
Contributor

nikohansen commented Feb 13, 2018

For cocopp it is done like:

import pkg_resources
__version__ = pkg_resources.require('cocopp')[0].version
del pkg_resources

in the module __init__.py file.

@brockho
Copy link
Contributor Author

brockho commented Feb 1, 2021

Implemented with latest commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants