Skip to content

Commit

Permalink
Merge pull request #28 from kuffmode/Release-1.7
Browse files Browse the repository at this point in the history
Release 1.7.1
  • Loading branch information
kuffmode authored Mar 20, 2024
2 parents 19db365 + 2359091 commit 8ff6d0b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
12 changes: 2 additions & 10 deletions msapy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
from msapy import msa, utils, checks
import toml
import os

package_dir = os.path.abspath(os.path.dirname(__file__))
pyproject_path = os.path.join(package_dir, "..", "pyproject.toml")

try:
__version__ = toml.load(pyproject_path)["tool"]["poetry"]["version"]
except Exception as e:
__version__ = "unknown"
print(f"Warning: Could not load version from pyproject.toml: {e}")
__all__ = ["msa", "utils", "checks"]
__version__ = "1.7.1"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "msapy"
version = "1.7"
version = "1.7.1"
description = "Multi-perturbation Shapley value Analysis (MSA)"
homepage = "https://github.com/kuffmode/msa"
repository = "https://github.com/kuffmode/msa"
Expand Down
5 changes: 5 additions & 0 deletions tests/test_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import toml
import msapy

def test_version():
assert msapy.__version__ == toml.load("pyproject.toml")["tool"]["poetry"]["version"]

0 comments on commit 8ff6d0b

Please sign in to comment.