Skip to content

Commit f88bfba

Browse files
authored
Use importlib instead of pkg_resources (#233)
1 parent 052427d commit f88bfba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pydust/config.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
"""
1414

1515
import functools
16+
import importlib.metadata
1617
from pathlib import Path
1718

18-
import pkg_resources
1919
import tomllib
2020
from pydantic import BaseModel, Field, model_validator
2121

@@ -75,7 +75,7 @@ def load() -> ToolPydust:
7575

7676
# Since Poetry doesn't support locking the build-system.requires dependencies,
7777
# we perform a check here to prevent the versions from diverging.
78-
pydust_version = pkg_resources.get_distribution("ziggy-pydust").version
78+
pydust_version = importlib.metadata.version("ziggy-pydust")
7979

8080
# Skip 0.1.0 as it's the development version when installed locally.
8181
if pydust_version != "0.1.0":

0 commit comments

Comments
 (0)