Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions qlib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@
# Licensed under the MIT License.
from pathlib import Path

from setuptools_scm import get_version

__version__ = get_version(root="..", relative_to=__file__)
try:
from setuptools_scm import get_version
__version__ = get_version(root="..", relative_to=__file__)
except (LookupError, ImportError):
# Fallback version when setuptools_scm fails
__version__ = "1.0.0.dev"
__version__bak = __version__ # This version is backup for QlibConfig.reset_qlib_version
import logging
import os
Expand Down
Loading