Skip to content

Commit aae71a7

Browse files
authored
chore: dynamically set version using importlib.metadata (#1072)
1 parent 247fecd commit aae71a7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nemoguardrails/__init__.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"""NeMo Guardrails Toolkit."""
1717

1818
import os
19+
from importlib.metadata import version
1920

2021
# If no explicit value is set for TOKENIZERS_PARALLELISM, we disable it
2122
# to get rid of the annoying warning.
@@ -35,4 +36,5 @@
3536
"ignore", category=UserWarning, message="TypedStorage is deprecated"
3637
)
3738

38-
__version__ = "0.13.0"
39+
__version__ = version("nemoguardrails")
40+
__all__ = ["LLMRails", "RailsConfig"]

0 commit comments

Comments
 (0)