Skip to content

Commit

Permalink
MRG: update to sourmash v4.8.13 (python package) (#583)
Browse files Browse the repository at this point in the history
* print out sourmash version

* MRG: update to require sourmash v4.8.13

* upd
  • Loading branch information
ctb authored Jan 11, 2025
1 parent e28c29a commit 609b2a1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ channels:
- bioconda
- defaults
dependencies:
- sourmash>=4.8.3,<5
- sourmash>=4.8.13,<5
- pip
- rust
- maturin>=1,<2
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ classifiers = [
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = ["sourmash>=4.8.10,<5"]
dependencies = ["sourmash>=4.8.13,<5"]

authors = [
{ name="N. Tessa Pierce-Ward", orcid="0000-0002-2942-5331" },
Expand Down
12 changes: 2 additions & 10 deletions src/python/tests/test_sketch.py
Original file line number Diff line number Diff line change
Expand Up @@ -1438,16 +1438,8 @@ def test_manysketch_skipm2n3(runtmp, capfd):
sigs = list(idx.signatures())
print(sigs)

# add in a version check so this works under latest release AND latest
# dev.
ver = sourmash.version("sourmash")
major, minor, micro = map(int, ver.split(".")[:3])
assert major == 4
assert minor >= 8
if "dev" in ver:
assert len(sigs) == 6 # 3 dna, 3 skipmer.
else:
assert len(sigs) == 3 # 3 dna, 3 skipmer but not recognized yet.
# note: requires sourmash v4.8.13 or later.
assert len(sigs) == 6 # 3 dna, 3 skipmer.

# check moltypes, etc!
dna_md5sums = {
Expand Down

0 comments on commit 609b2a1

Please sign in to comment.