Skip to content

Commit

Permalink
Replace pkg_resources with importlib.metadata
Browse files Browse the repository at this point in the history
Avoids DeprecationWarning in ckanapi.version.
  • Loading branch information
khaeru committed Nov 28, 2024
1 parent e27e8c5 commit 8e62c0b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ckanapi/version.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import pkg_resources

__version__ = pkg_resources.require("ckanapi")[0].version

from importlib.metadata import version

__version__ = version("ckanapi")

0 comments on commit 8e62c0b

Please sign in to comment.