Skip to content

Commit 1ae2926

Browse files
committed
version.py
1 parent e39f943 commit 1ae2926

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

src/diffpy/labpdfproc/version.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
#!/usr/bin/env python
22
##############################################################################
33
#
4-
# (c) 2024 The Trustees of Columbia University in the City of New York.
4+
# (c) 2024-2025, The Trustees of Columbia University in the City of New York.
55
# All rights reserved.
66
#
7-
# File coded by: Billinge Group members and community contributors.
7+
# (c) 2026-present, diffpy.labpdfproc developers and contributors.
8+
# All rights reserved.
9+
#
10+
# File coded by: Yucong Chen, Till Schertenleib, Caden Myers,
11+
# Billinge Group members.
812
#
913
# See GitHub contributions for a more detailed list of contributors.
1014
# https://github.com/diffpy/diffpy.labpdfproc/graphs/contributors
@@ -18,8 +22,9 @@
1822
# __all__ = ["__date__", "__git_commit__", "__timestamp__", "__version__"]
1923

2024
# obtain version information
21-
from importlib.metadata import version
22-
23-
__version__ = version("diffpy.labpdfproc")
25+
from importlib.metadata import PackageNotFoundError, version
2426

25-
# End of file
27+
try:
28+
__version__ = version("diffpy.labpdfproc")
29+
except PackageNotFoundError:
30+
__version__ = "unknown"

0 commit comments

Comments
 (0)