Skip to content

Commit 943f1bb

Browse files
Remove dependency on pkg_resources (#65)
1 parent 206504c commit 943f1bb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dask_snowflake/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
from pkg_resources import DistributionNotFound, get_distribution
1+
from importlib.metadata import PackageNotFoundError, version
22

33
from .core import read_snowflake, to_snowflake
44

55
try:
6-
__version__ = get_distribution(__name__).version
7-
except DistributionNotFound:
8-
pass
6+
__version__ = version(__name__)
7+
except PackageNotFoundError:
8+
__version__ = "unknown"

0 commit comments

Comments
 (0)