chore: avoid setuptools for version

We might be missing setuptools in certain circumstances
in later pythons, but importlib is available from Python 3.8+.
This commit is contained in:
Misty De Méo 2025-02-26 11:19:56 -08:00
parent cb309acffd
commit 418758fc22

View File

@ -19,9 +19,9 @@ limitations under the License.
import logging
import structlog
from pkg_resources import get_distribution as _get_distribution
from importlib.metadata import version as _version
__version__ = _get_distribution("brozzler").version
__version__ = _version("brozzler")
class ShutdownRequested(Exception):