From 3d8c014c3ff19b93dd3d22747cc279376ac04b30 Mon Sep 17 00:00:00 2001 From: Antonio Camargo Date: Tue, 10 Dec 2024 20:41:00 -0300 Subject: [PATCH 01/17] Add needletail --- recipes/needletail/build.sh | 9 +++++++ recipes/needletail/meta.yaml | 46 ++++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 recipes/needletail/build.sh create mode 100644 recipes/needletail/meta.yaml diff --git a/recipes/needletail/build.sh b/recipes/needletail/build.sh new file mode 100644 index 0000000000000..d865cead7e760 --- /dev/null +++ b/recipes/needletail/build.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +set -ex + +# Build wheel and write to `dist` +maturin build --interpreter "${PYTHON}" --features python --release --strip --out dist + +# Install Python library +${PYTHON} -m pip install dist/*.whl --no-deps --no-build-isolation --no-cache-dir -vvv diff --git a/recipes/needletail/meta.yaml b/recipes/needletail/meta.yaml new file mode 100644 index 0000000000000..5a29884cacbc0 --- /dev/null +++ b/recipes/needletail/meta.yaml @@ -0,0 +1,46 @@ +{% set name = "needletail" %} +{% set version = "0.6.1" %} +{% set sha256 = "58c1e04fc706060192fa2669327d45ebad1ab99fb15f73f2e040e4f8b1d051d9" %} + +package: + name: {{ name|lower }} + version: {{ version }} + +source: + url: https://github.com/onecodex/{{ name }}/archive/refs/tags/v{{ version }}.tar.gz + sha256: {{ sha256 }} + +build: + number: 0 + run_exports: + - {{ pin_subpackage(name|lower, max_pin="x.x") }} + +requirements: + build: + - {{ compiler("c") }} + - {{ compiler("rust") }} + host: + - pip + - maturin >=0.14,<0.15 + - python + run: + - python + +test: + imports: + - needletail + commands: + - python test_python.py + +about: + home: https://github.com/onecodex/needletail + license: MIT + license_family: MIT + summary: Fast FASTX parsing in Python + license_file: LICENSE + dev_url: https://github.com/onecodex/needletail + +extra: + additional-platforms: + - linux-aarch64 + - osx-arm64 From 4c861bd243c34c9641d89a8baee910a34a304410 Mon Sep 17 00:00:00 2001 From: Antonio Camargo Date: Tue, 10 Dec 2024 20:57:37 -0300 Subject: [PATCH 02/17] Add test file --- recipes/needletail/meta.yaml | 2 +- recipes/needletail/test.py | 96 ++++++++++++++++++++++++++++++++++++ 2 files changed, 97 insertions(+), 1 deletion(-) create mode 100644 recipes/needletail/test.py diff --git a/recipes/needletail/meta.yaml b/recipes/needletail/meta.yaml index 5a29884cacbc0..dd958a134964c 100644 --- a/recipes/needletail/meta.yaml +++ b/recipes/needletail/meta.yaml @@ -30,7 +30,7 @@ test: imports: - needletail commands: - - python test_python.py + - python test.py about: home: https://github.com/onecodex/needletail diff --git a/recipes/needletail/test.py b/recipes/needletail/test.py new file mode 100644 index 0000000000000..6d2bf4de502af --- /dev/null +++ b/recipes/needletail/test.py @@ -0,0 +1,96 @@ +import unittest + +from needletail import parse_fastx_file, parse_fastx_string, NeedletailError, reverse_complement, normalize_seq + + +FASTA_FILE = "./tests/data/test.fa" +FASTQ_FILE = "./tests/specimen/FASTQ/example.fastq" + + +class ParsingTestCase(unittest.TestCase): + def get_fasta_reader(self): + return parse_fastx_file(FASTA_FILE) + + def get_fastq_reader(self): + return parse_fastx_file(FASTQ_FILE) + + def test_can_parse_fasta_file(self): + for i, record in enumerate(self.get_fasta_reader()): + if i == 0: + self.assertEqual(record.id, "test") + self.assertEqual(record.seq, "AGCTGATCGA") + self.assertIsNone(record.qual) + record.normalize(iupac=False) + self.assertEqual(record.seq, "AGCTGATCGA") + self.assertTrue(record.is_fasta()) + if i == 1: + self.assertEqual(record.id, "test2") + self.assertEqual(record.seq, "TAGC") + self.assertIsNone(record.qual) + record.normalize(iupac=False) + self.assertEqual(record.seq, "TAGC") + self.assertTrue(record.is_fasta()) + + self.assertTrue(i <= 1) + + def test_can_parse_fastq_file(self): + for i, record in enumerate(self.get_fastq_reader()): + if i == 0: + self.assertEqual(record.id, "EAS54_6_R1_2_1_413_324") + self.assertEqual(record.seq, "CCCTTCTTGTCTTCAGCGTTTCTCC") + self.assertEqual(record.qual, ";;3;;;;;;;;;;;;7;;;;;;;88") + record.normalize(iupac=False) + self.assertEqual(record.seq, "CCCTTCTTGTCTTCAGCGTTTCTCC") + self.assertTrue(record.is_fastq()) + if i == 1: + self.assertEqual(record.id, "EAS54_6_R1_2_1_540_792") + self.assertEqual(record.seq, "TTGGCAGGCCAAGGCCGATGGATCA") + self.assertEqual(record.qual, ";;;;;;;;;;;7;;;;;-;;;3;83") + record.normalize(iupac=False) + self.assertEqual(record.seq, "TTGGCAGGCCAAGGCCGATGGATCA") + self.assertTrue(record.is_fastq()) + + self.assertTrue(i <= 2) + + +class ParsingStrTestCase(ParsingTestCase): + def get_fasta_reader(self): + with open(FASTA_FILE) as f: + content = f.read() + return parse_fastx_string(content) + + def get_fastq_reader(self): + with open(FASTQ_FILE) as f: + content = f.read() + return parse_fastx_string(content) + + +class MiscelleanousTestCase(unittest.TestCase): + def test_normalize_seq(self): + self.assertEqual(normalize_seq("ACGTU", iupac=False), "ACGTT") + self.assertEqual(normalize_seq("acgtu", iupac=False), "ACGTT") + self.assertEqual(normalize_seq("N.N-N~N N", iupac=False), "N-N-N-NN") + self.assertEqual(normalize_seq("BDHVRYSWKM", iupac=True), "BDHVRYSWKM") + self.assertEqual(normalize_seq("bdhvryswkm", iupac=True), "BDHVRYSWKM") + + def test_reverse_complement(self): + self.assertEqual(reverse_complement("a"), "t") + self.assertEqual(reverse_complement("c"), "g") + self.assertEqual(reverse_complement("g"), "c") + self.assertEqual(reverse_complement("n"), "n") + + self.assertEqual(reverse_complement("atcg"), "cgat") + + +class ErroringTestCase(unittest.TestCase): + def test_file_not_found(self): + with self.assertRaises(NeedletailError): + parse_fastx_file("hey") + + def test_invalid_record(self): + with self.assertRaises(NeedletailError): + for i, record in enumerate(parse_fastx_string("Not a valid file")): + print(i) + +if __name__ == '__main__': + unittest.main() From 94513f4819e4bdbb6e23d7fc104762aa0c0bf617 Mon Sep 17 00:00:00 2001 From: Antonio Camargo Date: Tue, 10 Dec 2024 21:11:25 -0300 Subject: [PATCH 03/17] Add test files --- recipes/needletail/test.fa | 2604 ++++++++++++++++++++++++++++++++++++ recipes/needletail/test.fq | 12 + recipes/needletail/test.py | 14 +- 3 files changed, 2626 insertions(+), 4 deletions(-) create mode 100644 recipes/needletail/test.fa create mode 100644 recipes/needletail/test.fq diff --git a/recipes/needletail/test.fa b/recipes/needletail/test.fa new file mode 100644 index 0000000000000..0ee3eeec97512 --- /dev/null +++ b/recipes/needletail/test.fa @@ -0,0 +1,2604 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + needletail/tests/data/test.fa at master · onecodex/needletail · GitHub + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ Skip to content + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + +
+ + + + + + + + + +
+
+
+ + + + + + + + + + + + +
+ +
+ +
+ +
+ + + + / + + needletail + + + Public +
+ + +
+ +
+ + +
+
+ +
+
+ + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + +

Latest commit

 

History

History
4 lines (4 loc) · 29 Bytes

test.fa

File metadata and controls

4 lines (4 loc) · 29 Bytes
+
+ + + + +
+ +
+ +
+
+ +
+ +
+

Footer

+ + + + +
+
+ + + + + © 2024 GitHub, Inc. + +
+ + +
+
+ + + + + + + + + + + + + + + + + + + +
+ +
+
+ + + diff --git a/recipes/needletail/test.fq b/recipes/needletail/test.fq new file mode 100644 index 0000000000000..fc86a1eb547c2 --- /dev/null +++ b/recipes/needletail/test.fq @@ -0,0 +1,12 @@ +@EAS54_6_R1_2_1_413_324 +CCCTTCTTGTCTTCAGCGTTTCTCC ++ +;;3;;;;;;;;;;;;7;;;;;;;88 +@EAS54_6_R1_2_1_540_792 +TTGGCAGGCCAAGGCCGATGGATCA ++ +;;;;;;;;;;;7;;;;;-;;;3;83 +@EAS54_6_R1_2_1_443_348 +GTTGCTTCTGGCGTGGGTGGGGGGG ++ +;;;;;;;;;;;9;7;;.7;393333 diff --git a/recipes/needletail/test.py b/recipes/needletail/test.py index 6d2bf4de502af..31f4bd3a34dd6 100644 --- a/recipes/needletail/test.py +++ b/recipes/needletail/test.py @@ -1,10 +1,15 @@ import unittest -from needletail import parse_fastx_file, parse_fastx_string, NeedletailError, reverse_complement, normalize_seq +from needletail import ( + parse_fastx_file, + parse_fastx_string, + NeedletailError, + reverse_complement, + normalize_seq, +) -FASTA_FILE = "./tests/data/test.fa" -FASTQ_FILE = "./tests/specimen/FASTQ/example.fastq" +FASTA_FILE, FASTQ_FILE = "test.fa", "test.fq" class ParsingTestCase(unittest.TestCase): @@ -92,5 +97,6 @@ def test_invalid_record(self): for i, record in enumerate(parse_fastx_string("Not a valid file")): print(i) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() From c78456a0ecffb9385fc6ce1c63973d3aa25559c7 Mon Sep 17 00:00:00 2001 From: Antonio Camargo Date: Tue, 10 Dec 2024 21:56:29 -0300 Subject: [PATCH 04/17] Include test files in meta.yaml --- recipes/needletail/meta.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/recipes/needletail/meta.yaml b/recipes/needletail/meta.yaml index dd958a134964c..a112b9d25209c 100644 --- a/recipes/needletail/meta.yaml +++ b/recipes/needletail/meta.yaml @@ -27,6 +27,9 @@ requirements: - python test: + files: + - test.fa + - test.fq imports: - needletail commands: From 973eadc65d690b78031b138c2866328e790dcf39 Mon Sep 17 00:00:00 2001 From: Antonio Camargo Date: Tue, 10 Dec 2024 22:29:18 -0300 Subject: [PATCH 05/17] Include test files in meta.yaml --- recipes/needletail/meta.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes/needletail/meta.yaml b/recipes/needletail/meta.yaml index a112b9d25209c..87e7e6d819b96 100644 --- a/recipes/needletail/meta.yaml +++ b/recipes/needletail/meta.yaml @@ -28,6 +28,7 @@ requirements: test: files: + - test.py - test.fa - test.fq imports: From 95eda88a010971d863b74bfa873908d5978b2698 Mon Sep 17 00:00:00 2001 From: Antonio Camargo Date: Tue, 10 Dec 2024 22:40:52 -0300 Subject: [PATCH 06/17] Fix test file --- recipes/needletail/test.fa | 2608 +----------------------------------- 1 file changed, 4 insertions(+), 2604 deletions(-) diff --git a/recipes/needletail/test.fa b/recipes/needletail/test.fa index 0ee3eeec97512..367390fc77016 100644 --- a/recipes/needletail/test.fa +++ b/recipes/needletail/test.fa @@ -1,2604 +1,4 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - needletail/tests/data/test.fa at master · onecodex/needletail · GitHub - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - -
- Skip to content - - - - - - - - - - - - -
-
- - - - - - - - - - - - - - -
- -
- - - - - - - - -
- - - - - - -
- - - - - - - - - -
-
-
- - - - - - - - - - - - -
- -
- -
- -
- - - - / - - needletail - - - Public -
- - -
- -
- - -
-
- -
-
- - - - -
- - - - - - -
- - - - - - - - - - - - - - - - - - -

Latest commit

 

History

History
4 lines (4 loc) · 29 Bytes

test.fa

File metadata and controls

4 lines (4 loc) · 29 Bytes
-
- - - - -
- -
- -
-
- -
- -
-

Footer

- - - - -
-
- - - - - © 2024 GitHub, Inc. - -
- - -
-
- - - - - - - - - - - - - - - - - - - -
- -
-
- - - +>test +AGCTGATCGA +>test2 +TAGC From b4b9953e284d124d803ea02234ec9948da81121d Mon Sep 17 00:00:00 2001 From: Antonio Camargo Date: Tue, 10 Dec 2024 23:12:06 -0300 Subject: [PATCH 07/17] Build with pip --- recipes/needletail/build.sh | 9 --------- recipes/needletail/meta.yaml | 2 ++ 2 files changed, 2 insertions(+), 9 deletions(-) delete mode 100644 recipes/needletail/build.sh diff --git a/recipes/needletail/build.sh b/recipes/needletail/build.sh deleted file mode 100644 index d865cead7e760..0000000000000 --- a/recipes/needletail/build.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -set -ex - -# Build wheel and write to `dist` -maturin build --interpreter "${PYTHON}" --features python --release --strip --out dist - -# Install Python library -${PYTHON} -m pip install dist/*.whl --no-deps --no-build-isolation --no-cache-dir -vvv diff --git a/recipes/needletail/meta.yaml b/recipes/needletail/meta.yaml index 87e7e6d819b96..030439dca5a77 100644 --- a/recipes/needletail/meta.yaml +++ b/recipes/needletail/meta.yaml @@ -12,6 +12,7 @@ source: build: number: 0 + script: "{{ PYTHON }} -m pip install . --no-deps --no-build-isolation --no-cache-dir -vvv" run_exports: - {{ pin_subpackage(name|lower, max_pin="x.x") }} @@ -21,6 +22,7 @@ requirements: - {{ compiler("rust") }} host: - pip + - cffi - maturin >=0.14,<0.15 - python run: From 42e3f92efd2c897cb27f86ffff6eabf52d198219 Mon Sep 17 00:00:00 2001 From: Antonio Camargo Date: Tue, 10 Dec 2024 23:28:54 -0300 Subject: [PATCH 08/17] Add cffi requirement --- recipes/needletail/meta.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes/needletail/meta.yaml b/recipes/needletail/meta.yaml index 030439dca5a77..3a3e4afa0d681 100644 --- a/recipes/needletail/meta.yaml +++ b/recipes/needletail/meta.yaml @@ -27,6 +27,7 @@ requirements: - python run: - python + - cffi test: files: From caf36736ec1c0ae46c4e313db34f418c89ccc382 Mon Sep 17 00:00:00 2001 From: Antonio Camargo Date: Tue, 10 Dec 2024 23:40:47 -0300 Subject: [PATCH 09/17] Remove ARM builds --- recipes/needletail/build.sh | 9 +++++++++ recipes/needletail/meta.yaml | 8 -------- 2 files changed, 9 insertions(+), 8 deletions(-) create mode 100644 recipes/needletail/build.sh diff --git a/recipes/needletail/build.sh b/recipes/needletail/build.sh new file mode 100644 index 0000000000000..d865cead7e760 --- /dev/null +++ b/recipes/needletail/build.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +set -ex + +# Build wheel and write to `dist` +maturin build --interpreter "${PYTHON}" --features python --release --strip --out dist + +# Install Python library +${PYTHON} -m pip install dist/*.whl --no-deps --no-build-isolation --no-cache-dir -vvv diff --git a/recipes/needletail/meta.yaml b/recipes/needletail/meta.yaml index 3a3e4afa0d681..75566ff3f3771 100644 --- a/recipes/needletail/meta.yaml +++ b/recipes/needletail/meta.yaml @@ -12,7 +12,6 @@ source: build: number: 0 - script: "{{ PYTHON }} -m pip install . --no-deps --no-build-isolation --no-cache-dir -vvv" run_exports: - {{ pin_subpackage(name|lower, max_pin="x.x") }} @@ -22,12 +21,10 @@ requirements: - {{ compiler("rust") }} host: - pip - - cffi - maturin >=0.14,<0.15 - python run: - python - - cffi test: files: @@ -46,8 +43,3 @@ about: summary: Fast FASTX parsing in Python license_file: LICENSE dev_url: https://github.com/onecodex/needletail - -extra: - additional-platforms: - - linux-aarch64 - - osx-arm64 From 18f373d29572fe18acfea17734cbc11fbadf08e1 Mon Sep 17 00:00:00 2001 From: Michael Hall Date: Thu, 19 Dec 2024 08:29:58 +1000 Subject: [PATCH 10/17] Rename test.py to run_test.py --- recipes/needletail/{test.py => run_test.py} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename recipes/needletail/{test.py => run_test.py} (100%) diff --git a/recipes/needletail/test.py b/recipes/needletail/run_test.py similarity index 100% rename from recipes/needletail/test.py rename to recipes/needletail/run_test.py From 18e0b553f09e154abbdbbd5a5382bb451c302786 Mon Sep 17 00:00:00 2001 From: Michael Hall Date: Thu, 19 Dec 2024 08:30:35 +1000 Subject: [PATCH 11/17] remove obselete test commands --- recipes/needletail/meta.yaml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/recipes/needletail/meta.yaml b/recipes/needletail/meta.yaml index 75566ff3f3771..6c349a57d47de 100644 --- a/recipes/needletail/meta.yaml +++ b/recipes/needletail/meta.yaml @@ -28,13 +28,8 @@ requirements: test: files: - - test.py - test.fa - test.fq - imports: - - needletail - commands: - - python test.py about: home: https://github.com/onecodex/needletail From a6eaec4c39e8adf822c6da383ac614dea553df86 Mon Sep 17 00:00:00 2001 From: Michael Hall Date: Thu, 19 Dec 2024 09:53:45 +1000 Subject: [PATCH 12/17] copy orjson recipe --- recipes/needletail/meta.yaml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/recipes/needletail/meta.yaml b/recipes/needletail/meta.yaml index 6c349a57d47de..ff819b6555237 100644 --- a/recipes/needletail/meta.yaml +++ b/recipes/needletail/meta.yaml @@ -14,15 +14,24 @@ build: number: 0 run_exports: - {{ pin_subpackage(name|lower, max_pin="x.x") }} + script: + - {{ PYTHON }} -m pip install . --no-deps --no-build-isolation --disable-pip-version-check + - cargo-bundle-licenses --format yaml --output THIRDPARTY.yml requirements: build: + - python # [build_platform != target_platform] + - cross-python_{{ target_platform }} # [build_platform != target_platform] + - crossenv # [build_platform != target_platform] + - maturin >=1,<2 # [build_platform != target_platform] - {{ compiler("c") }} - {{ compiler("rust") }} + - {{ stdlib("c") }} + - cargo-bundle-licenses host: - - pip - - maturin >=0.14,<0.15 - python + - pip + - maturin >=1,<2 run: - python @@ -35,6 +44,8 @@ about: home: https://github.com/onecodex/needletail license: MIT license_family: MIT + license_file: + - LICENSE + - THIRDPARTY.yml summary: Fast FASTX parsing in Python - license_file: LICENSE dev_url: https://github.com/onecodex/needletail From e61aefc7b85bb26b9186140c973198ff351d680f Mon Sep 17 00:00:00 2001 From: Michael Hall Date: Thu, 19 Dec 2024 09:54:06 +1000 Subject: [PATCH 13/17] Delete recipes/needletail/build.sh --- recipes/needletail/build.sh | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 recipes/needletail/build.sh diff --git a/recipes/needletail/build.sh b/recipes/needletail/build.sh deleted file mode 100644 index d865cead7e760..0000000000000 --- a/recipes/needletail/build.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -set -ex - -# Build wheel and write to `dist` -maturin build --interpreter "${PYTHON}" --features python --release --strip --out dist - -# Install Python library -${PYTHON} -m pip install dist/*.whl --no-deps --no-build-isolation --no-cache-dir -vvv From ae294ce58281fcec87bee565756524ef5f2a4791 Mon Sep 17 00:00:00 2001 From: Michael Hall Date: Thu, 19 Dec 2024 09:58:57 +1000 Subject: [PATCH 14/17] skip version constraint lint --- recipes/needletail/meta.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipes/needletail/meta.yaml b/recipes/needletail/meta.yaml index ff819b6555237..5f3d58a01c3fe 100644 --- a/recipes/needletail/meta.yaml +++ b/recipes/needletail/meta.yaml @@ -49,3 +49,7 @@ about: - THIRDPARTY.yml summary: Fast FASTX parsing in Python dev_url: https://github.com/onecodex/needletail + skip-lints: + - version_constraints_missing_whitespace # see https://github.com/bioconda/bioconda-recipes/issues/51185 + recipe-maintainers: + - apcamargo From 5237940fd6bb6957e8a2ff759d41639d0e761ec7 Mon Sep 17 00:00:00 2001 From: Michael Hall Date: Thu, 19 Dec 2024 10:03:59 +1000 Subject: [PATCH 15/17] use correct key for skip and maintainer --- recipes/needletail/meta.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes/needletail/meta.yaml b/recipes/needletail/meta.yaml index 5f3d58a01c3fe..c2d297e426f59 100644 --- a/recipes/needletail/meta.yaml +++ b/recipes/needletail/meta.yaml @@ -49,6 +49,8 @@ about: - THIRDPARTY.yml summary: Fast FASTX parsing in Python dev_url: https://github.com/onecodex/needletail + +extra: skip-lints: - version_constraints_missing_whitespace # see https://github.com/bioconda/bioconda-recipes/issues/51185 recipe-maintainers: From 43d714c720a1f4f1f495ee64e7dc19455bb52b96 Mon Sep 17 00:00:00 2001 From: Luiz Irber Date: Wed, 18 Dec 2024 17:50:27 -0800 Subject: [PATCH 16/17] set bindings and features for maturin --- recipes/needletail/meta.yaml | 2 ++ recipes/needletail/patches/01-maturin-pyo3.patch | 15 +++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 recipes/needletail/patches/01-maturin-pyo3.patch diff --git a/recipes/needletail/meta.yaml b/recipes/needletail/meta.yaml index c2d297e426f59..8d2929baef428 100644 --- a/recipes/needletail/meta.yaml +++ b/recipes/needletail/meta.yaml @@ -9,6 +9,8 @@ package: source: url: https://github.com/onecodex/{{ name }}/archive/refs/tags/v{{ version }}.tar.gz sha256: {{ sha256 }} + patches: + - patches/01-maturin-pyo3.patch build: number: 0 diff --git a/recipes/needletail/patches/01-maturin-pyo3.patch b/recipes/needletail/patches/01-maturin-pyo3.patch new file mode 100644 index 0000000000000..f6cceebd15343 --- /dev/null +++ b/recipes/needletail/patches/01-maturin-pyo3.patch @@ -0,0 +1,15 @@ +diff --git a/pyproject.toml b/pyproject.toml +index 6339e16..ae6a18e 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -9,4 +9,8 @@ classifier = [ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Topic :: Scientific/Engineering :: Bio-Informatics", +-] +\ No newline at end of file ++] ++ ++[tool.maturin] ++bindings = "pyo3" ++features = ["python"] From 08cb5764987b49ea84d03050fc45cf7ed2c4ce81 Mon Sep 17 00:00:00 2001 From: Michael Hall Date: Thu, 19 Dec 2024 14:21:15 +1000 Subject: [PATCH 17/17] add ARM builds --- recipes/needletail/meta.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/recipes/needletail/meta.yaml b/recipes/needletail/meta.yaml index 8d2929baef428..1b7320cbe9fe7 100644 --- a/recipes/needletail/meta.yaml +++ b/recipes/needletail/meta.yaml @@ -57,3 +57,6 @@ extra: - version_constraints_missing_whitespace # see https://github.com/bioconda/bioconda-recipes/issues/51185 recipe-maintainers: - apcamargo + additional-platforms: + - linux-aarch64 + - osx-arm64