From c8bef7350819884b97fba6cb3ef32c22fdf418f8 Mon Sep 17 00:00:00 2001 From: Alexander Nikitin <1243786+AlexanderVNikitin@users.noreply.github.com> Date: Thu, 14 Mar 2024 16:53:56 +0200 Subject: [PATCH] add version file --- docs/conf.py | 2 +- tests/test_utils.py | 4 ++++ tsgm/__init__.py | 2 ++ tsgm/version.py | 1 + 4 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 tsgm/version.py diff --git a/docs/conf.py b/docs/conf.py index f3ed874..13cf9bd 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -50,7 +50,7 @@ author = 'Alexander Nikitin' # The full version, including alpha/beta/rc tags -release = "0.0.0" +release = tsgm.__version__ default_role = "any" # try and turn all `` into links add_module_names = False # Remove namespaces from class/method signatures diff --git a/tests/test_utils.py b/tests/test_utils.py index 81e8624..bdc0562 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -348,3 +348,7 @@ def test_extract_targz(): tar.add(resource_folder, arcname=os.path.basename(resource_folder)) tsgm.utils.file_utils._extract_targz(output_filename, extracted_path) assert os.path.isdir(extracted_path) + + +def test_version(): + assert isinstance(tsgm.__version__, str) diff --git a/tsgm/__init__.py b/tsgm/__init__.py index 88f1465..5c7e246 100644 --- a/tsgm/__init__.py +++ b/tsgm/__init__.py @@ -5,3 +5,5 @@ import tsgm.models import tsgm.metrics import tsgm.optimization + +from tsgm.version import __version__ diff --git a/tsgm/version.py b/tsgm/version.py new file mode 100644 index 0000000..221ce5d --- /dev/null +++ b/tsgm/version.py @@ -0,0 +1 @@ +__version__ = "0.0.4" \ No newline at end of file