Skip to content

Commit

Permalink
Fix dependency issue blocking pdm test
Browse files Browse the repository at this point in the history
  • Loading branch information
pvandyken committed Sep 22, 2023
1 parent 3e424a8 commit 8f377fe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ requires-python = ">=3.8,<3.12"
dependencies = [
"snakemake >= {{ snakemake_version }}",
"snakebids >= {{ snakebids_version }}",
{# Explicitely specify numpy version for py38 until snakebids 0.10.x to
work around specification bug causing numpys too high for py38 to be
locked by pdm -#}
"numpy <=1.24.4; python_version < \"3.9\"",
]

[project.scripts]
Expand Down
8 changes: 7 additions & 1 deletion snakebids/tests/test_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,12 @@ def test_template_dry_runs_successfully(tmp_path: Path, build: BuildSystems, ven
app_name,
],
capture_output=True,
check=True,
check=False,
)
try:
cmd.check_returncode()
except Exception as err:
print(cmd.stdout)
print(cmd.stderr, file=sys.stderr)
raise err
assert "All set" in cmd.stdout.decode()

0 comments on commit 8f377fe

Please sign in to comment.