Skip to content

Commit

Permalink
Fix version fluidsim_core
Browse files Browse the repository at this point in the history
  • Loading branch information
paugier committed Nov 22, 2024
1 parent d066187 commit 95a2775
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 9 additions & 1 deletion lib/fluidsim_core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,12 @@
"""

from ._version import __version__

def __getattr__(name):
if name == "__version__":

from importlib import metadata

return metadata.version(__package__)

raise AttributeError(f"module '{__name__}' has no attribute '{name}'")
1 change: 0 additions & 1 deletion lib/fluidsim_core/_version.py

This file was deleted.

0 comments on commit 95a2775

Please sign in to comment.