Prefer get_distribution
@@ -9,7 +9,7 @@ from .getpassbackend import get_password as get_pass_get_password
try:
import pkg_resources
- __version__ = pkg_resources.require('keyring')[0].version
+ __version__ = pkg_resources.get_distribution('keyring').version
except Exception:
__version__ = 'unknown'
