Skip to content

Commit

Permalink
Fix version
Browse files Browse the repository at this point in the history
  • Loading branch information
james77777778 committed May 16, 2024
1 parent afc0da6 commit 838728b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion api_gen.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import namex

from kimm._src.version import __version__

namex.generate_api_files(package="kimm", code_directory="_src")

# Add version string

with open("kimm/__init__.py", "r") as f:
contents = f.read()
with open("kimm/__init__.py", "w") as f:
contents += "from kimm._src.version import __version__\n"
contents += f'__version__ = "{__version__}"\n'
f.write(contents)
3 changes: 2 additions & 1 deletion kimm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
from kimm import timm_utils
from kimm import utils
from kimm._src.utils.model_registry import list_models
from kimm._src.version import __version__
from kimm._src.version import version

__version__ = "0.2.0"

0 comments on commit 838728b

Please sign in to comment.