We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b906f37 commit 6200a60Copy full SHA for 6200a60
cly/__init__.py
@@ -34,8 +34,9 @@
34
__docformat__ = 'restructuredtext en'
35
__author__ = 'Alec Thomas <[email protected]>'
36
try:
37
- __version__ = __import__('pkg_resources').get_distribution('cly').version
38
-except ImportError:
+ import importlib.metadata
+ __version__ = importlib.metadata.version('cly')
39
+except Exception:
40
pass
41
42
0 commit comments