From 118af5d1bf952c84e73f0c4fec398a33407f0a22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20P=2E=20Santos?= Date: Thu, 15 Aug 2024 18:08:26 -0300 Subject: [PATCH] refactor: replace pkg_resources with importlib for version handling Replaced pkg_resources with importlib.metadata to retrieve the package version. This reduces reliance on setuptools and uses a standard library available in Python 3.8+. --- pyradios/radios.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyradios/radios.py b/pyradios/radios.py index 35c14e3..542f79b 100644 --- a/pyradios/radios.py +++ b/pyradios/radios.py @@ -1,12 +1,12 @@ +from importlib.metadata import version as get_version + import httpx from pyradios.base_url import pick_base_url from pyradios.utils import type_check -import pkg_resources - -version = pkg_resources.get_distribution('pyradios').version +version = get_version("pyradios") class Request: