Skip to content

Commit 1e9087d

Browse files
nikitabelonogovJo Booth
andauthored
ci: Dynamic client wrapper version (#652)
Co-authored-by: Jo Booth <[email protected]>
1 parent ccd491b commit 1e9087d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/label_studio_sdk/core/client_wrapper.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44

55
from .http_client import AsyncHttpClient, HttpClient
66

7-
VERSION = "2.0.9"
7+
import importlib.metadata
8+
9+
try:
10+
VERSION = importlib.metadata.version("label-studio-sdk")
11+
except importlib.metadata.PackageNotFoundError:
12+
VERSION = "unknown"
813

914
class BaseClientWrapper:
1015
def __init__(

0 commit comments

Comments
 (0)