Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packaging/bioconda/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package:

source:
url: https://github.com/ehsanestaji/FastaGuard/archive/refs/tags/v{{ version }}.tar.gz
sha256: REPLACE_WITH_PUBLIC_SOURCE_ARCHIVE_SHA256
sha256: 10a5520e54d7e7884aa4cdfec5108cd7183c6033053e7839f969b9dcd9d73a17

build:
number: 0
Expand Down
8 changes: 8 additions & 0 deletions tests/python/test_release_metadata.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import re
import tomllib
import unittest
from pathlib import Path
Expand All @@ -22,6 +23,13 @@ def test_v0_1_1_release_notes_exist(self):
self.assertIn("FastaGuard v0.1.1", text)
self.assertIn("packaging metadata", text)

def test_bioconda_recipe_sha256_is_real_hash(self):
recipe = (ROOT / "packaging" / "bioconda" / "meta.yaml").read_text()

match = re.search(r"sha256: ([a-f0-9]{64})", recipe)
self.assertIsNotNone(match, recipe)
self.assertNotIn("REPLACE_WITH_PUBLIC_SOURCE_ARCHIVE_SHA256", recipe)


if __name__ == "__main__":
unittest.main()