From e44e25032d95fc23aef73da1fd79c6ec8b1916bc Mon Sep 17 00:00:00 2001 From: Jesse Peters Date: Thu, 7 Mar 2024 12:28:32 -0600 Subject: [PATCH] Replace deprecated pkg_resources --- temba_client/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/temba_client/__init__.py b/temba_client/__init__.py index 6a484f6..9cbc808 100644 --- a/temba_client/__init__.py +++ b/temba_client/__init__.py @@ -1,4 +1,4 @@ -import pkg_resources +from importlib import metadata CLIENT_NAME = "rapidpro-python" -CLIENT_VERSION = pkg_resources.get_distribution("rapidpro-python").version +CLIENT_VERSION = metadata.version("rapidpro-python")