Skip to content

Commit

Permalink
add version file
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderVNikitin committed Mar 14, 2024
1 parent 127dd64 commit c8bef73
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 2 additions & 0 deletions tsgm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@
import tsgm.models
import tsgm.metrics
import tsgm.optimization

from tsgm.version import __version__
1 change: 1 addition & 0 deletions tsgm/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "0.0.4"

0 comments on commit c8bef73

Please sign in to comment.