From e0f6a636aedcb44c6ae24d56e72a4202cfd54fcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniele=20Trifir=C3=B2?= Date: Mon, 2 Oct 2023 15:26:48 +0200 Subject: [PATCH] add __version__ and __version_tuple__ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniele Trifirò --- .gitignore | 1 + caikit_nlp/__init__.py | 1 + pyproject.toml | 1 + 3 files changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 4ff0e0cbb..d855873a1 100644 --- a/.gitignore +++ b/.gitignore @@ -166,3 +166,4 @@ prompt_prefixes sample_prompt transformers_cache generated_interfaces +/caikit_nlp/_version.py diff --git a/caikit_nlp/__init__.py b/caikit_nlp/__init__.py index 0c9c020f6..4f71857a9 100644 --- a/caikit_nlp/__init__.py +++ b/caikit_nlp/__init__.py @@ -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( diff --git a/pyproject.toml b/pyproject.toml index 7719c2c6f..7e1879f43 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"