Skip to content

Commit

Permalink
Switch to versioningit (#53)
Browse files Browse the repository at this point in the history
* switch to versioningit
* add version import test
  • Loading branch information
IAlibay authored Nov 9, 2023
1 parent b47ed65 commit d6bd97b
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 2,357 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/gh-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,15 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Build information
run: |
uname -a
df -h
ulimit -a
# More info on options: https://github.com/conda-incubator/setup-miniconda
- name: Install conda dependencies
uses: conda-incubator/setup-miniconda@v2
Expand Down Expand Up @@ -101,6 +102,9 @@ jobs:
conda info
conda list
- name: Test imports
run: |
python -Ic "import mdaencore; print(mdaencore.__version__)"
- name: Run tests
run: |
Expand Down
4 changes: 4 additions & 0 deletions mdaencore/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
"""\
Structural ensemble analysis package.
"""
from importlib.metadata import version

__version__ = version("mdaencore")

from .similarity import hes, ces, dres, \
ces_convergence, dres_convergence

Expand Down
Loading

0 comments on commit d6bd97b

Please sign in to comment.