Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 1.7 #28

Merged
merged 2 commits into from
Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"]
Loading