From 6e642be4a9502ade61a3cf5868093ac0bca4e18c Mon Sep 17 00:00:00 2001 From: Jakob Schlyter Date: Wed, 29 May 2024 09:55:39 +0200 Subject: [PATCH 1/3] use importlib.metadata --- src/cryptojwt/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cryptojwt/__init__.py b/src/cryptojwt/__init__.py index 44e5d81..8603b4f 100644 --- a/src/cryptojwt/__init__.py +++ b/src/cryptojwt/__init__.py @@ -2,7 +2,7 @@ import logging -import pkg_resources +from importlib.metadata import version from cryptojwt.jwe.jwe import JWE from cryptojwt.jwk import JWK @@ -24,7 +24,7 @@ except ImportError: pass -__version__ = pkg_resources.get_distribution("cryptojwt").version +__version__ = version("cryptojwt") logger = logging.getLogger(__name__) From dadeea75653cb6e356b20c80a03cb5c33af334d2 Mon Sep 17 00:00:00 2001 From: Jakob Schlyter Date: Wed, 29 May 2024 10:30:18 +0200 Subject: [PATCH 2/3] isort --- src/cryptojwt/__init__.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/cryptojwt/__init__.py b/src/cryptojwt/__init__.py index 8603b4f..38787f0 100644 --- a/src/cryptojwt/__init__.py +++ b/src/cryptojwt/__init__.py @@ -1,7 +1,6 @@ """JSON Web Token""" import logging - from importlib.metadata import version from cryptojwt.jwe.jwe import JWE From 7031c51146ed58444fa2ca65b60890b108329271 Mon Sep 17 00:00:00 2001 From: Jakob Schlyter Date: Wed, 5 Jun 2024 11:48:24 +0200 Subject: [PATCH 3/3] bump --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"