Skip to content

Commit

Permalink
add auto-version to setup; v0.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderVNikitin committed Mar 24, 2024
1 parent af53e5d commit b90e021
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
import os
from setuptools import setup
from setuptools import find_packages


# Function to read version from __version__.py
def get_version():
with open(os.path.join(os.path.dirname(__file__), 'tsgm/version.py')) as f:
exec(f.read())
return locals()['__version__']


name = "tsgm"
version = get_version()

keywords = [
"machine learning",
Expand Down Expand Up @@ -44,7 +53,7 @@ def read_file(filename: str) -> str:


setup(name='tsgm',
version='0.0.4',
version=version,
description='Time Series Generative Modelling Framework',
author=author,
author_email='',
Expand Down
2 changes: 1 addition & 1 deletion tsgm/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0.4"
__version__ = "0.0.5"

0 comments on commit b90e021

Please sign in to comment.