Commit 2cde768d authored by Alessio Berti's avatar Alessio Berti
Browse files

Automatic versioning.

parent e42a6347
Pipeline #116513 failed with stage
in 8 seconds
# Try to use setuptools_scm to get the current version; this is only used
# in development installations from the git repository.
# see ctapipe/version.py for details
try:
from setuptools_scm import get_version
version = get_version(root="..", relative_to=__file__)
except Exception as e:
raise ImportError(f"setuptools_scm broken or not installed: {e}")
# this is adapted from https://github.com/astropy/astropy/blob/master/astropy/version.py
# see https://github.com/astropy/astropy/pull/10774 for a discussion on why this needed.
try:
try:
from ._dev_version import version
except ImportError:
from ._version import version
except Exception:
import warnings
warnings.warn(
"Could not determine ctapipe_io_magic version; this indicates a broken installation."
" Install ctapipe_io_magic from PyPI, a local git repository or using "
" pip install https://gitlab.mpcdf.mpg.de/ievo/ctapipe_io_magic@VERSION "
" Installing github's autogenerated source release tarballs "
" does not include version information and should be avoided."
)
del warnings
version = "0.0.0"
__version__ = version
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment