refactor: improve version handling fallback in __init__.py

This commit is contained in:
Paul Gauthier 2024-08-31 16:58:56 -07:00 committed by Paul Gauthier (aider)
parent c487683010
commit 9f7783e8dc

View file

@ -3,4 +3,9 @@ from setuptools_scm import get_version
try:
__version__ = get_version(root="..", relative_to=__file__)
except Exception:
from aider.__version__ import __version__
try:
from aider.__version__ import __version__
except Exception:
__version__ = "0.0.0"
__all__ = [__version__]