We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6efae2 commit 6619b06Copy full SHA for 6619b06
uid2_client/request_response_util.py
@@ -3,21 +3,22 @@
3
from datetime import datetime
4
from typing import Dict, Optional
5
from urllib import request
6
-
7
-import pkg_resources
+from importlib import metadata
8
9
from uid2_client.encryption import _encrypt_gcm, _decrypt_gcm
10
from .envelope import Envelope
11
from .uid2_response import Uid2Response
12
13
BINARY = 'application/octet-stream'
14
+
15
def _make_url(base_url: str, path: str) -> str:
16
return base_url + path
17
18
19
def auth_headers(auth_key: str) -> Dict[str, str]:
20
try:
- version = pkg_resources.get_distribution("uid2_client").version
21
+ version = metadata.version("uid2_client")
22
except Exception:
23
version = "non-packaged-mode"
24
0 commit comments