diff --git a/packaging/bioconda/meta.yaml b/packaging/bioconda/meta.yaml index 64de0de..72e79ad 100644 --- a/packaging/bioconda/meta.yaml +++ b/packaging/bioconda/meta.yaml @@ -11,11 +11,14 @@ source: build: number: 0 + run_exports: + - {{ pin_subpackage('fastaguard', max_pin="x.x") }} requirements: build: - {{ compiler('rust') }} - {{ compiler('c') }} + - {{ stdlib('c') }} - cargo-bundle-licenses test: diff --git a/tests/python/test_release_metadata.py b/tests/python/test_release_metadata.py index 57e733a..a23c298 100644 --- a/tests/python/test_release_metadata.py +++ b/tests/python/test_release_metadata.py @@ -35,6 +35,13 @@ def test_bioconda_recipe_avoids_unneeded_runtime_zlib(self): self.assertNotIn(" - zlib", recipe) + def test_bioconda_recipe_includes_required_lint_metadata(self): + recipe = (ROOT / "packaging" / "bioconda" / "meta.yaml").read_text() + + self.assertIn("run_exports:", recipe) + self.assertIn('{{ pin_subpackage(\'fastaguard\', max_pin="x.x") }}', recipe) + self.assertIn("{{ stdlib('c') }}", recipe) + def test_bioconda_build_script_uses_portable_install(self): script = (ROOT / "packaging" / "bioconda" / "build.sh").read_text()