-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathversion.py
More file actions
26 lines (23 loc) · 947 Bytes
/
version.py
File metadata and controls
26 lines (23 loc) · 947 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env python
##############################################################################
#
# (c) 2026 The Trustees of Columbia University in the City of New York.
# All rights reserved.
#
# File coded by: Chris Farrow, Pavol Juhas, Simon Billinge, Billinge Group members.
#
# See GitHub contributions for a more detailed list of contributors.
# https://github.com/diffpy/diffpy.structure/graphs/contributors # noqa: E501
#
# See LICENSE.rst for license information.
#
##############################################################################
"""Definition of __version__."""
# We do not use the other three variables, but can be added back if needed.
# __all__ = ["__date__", "__git_commit__", "__timestamp__", "__version__"]
# obtain version information
from importlib.metadata import PackageNotFoundError, version
try:
__version__ = version("diffpy.structure")
except PackageNotFoundError:
__version__ = "unknown"