-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from kuffmode/Release-1.7
Release 1.7.1
- Loading branch information
Showing
3 changed files
with
8 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |