Skip to content

Commit

Permalink
Add version function
Browse files Browse the repository at this point in the history
  • Loading branch information
kjsanger committed Nov 6, 2024
1 parent 9b42044 commit cd65999
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/npg/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import importlib.metadata

__version__ = importlib.metadata.version("npg-python-lib")


def version() -> str:
"""Return the current version."""
return __version__

0 comments on commit cd65999

Please sign in to comment.