Skip to content

Commit

Permalink
BUG: Fix setuptools_scm version writing (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner authored Apr 6, 2023
1 parent fa53238 commit 9f88d8c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,4 @@ dmypy.json

*.orig
junit-results.xml
mne_qt_browser/_version.py
9 changes: 8 additions & 1 deletion mne_qt_browser/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
from ._version import __version__ # noqa
try:
from importlib.metadata import version
__version__ = version("mne_qt_browser")
except Exception:
try:
from ._version import __version__ # written by setuptools_scm
except ImportError:
__version__ = '0.0.0'

# All created brower-instances are listed here for a reference to avoid having
# them garbage-collected prematurely.
Expand Down
10 changes: 0 additions & 10 deletions mne_qt_browser/_version.py

This file was deleted.

0 comments on commit 9f88d8c

Please sign in to comment.