diff --git a/packaging/bioconda/meta.yaml b/packaging/bioconda/meta.yaml index cea5ce0..fed1d4f 100644 --- a/packaging/bioconda/meta.yaml +++ b/packaging/bioconda/meta.yaml @@ -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 diff --git a/tests/python/test_release_metadata.py b/tests/python/test_release_metadata.py index 605318e..f89e8c9 100644 --- a/tests/python/test_release_metadata.py +++ b/tests/python/test_release_metadata.py @@ -1,3 +1,4 @@ +import re import tomllib import unittest from pathlib import Path @@ -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()