From aa4165eb232b26aa76873212ea90fce5fc98541f Mon Sep 17 00:00:00 2001 From: "David H. Hagan" Date: Sun, 4 Sep 2022 17:43:51 -0400 Subject: [PATCH] Updated version getting method --- poetry.lock | 9 +++++---- quantaq/__init__.py | 8 ++------ 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/poetry.lock b/poetry.lock index 0fa3a28..7432846 100644 --- a/poetry.lock +++ b/poetry.lock @@ -168,14 +168,15 @@ test = ["hypothesis (>=5.5.3)", "pytest (>=6.0)", "pytest-xdist (>=1.31)"] [[package]] name = "pluggy" -version = "0.13.1" +version = "1.0.0" description = "plugin and hook calling mechanisms for python" category = "dev" optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +python-versions = ">=3.6" [package.extras] dev = ["pre-commit", "tox"] +testing = ["pytest", "pytest-benchmark"] [[package]] name = "py" @@ -695,8 +696,8 @@ pandas = [ {file = "pandas-1.4.4.tar.gz", hash = "sha256:ab6c0d738617b675183e5f28db32b5148b694ad9bba0a40c3ea26d96b431db67"}, ] pluggy = [ - {file = "pluggy-0.13.1-py2.py3-none-any.whl", hash = "sha256:966c145cd83c96502c3c3868f50408687b38434af77734af1e9ca461a4081d2d"}, - {file = "pluggy-0.13.1.tar.gz", hash = "sha256:15b2acde666561e1298d71b523007ed7364de07029219b604cf808bfa1c765b0"}, + {file = "pluggy-1.0.0-py2.py3-none-any.whl", hash = "sha256:74134bbf457f031a36d68416e1509f34bd5ccc019f0bcc952c7b909d06b37bd3"}, + {file = "pluggy-1.0.0.tar.gz", hash = "sha256:4224373bacce55f955a878bf9cfa763c1e360858e330072059e10bad68531159"}, ] py = [ {file = "py-1.11.0-py2.py3-none-any.whl", hash = "sha256:607c53218732647dff4acdfcd50cb62615cedf612e72d1724fb1a0cc6405b378"}, diff --git a/quantaq/__init__.py b/quantaq/__init__.py index 89ce63b..4c2ce19 100644 --- a/quantaq/__init__.py +++ b/quantaq/__init__.py @@ -1,12 +1,8 @@ # -*- coding: utf-8 -*- -try: - from importlib_metadata import version -except ImportError: - from importlib.metadata import version - +from pkg_resources import get_distribution import quantaq -__version__ = version("py-quantaq") +__version__ = get_distribution("py-quantaq").version from .client import ( ClientBase,