We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1f0948 commit 3837652Copy full SHA for 3837652
1 file changed
tabcmd/version.py
@@ -1,9 +1,6 @@
1
-# when we drop python 3.8, this could be replaced with this lighter weight option
2
-# from importlib.metadata import version, PackageNotFoundError
3
-from pkg_resources import get_distribution, DistributionNotFound
+from importlib.metadata import version, PackageNotFoundError
4
5
try:
6
- version = get_distribution("tabcmd").version
7
-except DistributionNotFound:
+ version = version("tabcmd")
+except PackageNotFoundError:
8
version = "2.0.0"
9
- pass
0 commit comments