Skip to content

Commit

Permalink
Merge pull request #206 from scipp/fix-namespace-version
Browse files Browse the repository at this point in the history
fix: rewrite string to match package name
  • Loading branch information
jokasimr authored Sep 5, 2024
2 parents caf9a65 + 8067888 commit 16e86e6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import importlib.metadata

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

Expand Down

0 comments on commit 16e86e6

Please sign in to comment.