Skip to content

Commit

Permalink
add __version__ and __version_tuple__
Browse files Browse the repository at this point in the history
Signed-off-by: Daniele Trifirò <dtrifiro@redhat.com>
  • Loading branch information
dtrifiro committed Oct 2, 2023
1 parent a3f6d05 commit e0f6a63
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -166,3 +166,4 @@ prompt_prefixes
sample_prompt
transformers_cache
generated_interfaces
/caikit_nlp/_version.py
1 change: 1 addition & 0 deletions caikit_nlp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
from .data_model import *
from .modules import *
from .resources import *
from .version import __version__, __version_tuple__

# Configure the library with library-specific configuration file
CONFIG_PATH = os.path.realpath(
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ dependencies = [
packages = ["caikit_nlp"]

[tool.setuptools_scm]
version_file = "caikit_nlp/_version.py"

[project.urls]
Source = "https://github.com/caikit/caikit-nlp"

0 comments on commit e0f6a63

Please sign in to comment.