-
-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathmeta.yaml
151 lines (141 loc) · 5.4 KB
/
meta.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
{% set version = "1.23.5" %}
package:
name: numpy
version: {{ version }}
# use 'python_impl' in meta.yaml so it gets picked up by rendering
# [python_impl == "pypy"]
source:
- url: https://github.com/numpy/numpy/releases/download/v{{ version }}/numpy-{{ version }}.tar.gz
sha256: 1b1766d6f397c18153d40015ddfc79ddb715cabadc04d2d228d4e5a8bc4ded1a
# the sources by upstream themselves (as opposed to automated by github) contain the
# svml submodule (which isn't in github tarball due to dear-github/dear-github#214);
# keep this for reference & debugging when necessary; for exact commit, see:
# https://github.com/numpy/numpy/tree/v{{ version }}/numpy/core/src/umath
# - git_url: https://github.com/numpy/SVML.git
# git_rev: 1c5260a61e7dce6be48073dfa96291edb0a11d79
# folder: numpy/core/src/umath/svml
build:
number: 0
skip: true # [py<38]
entry_points:
- f2py = numpy.f2py.f2py2e:main # [win]
run_exports:
- {{ pin_subpackage("numpy") }}
requirements:
build:
- python # [build_platform != target_platform]
- cross-python_{{ target_platform }} # [build_platform != target_platform]
- cython # [build_platform != target_platform]
- setuptools <60.0.0 # [build_platform != target_platform]
- {{ compiler('c') }}
- {{ compiler('cxx') }}
host:
- setuptools <60.0.0
- python
- pip
- cython
- libblas
- libcblas
- liblapack
run:
- python
run_constrained:
# enforce eviction of package from anaconda defaults
- numpy-base <0a0
{% set tests_to_skip = "_not_a_real_test" %}
# https://github.com/numpy/numpy/issues/15243
{% set tests_to_skip = tests_to_skip + " or test_loss_of_precision[complex256]" %} # [ppc64le]
# Sometimes crashes on travis (needs too much memory); since 1.22.4 it fails for pypy
{% set tests_to_skip = tests_to_skip + " or test_large_archive" %} # [(CI == "travis") or ((python_impl == "pypy") and linux)]
# there are some tests that cannot really work in emulation, see e.g. numpy/numpy#20445
{% set tests_to_skip = tests_to_skip + " or Test_ARM_Features" %} # [build_platform != target_platform]
# test_new_policy reruns part of test suite; including a CPU feature test that fails in emulation
{% set tests_to_skip = tests_to_skip + " or test_new_policy" %} # [build_platform != target_platform]
# flaky refcount-based test; already skipped upstream for win+py39
{% set tests_to_skip = tests_to_skip + " or test_partial_iteration_cleanup" %} # [osx]
test:
requires:
- pytest
- pytest-timeout
- pytest-xdist # [CI != "travis"]
# (mostly) optional test requirements (except wheel, python-cov, mypy), see
# https://github.com/numpy/numpy/blob/main/test_requirements.txt
- cffi # [py<=39 and python_impl != "pypy"]
- cython
- hypothesis
# workaround for python/cpython#98706
- importlib_metadata >=4.13 # [py==311]
- pytz
- setuptools <60.0.0
- typing_extensions
# some linux tests need a C compiler;
# extra f2py tests need a fortran compiler
- {{ compiler('c') }} # [linux]
- {{ compiler('fortran') }} # [linux]
commands:
- f2py -h
# numpy.test will show SIMD features of agent (in the past, there have been
# failures that occured depending on presence/absence of e.g. AVX512);
# for signature of numpy.test see the following (note default: label='fast'),
# https://github.com/numpy/numpy/blob/maintenance/1.22.x/numpy/_pytesttester.py#L81-L82
{% set label = "'fast'" if (CI == "travis") or (aarch64 and python_impl == "pypy") else "'full'" %}
{% set num_proc = "'-nauto', " if (CI != "travis") else "" %}
{% set param = "verbose=1, label=" + label + ", tests=None" %}
{% set extra = "extra_argv=['-k', 'not (" + tests_to_skip + ")', " + num_proc + "'--timeout=3000', '--durations=50']" %}
- python -c "import numpy, sys; sys.exit(not numpy.test({{ param }}, {{ extra }}))"
imports:
- numpy
# reference for public API is effectively
# https://github.com/numpy/numpy/blame/main/numpy/tests/test_public_api.py
- numpy.array_api
- numpy.array_api.linalg
- numpy.ctypeslib
- numpy.distutils
- numpy.doc
- numpy.doc.constants
- numpy.doc.ufuncs
- numpy.f2py
- numpy.fft
- numpy.lib
- numpy.lib.mixins
- numpy.lib.recfunctions
- numpy.lib.scimath
- numpy.linalg
- numpy.ma
- numpy.ma.extras
- numpy.ma.mrecords
- numpy.matlib
- numpy.polynomial
- numpy.random
- numpy.testing
- numpy.typing
- numpy.version
# some private modules that were once upon a time
# determined to be useful packaging checks
- numpy.core.multiarray
- numpy.core._multiarray_tests
- numpy.core.numeric
- numpy.core._operand_flag_tests
- numpy.core._struct_ufunc_tests
- numpy.core._rational_tests
- numpy.core.umath
- numpy.core._umath_tests
- numpy.linalg.lapack_lite
- numpy.random.mtrand
about:
home: http://numpy.org/
license: BSD-3-Clause
license_file: LICENSE.txt
summary: The fundamental package for scientific computing with Python.
doc_url: https://numpy.org/doc/stable/
dev_url: https://github.com/numpy/numpy
extra:
recipe-maintainers:
- jakirkham
- msarahan
- pelson
- rgommers
- ocefpaf
- isuruf
- xhochy
- h-vetinari