Skip to content

Commit

Permalink
Fix version imports and versioningit setup.
Browse files Browse the repository at this point in the history
Fix version and add test
  • Loading branch information
hmacdope authored Aug 5, 2024
2 parents c18b034 + 3a04c55 commit 0e06eda
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 105 deletions.
3 changes: 3 additions & 0 deletions mtenn/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
"""Modular Training and Evaluation of Neural Networks"""

from importlib.metadata import version
__version__ = version("mtenn")
1 change: 0 additions & 1 deletion mtenn/_version.py

This file was deleted.

97 changes: 0 additions & 97 deletions mtenn/_version_git.py

This file was deleted.

4 changes: 4 additions & 0 deletions mtenn/tests/test_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import mtenn

def test_version():
assert mtenn.__version__
9 changes: 2 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ dirty = "{base_version}+{distance}.{vcs}{rev}.dirty"
distance-dirty = "{base_version}+{distance}.{vcs}{rev}.dirty"

[tool.versioningit.vcs]
# The method key:
method = "git" # <- The method name
# Parameters to pass to the method:
method = "git"
match = ["*"]
default-tag = "0.0.0"

[tool.versioningit.write]
file = "mtenn/_version.py"
default-tag = "0.0.0"

0 comments on commit 0e06eda

Please sign in to comment.