Skip to content

Commit

Permalink
Add _version.py file back, debugging dunamai build
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewcarbone committed Mar 1, 2024
1 parent ea3b684 commit b696b97
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
11 changes: 2 additions & 9 deletions gpax/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from gpax._version import __version__

from . import acquisition, kernels, utils
from .hypo import sample_next
from .models import (
Expand Down Expand Up @@ -42,12 +44,3 @@
"CoregGP",
"sample_next",
]

try:
# _version.py is only written dynamically during build time
from gpax._version import __version__
except ImportError:
import dunamai as _dunamai

__version__ = _dunamai.Version.from_any_vcs().serialize()
del _dunamai
7 changes: 7 additions & 0 deletions gpax/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"""Version file. This is overwritten during build and will contain a static
__version__ variable."""

import dunamai as _dunamai

__version__ = _dunamai.Version.from_any_vcs().serialize()
del _dunamai

0 comments on commit b696b97

Please sign in to comment.