Skip to content

Commit

Permalink
Use existing version.py file
Browse files Browse the repository at this point in the history
  • Loading branch information
bobleesj committed Oct 23, 2024
1 parent 47ddc42 commit f85d011
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/diffpy/pdfgui/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@
# 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 version
import os
import time
from importlib.metadata import distribution, version

# obtain version information
__date__ = time.ctime(os.path.getctime(distribution("diffpy.pdfgui")._path))
__version__ = version("diffpy.pdfgui")

# End of file

0 comments on commit f85d011

Please sign in to comment.