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/ for details
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
# see for a discussion on why this needed.
from ._dev_version import version
except ImportError:
from ._version import version
except Exception:
import warnings
"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 "
" 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