Skip to content

Commit

Permalink
Now correctly import __version__ in the global namespace of eessi/tes…
Browse files Browse the repository at this point in the history
…tsuite/__init__.py
  • Loading branch information
Caspar van Leeuwen committed Sep 20, 2024
1 parent 3c2f0c6 commit 04ca0ca
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions eessi/testsuite/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
from importlib.metadata import version, PackageNotFoundError
# If this is an installed package, setuptools_scm should have written the file _version.py in the current directory
try:
print("try importing version")
from _version import __version__
from ._version import __version__
except ImportError:
# Fallback for when the package is not installed, but git cloned. Note that this requires setuptools_scm to be
# available as a runtime dependency
Expand Down

0 comments on commit 04ca0ca

Please sign in to comment.