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
5 changes: 3 additions & 2 deletions packaging/bioconda/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ cargo-bundle-licenses --format yaml --output THIRDPARTY.yml
cargo install -v --locked --no-track --root "${PREFIX}" --path .
rm -f "${PREFIX}/.crates.toml" "${PREFIX}/.crates2.json"

install -Dm644 schema/fastaguard.schema.json \
mkdir -p "${PREFIX}/share/${PKG_NAME}/schema"
install -m644 schema/fastaguard.schema.json \
"${PREFIX}/share/${PKG_NAME}/schema/fastaguard.schema.json"
install -Dm644 schema/finding-catalog.json \
install -m644 schema/finding-catalog.json \
"${PREFIX}/share/${PKG_NAME}/schema/finding-catalog.json"
4 changes: 0 additions & 4 deletions packaging/bioconda/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ requirements:
- {{ compiler('rust') }}
- {{ compiler('c') }}
- cargo-bundle-licenses
host:
- zlib
run:
- zlib

test:
commands:
Expand Down
11 changes: 11 additions & 0 deletions tests/python/test_release_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,17 @@ def test_bioconda_recipe_sha256_is_real_hash(self):
self.assertIsNotNone(match, recipe)
self.assertNotIn("REPLACE_WITH_PUBLIC_SOURCE_ARCHIVE_SHA256", recipe)

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

self.assertNotIn(" - zlib", recipe)

def test_bioconda_build_script_uses_portable_install(self):
script = (ROOT / "packaging" / "bioconda" / "build.sh").read_text()

self.assertIn('mkdir -p "${PREFIX}/share/${PKG_NAME}/schema"', script)
self.assertNotIn("install -D", script)


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