From af79080bba9a09318d7ed8d85c7315303eb7e3f9 Mon Sep 17 00:00:00 2001 From: prototaxites Date: Thu, 19 Dec 2024 16:21:04 +0000 Subject: [PATCH 1/7] Add pycoverm module --- recipes/pycoverm/meta.yaml | 43 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 recipes/pycoverm/meta.yaml diff --git a/recipes/pycoverm/meta.yaml b/recipes/pycoverm/meta.yaml new file mode 100644 index 0000000000000..ef1a1b489b2d0 --- /dev/null +++ b/recipes/pycoverm/meta.yaml @@ -0,0 +1,43 @@ +{% set name = "pycoverm" %} +{% set version = "0.6.0" %} + +package: + name: {{ name|lower }} + version: {{ version }} + +source: + url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/pycoverm-{{ version }}.tar.gz + sha256: 9487ac82cf0c21e5400b98efcd195490f9f25a234b2e3336e45abd6e19002a86 + +build: + noarch: python + script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation + number: 0 + +requirements: + host: + - python <3.10 + - maturin >=0.10,<0.11 + - toml + - pip + run: + - python <3.10 + - numpy + - coverm + +test: + imports: + - pycoverm + commands: + - pip check + requires: + - pip + +about: + home: https://github.com/apcamargo/pycoverm + license: GPL-3.0 + license_file: LICENSE + +extra: + recipe-maintainers: + - prototaxites From 826d58cd7a27d841d01bfab6dd1328ce931f8584 Mon Sep 17 00:00:00 2001 From: prototaxites Date: Thu, 19 Dec 2024 16:26:42 +0000 Subject: [PATCH 2/7] Add run_exports --- recipes/pycoverm/meta.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes/pycoverm/meta.yaml b/recipes/pycoverm/meta.yaml index ef1a1b489b2d0..71f64084534e6 100644 --- a/recipes/pycoverm/meta.yaml +++ b/recipes/pycoverm/meta.yaml @@ -15,6 +15,8 @@ build: number: 0 requirements: + run_exports: + - {{ pin_subpackage('myrecipe', max_pin="x.x") }} host: - python <3.10 - maturin >=0.10,<0.11 From df1d483e961d054629e0041d561704b899049460 Mon Sep 17 00:00:00 2001 From: prototaxites Date: Thu, 19 Dec 2024 16:48:13 +0000 Subject: [PATCH 3/7] Add summary --- recipes/pycoverm/meta.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/recipes/pycoverm/meta.yaml b/recipes/pycoverm/meta.yaml index 71f64084534e6..98dca55f0711f 100644 --- a/recipes/pycoverm/meta.yaml +++ b/recipes/pycoverm/meta.yaml @@ -39,7 +39,4 @@ about: home: https://github.com/apcamargo/pycoverm license: GPL-3.0 license_file: LICENSE - -extra: - recipe-maintainers: - - prototaxites + summary: Python bindings for coverm From 53a3630d9745683765b5a38efb5e260d90039298 Mon Sep 17 00:00:00 2001 From: prototaxites Date: Thu, 19 Dec 2024 16:53:38 +0000 Subject: [PATCH 4/7] Fix runexports --- recipes/pycoverm/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/pycoverm/meta.yaml b/recipes/pycoverm/meta.yaml index 98dca55f0711f..4545f297b1812 100644 --- a/recipes/pycoverm/meta.yaml +++ b/recipes/pycoverm/meta.yaml @@ -16,7 +16,7 @@ build: requirements: run_exports: - - {{ pin_subpackage('myrecipe', max_pin="x.x") }} + - {{ pin_subpackage('pycoverm', max_pin="x.x") }} host: - python <3.10 - maturin >=0.10,<0.11 From 6c2809fa930f38f96cdb2b4981f6e1e2659871fd Mon Sep 17 00:00:00 2001 From: prototaxites Date: Thu, 19 Dec 2024 17:15:03 +0000 Subject: [PATCH 5/7] put build requirements in wrong place --- recipes/pycoverm/meta.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/pycoverm/meta.yaml b/recipes/pycoverm/meta.yaml index 4545f297b1812..8531bde751719 100644 --- a/recipes/pycoverm/meta.yaml +++ b/recipes/pycoverm/meta.yaml @@ -13,10 +13,10 @@ build: noarch: python script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation number: 0 - -requirements: run_exports: - {{ pin_subpackage('pycoverm', max_pin="x.x") }} + +requirements: host: - python <3.10 - maturin >=0.10,<0.11 From 38cf5580485fd50e65c73a82ce392e77cf2db99b Mon Sep 17 00:00:00 2001 From: Michael Hall Date: Fri, 20 Dec 2024 15:00:19 +1000 Subject: [PATCH 6/7] add maturin deps --- recipes/pycoverm/meta.yaml | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/recipes/pycoverm/meta.yaml b/recipes/pycoverm/meta.yaml index 8531bde751719..c499a3f52c6e6 100644 --- a/recipes/pycoverm/meta.yaml +++ b/recipes/pycoverm/meta.yaml @@ -11,17 +11,28 @@ source: build: noarch: python - script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation + script: + - {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation + - cargo-bundle-licenses --format yaml --output THIRDPARTY.yml number: 0 run_exports: - {{ pin_subpackage('pycoverm', max_pin="x.x") }} requirements: + build: + - python # [build_platform != target_platform] + - cross-python_{{ target_platform }} # [build_platform != target_platform] + - crossenv # [build_platform != target_platform] + - maturin >=1.4,<2 # [build_platform != target_platform] + - {{ compiler("c") }} + - {{ compiler("rust") }} + - {{ stdlib("c") }} + - cargo-bundle-licenses host: - python <3.10 - - maturin >=0.10,<0.11 - toml - pip + - maturin >=1.4,<2 run: - python <3.10 - numpy @@ -38,5 +49,11 @@ test: about: home: https://github.com/apcamargo/pycoverm license: GPL-3.0 - license_file: LICENSE + license_file: + - LICENSE + - THIRDPARTY.yml summary: Python bindings for coverm + +extra: + skip-lints: + - version_constraints_missing_whitespace # see https://github.com/bioconda/bioconda-recipes/issues/51185 From 0ad23f537ba09e3f69c91dcaca12737d719d95d6 Mon Sep 17 00:00:00 2001 From: Michael Hall Date: Fri, 20 Dec 2024 15:49:48 +1000 Subject: [PATCH 7/7] remove noarch --- recipes/pycoverm/meta.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/recipes/pycoverm/meta.yaml b/recipes/pycoverm/meta.yaml index c499a3f52c6e6..d250b9741cd32 100644 --- a/recipes/pycoverm/meta.yaml +++ b/recipes/pycoverm/meta.yaml @@ -10,7 +10,6 @@ source: sha256: 9487ac82cf0c21e5400b98efcd195490f9f25a234b2e3336e45abd6e19002a86 build: - noarch: python script: - {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation - cargo-bundle-licenses --format yaml --output THIRDPARTY.yml @@ -29,12 +28,12 @@ requirements: - {{ stdlib("c") }} - cargo-bundle-licenses host: - - python <3.10 + - python - toml - pip - maturin >=1.4,<2 run: - - python <3.10 + - python - numpy - coverm