Skip to content

Commit

Permalink
refactor: replace pkg_resources with importlib for version handling
Browse files Browse the repository at this point in the history
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+.
  • Loading branch information
andreztz committed Aug 15, 2024
1 parent c430e61 commit 118af5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyradios/radios.py
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 118af5d

Please sign in to comment.