Skip to content

Commit

Permalink
Merge pull request #677 from DaddyWesker/main
Browse files Browse the repository at this point in the history
remove _version.py to prevent setuptools from failing
  • Loading branch information
vsbogd authored Apr 25, 2024
2 parents fbc5b5f + c391b76 commit 6bf143e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
10 changes: 5 additions & 5 deletions python/hyperon/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from .atoms import *
from .base import *
from .runner import *
from ._version import __version__ as _ver

if _ver is None:
try:
from ._version import __version__ as _ver
__version__ = _ver
except Exception:
from pathlib import Path
path = Path(__file__).parent / "../VERSION"
with path.open() as f: ver = f.read().splitlines()[0].split("'")[1]
__version__ = ver + "+localbuild"
else:
__version__ = _ver
__version__ = ver + "+localbuild"
1 change: 0 additions & 1 deletion python/hyperon/_version.py

This file was deleted.

0 comments on commit 6bf143e

Please sign in to comment.