Skip to content

Commit a851f1b

Browse files
sfiligoimencian
andauthored
Update unifrac to 1.5 (#56112)
* Remove build failure files * Update version to 1.5 * clean up recipe * Add osx-arm64 platform build * Update meta.yaml * Update build.sh * Delete recipes/unifrac/build.sh * do not build on arm64 for now, iow is not available on arm64 * Install iow with pip, as it is only needed during build * Make pip install less restricitve * Revert "Make pip install less restricitve" This reverts commit fd61277. * Revert "Install iow with pip, as it is only needed during build" This reverts commit cfa3dab. * Do not build python 3.12 on osx, as it does not have iow yet * Remove space * Update meta.yaml * Update meta.yaml * Update meta.yaml --------- Co-authored-by: Joshua Zhuang <[email protected]>
1 parent 15fdbc6 commit a851f1b

File tree

4 files changed

+23
-229
lines changed

4 files changed

+23
-229
lines changed

recipes/unifrac/build.sh

-5
This file was deleted.

recipes/unifrac/build_failure.linux-64.yaml

-105
This file was deleted.

recipes/unifrac/build_failure.osx-64.yaml

-105
This file was deleted.

recipes/unifrac/meta.yaml

+23-14
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
1-
{% set version = "1.3.2" %}
1+
{% set name = "unifrac" %}
2+
{% set version = "1.5" %}
23

34
package:
4-
name: unifrac
5+
name: {{ name }}
56
version: {{ version }}
67

78
source:
89
url: https://github.com/biocore/unifrac/archive/refs/tags/{{ version }}.tar.gz
9-
sha256: 169fb2ee0583075265e5a2a85d97e4fea139214b8f066c95f334fc33604a77d4
10+
sha256: ab2298db4e92aba081444d8b979f142a0f77455233670f8cfb0d464c758c8167
1011

1112
build:
1213
number: 0
14+
script:
15+
- sed -i.bak "s#CONDA_PREFIX#PREFIX#g" setup.py
16+
- rm -rf *.bak
17+
- {{ PYTHON }} -m pip install . --no-build-isolation --no-deps --no-cache-dir -vvv
1318
run_exports:
1419
- {{ pin_subpackage("unifrac", max_pin="x") }}
1520

@@ -19,21 +24,21 @@ requirements:
1924
host:
2025
- python
2126
- pip
22-
- h5py <3.0.0 | >3.3.0
27+
- h5py >=3.3.0
2328
- cython >=0.26
2429
- numpy >=1.21
2530
- biom-format
2631
- scipy >=1.9.0
27-
- scikit-bio >=0.5.8
32+
- scikit-bio >=0.6.0
2833
- unifrac-binaries >={{ version }}
2934
- iow
3035
run:
3136
- python
3237
- {{ pin_compatible('numpy') }}
33-
- h5py <3.0.0 | >3.3.0
38+
- h5py >=3.3.0
3439
- biom-format
3540
- scipy >=1.9.0
36-
- scikit-bio >=0.5.8
41+
- scikit-bio >=0.6.0
3742
- unifrac-binaries >={{ version }}
3843
- iow
3944

@@ -47,22 +52,26 @@ test:
4752
- python -m unittest unifrac.tests.test_api
4853

4954
about:
50-
home: https://github.com/biocore/unifrac
51-
license: BSD-3-Clause
55+
home: "https://github.com/biocore/unifrac"
56+
license: "BSD-3-Clause"
5257
license_family: BSD
5358
license_file: LICENSE
54-
summary: 'Fast phylogenetic diversity calculations'
59+
summary: 'Fast phylogenetic diversity calculations.'
5560
description: |
5661
UniFrac is a commonly phylogenetic diversity distance metric used in
5762
microbiome research. The metric relates two microbiome samples together
5863
within the context of an evolutionary history, and produces a distance
5964
that corresponds to how similar two samples by the amount of overlapping
60-
branch length.
61-
62-
doc_url: https://github.com/biocore/unifrac
63-
dev_url: https://github.com/biocore/unifrac
65+
branch length.
66+
doc_url: "https://github.com/biocore/unifrac/blob/{{ version }}/README.md"
67+
dev_url: "https://github.com/biocore/unifrac"
6468

6569
extra:
70+
additional-platforms:
71+
- osx-arm64
6672
recipe-maintainers:
6773
- wasade
6874
- sfiligoi
75+
identifiers:
76+
- doi:10.1038/s41592-018-0187-8
77+
- doi:10.1128/msystems.00028-22

0 commit comments

Comments
 (0)