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

/-/plugins should show version of each installed plugin #248

Closed
simonw opened this issue May 3, 2018 · 2 comments
Closed

/-/plugins should show version of each installed plugin #248

simonw opened this issue May 3, 2018 · 2 comments

Comments

@simonw
Copy link
Owner

simonw commented May 3, 2018

Refs #244

https://stackoverflow.com/questions/20180543/how-to-check-version-of-python-modules

>>> import pkg_resources
>>> pkg_resources.get_distribution('datasette_cluster_map').version
'0.4'
@simonw
Copy link
Owner Author

simonw commented May 3, 2018

Even better: use plugin_manager.list_plugin_distinfo() from pluggy to get back a list of tuples, the second item in each tuple is a pkg_resources.DistInfoDistribution with a .version attribute.

@simonw simonw closed this as completed in ca29071 May 4, 2018
@simonw
Copy link
Owner Author

simonw commented May 4, 2018

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

No branches or pull requests

1 participant