Skip to content

Commit

Permalink
Fix package version module
Browse files Browse the repository at this point in the history
  • Loading branch information
itziakos committed Aug 23, 2024
1 parent 64f932e commit 3ef551c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions okonomiyaki/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Copyright (c) 2013 by Enthought, Inc.
# All rights reserved.
try:
from ._version import (
version as __version__, version_info as __version_info__
)
except ImportError:
__version__ = "unknown"
__version_info__ = (0, 0, 0, "unknown", 0)
from ._version import version as __version__
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

HERE = Path(__file__).parent
version = (HERE / 'VERSION').read_text().strip()
filename = (HERE / 'okonomiyaki' / 'version.py').write_text(f'__version__ = "{version}"\n')
filename = (HERE / 'okonomiyaki' / '_version.py').write_text(f'__version__ = "{version}"\n')

setup()

0 comments on commit 3ef551c

Please sign in to comment.