Skip to content

Commit aa4165e

Browse files
committed
Updated version getting method
1 parent 74d0afb commit aa4165e

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

poetry.lock

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

quantaq/__init__.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
# -*- coding: utf-8 -*-
2-
try:
3-
from importlib_metadata import version
4-
except ImportError:
5-
from importlib.metadata import version
6-
2+
from pkg_resources import get_distribution
73
import quantaq
84

9-
__version__ = version("py-quantaq")
5+
__version__ = get_distribution("py-quantaq").version
106

117
from .client import (
128
ClientBase,

0 commit comments

Comments
 (0)