Skip to content

Commit

Permalink
Update iced to 0.5.13 (#48526)
Browse files Browse the repository at this point in the history
* Update iced to 0.5.13

* add run_exports

* Try to fix the build. Add linux-aarch64

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* Update iced to 0.5.13

* Update build.sh

* Update meta.yaml

* clean up recipe

* update tests

* edit patch

---------

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
Co-authored-by: Alicia A. Evans <[email protected]>
Co-authored-by: aliciaaevans <[email protected]>
Co-authored-by: Martin Tzvetanov Grigorov <[email protected]>
Co-authored-by: Joshua Zhuang <[email protected]>
Co-authored-by: mencian <[email protected]>
  • Loading branch information
6 people authored Jan 22, 2025
1 parent b82234f commit 5715639
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 222 deletions.
29 changes: 29 additions & 0 deletions recipes/iced/0001-setup.py.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
diff --git a/setup.py b/setup.py
index 7e8b201..cb9a3b9 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,7 @@
import os
import sys
-from setuptools import Extension, setup, find_packages
+from setuptools import Extension, setup, find_namespace_packages
+from Cython.Build import cythonize
import numpy as np


@@ -38,13 +39,13 @@ setup(
"Topic :: Utilities",
"License :: OSI Approved :: BSD License",
],
- packages=find_packages(where="."),
+ packages=find_namespace_packages(where="."),
ext_modules=[
Extension(name="iced._filter_",
sources=["iced/_filter_.pyx"],
include_dirs=[np.get_include()]
),
- Extension(name="iced.normalization/_normalization_",
+ Extension(name="iced.normalization._normalization_",
sources=["iced/normalization/_normalization_.pyx"],
include_dirs=[np.get_include()]
)],
4 changes: 0 additions & 4 deletions recipes/iced/build.sh

This file was deleted.

104 changes: 0 additions & 104 deletions recipes/iced/build_failure.linux-64.yaml

This file was deleted.

104 changes: 0 additions & 104 deletions recipes/iced/build_failure.osx-64.yaml

This file was deleted.

35 changes: 25 additions & 10 deletions recipes/iced/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,43 +1,58 @@
{% set name = "iced" %}
{% set version = "0.5.10" %}
{% set sha256 = "77240573bfb552d33301cf5b22f597f50c04e03c8ccea4dcc88fee884e394fd0" %}
{% set version = "0.5.13" %}
{% set sha256 = "455ecb3464cc64e0fdec776bc7b0f0cae9d729539be6865ac9d5436c5e77e6b9" %}

package:
name: "{{ name }}"
version: "{{ version }}"

source:
url: https://github.com/hiclib/{{ name }}/archive/v{{ version }}.tar.gz
url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/iced-{{ version }}.tar.gz
sha256: {{ sha256 }}
patches:
- 0001-setup.py.patch

build:
number: 3
number: 0
script: {{ PYTHON }} -m pip install . -vvv --no-deps --no-build-isolation --no-cache-dir
entry_points:
- ice = iced.scripts.ice:main
run_exports:
- {{ pin_subpackage(name, max_pin="x.x") }}

requirements:
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
host:
- pip
- python
- cython
- numpy
- scipy >=0.13.3
- numpy >=1.16.0
- scipy >=0.19.0
run:
- python
- {{ pin_compatible('numpy') }}
- scipy >=0.13.3
- scipy >=0.19.0
- pandas
- scikit-learn
- matplotlib-base

test:
imports:
- iced
commands:
- ice --help

about:
home: https://github.com/hiclib/iced
license: new BSD
home: "https://github.com/hiclib/iced"
license: "BSD-3-Clause"
license_family: BSD
license_file: LICENSE
summary: "The python module iced implements the ICE normalization of hic data."
dev_url: "https://github.com/hiclib/iced"
doc_url: "https://members.cbio.mines-paristech.fr/~nvaroquaux/iced"

extra:
additional-platforms:
- linux-aarch64
- osx-arm64

0 comments on commit 5715639

Please sign in to comment.