| Total Complexity | 0 |
| Total Lines | 10 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | # Try to use setuptools_scm to get the current version; this is only used |
||
| 2 | # in development installations from the git repository. |
||
| 3 | # see ctapipe/version.py for details |
||
| 4 | try: |
||
| 5 | from setuptools_scm import get_version |
||
| 6 | |||
| 7 | version = get_version(root="../..", relative_to=__file__) # pragma: no cover |
||
| 8 | except Exception as e: # pragma: no cover |
||
| 9 | raise ImportError(f"setuptools_scm broken or not installed: {e}") from e |
||
| 10 |