From c513e54c90413508eb3388cb932de21bc6c7df6b Mon Sep 17 00:00:00 2001 From: Dimitrii Kutniakov Date: Tue, 28 Dec 2021 12:06:53 +0200 Subject: [PATCH] move __version__ to a separate module --- kuna/__init__.py | 2 +- kuna/kuna.py | 2 +- kuna/version.py | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 kuna/version.py diff --git a/kuna/__init__.py b/kuna/__init__.py index cb6419e..2fc19e5 100644 --- a/kuna/__init__.py +++ b/kuna/__init__.py @@ -1,8 +1,8 @@ # -*- coding: utf-8 -*- from .kuna import KunaAPI, APIError +from .version import __version__ """Top-level package for Kuna API wrapper.""" __author__ = """Dmytro Litvinov""" __email__ = "me@dmytrolitvinov.com" -__version__ = "0.4.1" diff --git a/kuna/kuna.py b/kuna/kuna.py index c6b82ac..33e59b2 100644 --- a/kuna/kuna.py +++ b/kuna/kuna.py @@ -9,7 +9,7 @@ from urllib.error import HTTPError from urllib.parse import urlencode from typing import Union, List -from kuna import __version__ +from .version import __version__ class APIError(Exception): diff --git a/kuna/version.py b/kuna/version.py new file mode 100644 index 0000000..3d26edf --- /dev/null +++ b/kuna/version.py @@ -0,0 +1 @@ +__version__ = "0.4.1"