Skip to content

Commit

Permalink
version from toml
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefandinno committed Dec 12, 2024
1 parent ac9a76c commit f5b5ad1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/eclingo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@

import importlib.metadata

__version__ = importlib.metadata.version("eclingo")
try:
__version__ = importlib.metadata.version("eclingo")
except Exception:
__version__ = "0.0.0"

if __version__ == None:
if __version__ is None:
__version__ = "0.0.0"

0 comments on commit f5b5ad1

Please sign in to comment.