Skip to content

Commit

Permalink
reduce version duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbachmann committed Jan 8, 2024
1 parent e1e3e54 commit 04f132c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/cydifflib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@

__author__ = "Max Bachmann"
__license__ = "MIT"
__version__ = "1.0.1"

import importlib.metadata

try:
__version__: str = importlib.metadata.version(__package__ or __name__)
except importlib.metadata.PackageNotFoundError:
__version__: str = "0.0.0"

from ._initialize import *

0 comments on commit 04f132c

Please sign in to comment.