Skip to content

Commit

Permalink
Merge branch 'topic/default/fix-version-fluidsim-core' into 'branch/d…
Browse files Browse the repository at this point in the history
…efault'

Fix version fluidsim_core

See merge request fluiddyn/fluidsim!399
  • Loading branch information
paugier committed Nov 25, 2024
2 parents d066187 + 95a2775 commit c19636f
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 c19636f

Please sign in to comment.