forked from conda-forge/staged-recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into more-pixi
- Loading branch information
Showing
7 changed files
with
153 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
"%R%" CMD INSTALL --build . %R_ARGS% | ||
IF %ERRORLEVEL% NEQ 0 exit /B 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
export DISABLE_AUTOBREW=1 | ||
${R} CMD INSTALL --build . ${R_ARGS} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{% set version = "2.0.0" %} | ||
{% set posix = 'm2-' if win else '' %} | ||
|
||
package: | ||
name: r-glmtrans | ||
version: {{ version|replace("-", "_") }} | ||
|
||
source: | ||
url: | ||
- {{ cran_mirror }}/src/contrib/glmtrans_{{ version }}.tar.gz | ||
- {{ cran_mirror }}/src/contrib/Archive/glmtrans/glmtrans_{{ version }}.tar.gz | ||
sha256: 43fa44945db364fbf3ad943d66b5303c58e70bc501d458ede0b35b9973f8a981 | ||
|
||
build: | ||
number: 0 | ||
noarch: generic | ||
rpaths: | ||
- lib/R/lib/ | ||
- lib/ | ||
|
||
requirements: | ||
build: | ||
- {{ posix }}zip # [win] | ||
host: | ||
- r-base | ||
- r-glmnet | ||
- r-ggplot2 | ||
- r-foreach | ||
- r-doparallel | ||
- r-caret | ||
- r-assertthat | ||
- r-formatr | ||
run: | ||
- r-base | ||
- r-glmnet | ||
- r-ggplot2 | ||
- r-foreach | ||
- r-doparallel | ||
- r-caret | ||
- r-assertthat | ||
- r-formatr | ||
|
||
test: | ||
commands: | ||
- $R -e "library('glmtrans')" # [not win] | ||
- "\"%R%\" -e \"library('glmtrans')\"" # [win] | ||
|
||
about: | ||
home: https://CRAN.R-project.org/package=glmtrans | ||
license: GPL-2.0-only | ||
summary: Transfer Learning under Regularized Generalized Linear Models. | ||
license_family: GPL2 | ||
license_file: | ||
- {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2 | ||
|
||
extra: | ||
recipe-maintainers: | ||
- conda-forge/r | ||
- mlondschien | ||
|
||
# Package: glmtrans | ||
# Title: Search Contributed R Packages, Sort by Package | ||
# Version: 2.0-0 | ||
# Author: Ye Tian [aut, cre], Yang Feng [aut] | ||
# Maintainer: Ye Tian <ye.t at columbia.edu> | ||
# Description: Transfer Learning under Regularized Generalized Linear Models | ||
# License: GPL-2 | ||
# Depends: R (>= 3.5.0) | ||
# Imports: glmnet, ggplot2, foreach, doParallel, caret, assertthat, formatR, stats | ||
# Suggests: knitr, rmarkdown | ||
# Repository: CRAN | ||
# NeedsCompilation: no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{% set name = "torchkbnufft" %} | ||
{% set version = "1.4.0" %} | ||
|
||
package: | ||
name: {{ name|lower }} | ||
version: {{ version }} | ||
|
||
source: | ||
url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/torchkbnufft-{{ version }}.tar.gz | ||
sha256: 29d93c1299f888f1d7f14f2de5e85d6461785299046a04483abb6134287b716c | ||
patches: | ||
# lets tests pass with numpy 2.0, see https://github.com/mmuckley/torchkbnufft/pull/100 | ||
# Todo: remove patch once https://github.com/mmuckley/torchkbnufft/pull/100 is released upstream | ||
- patches/0001-conftest-np-2-0.patch | ||
|
||
build: | ||
noarch: python | ||
script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation | ||
number: 0 | ||
|
||
requirements: | ||
host: | ||
- python {{ python_min }} | ||
- setuptools-scm >=6.3.2 | ||
- setuptools >=59.5.0 | ||
- wheel >=0.37.0 | ||
- pip | ||
run: | ||
- python >={{ python_min }} | ||
- numpy >=1.22.4,<3.0a0 | ||
- scipy >=1.8.1,<2.0a0 | ||
- pytorch >=1.12,<3.0a0 | ||
|
||
test: | ||
imports: | ||
- torchkbnufft | ||
source_files: | ||
- tests | ||
- notebooks | ||
commands: | ||
- pip check | ||
- pytest tests | ||
# omits Toeplitz Example: pytorch 2.0, see https://github.com/mmuckley/torchkbnufft/issues/98 | ||
- pytest --nbmake "notebooks/Basic Example.ipynb" "notebooks/SENSE Example.ipynb" "notebooks/Sparse Matrix Example.ipynb" | ||
requires: | ||
- python {{ python_min }} | ||
- pip | ||
- pytest | ||
- matplotlib | ||
- nbmake | ||
|
||
about: | ||
summary: A high-level, easy-to-deploy non-uniform Fast Fourier Transform in PyTorch. | ||
home: https://github.com/mmuckley/torchkbnufft | ||
dev_url: https://github.com/mmuckley/torchkbnufft | ||
doc_url: https://torchkbnufft.readthedocs.io/en/stable/ | ||
license: MIT | ||
license_file: LICENSE | ||
|
||
extra: | ||
recipe-maintainers: | ||
- gabuzi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/tests/conftest.py b/tests/conftest.py | ||
index 1ac5f13..1df4a85 100644 | ||
--- a/tests/conftest.py | ||
+++ b/tests/conftest.py | ||
@@ -26,7 +26,7 @@ def test_params(): | ||
|
||
|
||
def create_input_plus_noise(shape, is_complex): | ||
- x = np.arange(np.product(shape)).reshape(shape) | ||
+ x = np.arange(np.prod(shape)).reshape(shape) | ||
x = torch.tensor(x, dtype=torch.get_default_dtype()) | ||
|
||
if is_complex: |