diff --git a/pyproject.toml b/pyproject.toml index c296810..4935e69 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,7 +22,7 @@ exclude_lines = [ [tool.poetry] name = "cryptojwt" -version = "1.9.1" +version = "1.9.2" description = "Python implementation of JWT, JWE, JWS and JWK" authors = ["Roland Hedberg "] license = "Apache-2.0" diff --git a/src/cryptojwt/__init__.py b/src/cryptojwt/__init__.py index 44e5d81..38787f0 100644 --- a/src/cryptojwt/__init__.py +++ b/src/cryptojwt/__init__.py @@ -1,8 +1,7 @@ """JSON Web Token""" import logging - -import pkg_resources +from importlib.metadata import version from cryptojwt.jwe.jwe import JWE from cryptojwt.jwk import JWK @@ -24,7 +23,7 @@ except ImportError: pass -__version__ = pkg_resources.get_distribution("cryptojwt").version +__version__ = version("cryptojwt") logger = logging.getLogger(__name__)