Skip to content

Commit

Permalink
Merge branch 'add_PoreAnalyser_to_MDKits' of https://github.com/DSeif…
Browse files Browse the repository at this point in the history
…erth/MDAKits into add_PoreAnalyser_to_MDKits
  • Loading branch information
DSeiferth committed Oct 16, 2024
2 parents 5f2cd3d + 37c3481 commit 79fad3c
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gh-ci-cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
runs-on: ubuntu-latest
outputs:
python-stable: ${{ steps.get-compatible-python.outputs.stable-python }}
python-min: ${{ steps.get-compatible-python.outputs.oldest-pythons }}
python-min: ${{ steps.get-compatible-python.outputs.oldest-python }}

steps:
- uses: actions/setup-python@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gh-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
runs-on: ubuntu-latest
outputs:
python-stable: ${{ steps.get-compatible-python.outputs.stable-python }}
python-min: ${{ steps.get-compatible-python.outputs.oldest-pythons }}
python-min: ${{ steps.get-compatible-python.outputs.oldest-python }}
steps:
- uses: actions/setup-python@v4
with:
Expand Down
2 changes: 2 additions & 0 deletions docs/source/reviewersguide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ is failing
``test_dependencies``: a list of commands for installing any dependencies required by the MDAKit’s tests.
This is a *list of strings* (*AUTOMATIC CHECK*).

- *note* : care should be taken to to override the underlying ``mamba`` environment. For example, this should _not_ attempt to do a ``mamba env update`` call as it will overwrite the base mamba environment and one ends up with a conda environment without the base mdakit dependencies.



*Optional* entries
Expand Down
2 changes: 1 addition & 1 deletion mdakits/lipyds/status.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ develop:
install_mdanalysis: true
install_python: true
install_test_deps: true
numfails: 60
numfails: 66
run_tests: false
latest:
install_mdakit: true
Expand Down
4 changes: 2 additions & 2 deletions mdakits/mda-tui/status.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ develop:
install_mdanalysis: true
install_python: true
install_test_deps: true
numfails: 10
numfails: 16
run_tests: false
latest:
install_mdakit: true
install_mdanalysis: true
install_python: true
install_test_deps: true
numfails: 10
numfails: 16
run_tests: false
4 changes: 2 additions & 2 deletions mdakits/propkatraj/status.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ latest:
install_mdanalysis: true
install_python: true
install_test_deps: true
numfails: 22
run_tests: false
numfails: 0
run_tests: true
2 changes: 1 addition & 1 deletion mdakits/zarrtraj/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ run_tests:
## The default below _might_ be sufficient or you might not even need MDAnalysisTests:
## make sure that it is appropriate for how you run tests.
test_dependencies:
- mamba env update --file https://raw.githubusercontent.com/Becksteinlab/zarrtraj/main/devtools/conda-envs/test_env.yaml --name test
- mamba install "moto[server]>=5.0.3"

## str: the organisation name the MDAKit falls under
project_org: Becksteinlab
Expand Down
6 changes: 4 additions & 2 deletions utils/mdakit.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,11 @@ def get_matching_version(self, max_ver: str = "3.11", min_ver: str = "3.8",

while (current_version.to_version() >= min_version.to_version()):
for spec in pin_specifiers:
# Fetch the pin version string and convert it for comparison
pin_ver = version.TargetVersion.from_str(spec.version)
compatible_version = version._operators[spec.operator](
current_version.to_string(),
spec.version,
current_version.to_version(),
pin_ver.to_version(),
)

if compatible_version:
Expand Down

0 comments on commit 79fad3c

Please sign in to comment.