Skip to content

Commit b39a444

Browse files
authored
Merge pull request #19 from quant-aq/dhhagan-fix-version
Updated version getting method
2 parents 7973297 + aa4165e commit b39a444

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)