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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[build-system]
|
| 2 |
+
build-backend = "mesonpy"
|
| 3 |
+
requires = [
|
| 4 |
+
"meson-python>=0.15.0",
|
| 5 |
+
"Cython>=3.0.6", # keep in sync with version check in meson.build
|
| 6 |
+
]
|
| 7 |
+
|
| 8 |
+
[project]
|
| 9 |
+
name = "numpy"
|
| 10 |
+
version = "2.3.0.dev0"
|
| 11 |
+
# TODO: add `license-files` once PEP 639 is accepted (see meson-python#88)
|
| 12 |
+
license = {file = "LICENSE.txt"}
|
| 13 |
+
|
| 14 |
+
description = "Fundamental package for array computing in Python"
|
| 15 |
+
authors = [{name = "Travis E. Oliphant et al."}]
|
| 16 |
+
maintainers = [
|
| 17 |
+
{name = "NumPy Developers", email="[email protected]"},
|
| 18 |
+
]
|
| 19 |
+
requires-python = ">=3.11"
|
| 20 |
+
readme = "README.md"
|
| 21 |
+
classifiers = [
|
| 22 |
+
'Development Status :: 5 - Production/Stable',
|
| 23 |
+
'Intended Audience :: Science/Research',
|
| 24 |
+
'Intended Audience :: Developers',
|
| 25 |
+
'License :: OSI Approved :: BSD License',
|
| 26 |
+
'Programming Language :: C',
|
| 27 |
+
'Programming Language :: Python',
|
| 28 |
+
'Programming Language :: Python :: 3',
|
| 29 |
+
'Programming Language :: Python :: 3.11',
|
| 30 |
+
'Programming Language :: Python :: 3.12',
|
| 31 |
+
'Programming Language :: Python :: 3.13',
|
| 32 |
+
'Programming Language :: Python :: 3 :: Only',
|
| 33 |
+
'Programming Language :: Python :: Implementation :: CPython',
|
| 34 |
+
'Topic :: Software Development',
|
| 35 |
+
'Topic :: Scientific/Engineering',
|
| 36 |
+
'Typing :: Typed',
|
| 37 |
+
'Operating System :: Microsoft :: Windows',
|
| 38 |
+
'Operating System :: POSIX',
|
| 39 |
+
'Operating System :: Unix',
|
| 40 |
+
'Operating System :: MacOS',
|
| 41 |
+
]
|
| 42 |
+
|
| 43 |
+
[project.scripts]
|
| 44 |
+
f2py = 'numpy.f2py.f2py2e:main'
|
| 45 |
+
numpy-config = 'numpy._configtool:main'
|
| 46 |
+
|
| 47 |
+
[project.entry-points.pkg_config]
|
| 48 |
+
numpy = 'numpy._core.lib.pkgconfig'
|
| 49 |
+
|
| 50 |
+
[project.entry-points.array_api]
|
| 51 |
+
numpy = 'numpy'
|
| 52 |
+
|
| 53 |
+
[project.entry-points.pyinstaller40]
|
| 54 |
+
hook-dirs = 'numpy:_pyinstaller_hooks_dir'
|
| 55 |
+
|
| 56 |
+
[project.urls]
|
| 57 |
+
homepage = "https://numpy.org"
|
| 58 |
+
documentation = "https://numpy.org/doc/"
|
| 59 |
+
source = "https://github.com/numpy/numpy"
|
| 60 |
+
download = "https://pypi.org/project/numpy/#files"
|
| 61 |
+
tracker = "https://github.com/numpy/numpy/issues"
|
| 62 |
+
"release notes" = "https://numpy.org/doc/stable/release"
|
| 63 |
+
|
| 64 |
+
[tool.towncrier]
|
| 65 |
+
single_file = false
|
| 66 |
+
filename = "doc/source/release/notes-towncrier.rst"
|
| 67 |
+
directory = "doc/release/upcoming_changes/"
|
| 68 |
+
issue_format = "`gh-{issue} <https://github.com/numpy/numpy/pull/{issue}>`__"
|
| 69 |
+
template = "doc/release/upcoming_changes/template.rst"
|
| 70 |
+
underlines = "~="
|
| 71 |
+
all_bullets = false
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
[[tool.towncrier.type]]
|
| 75 |
+
directory = "highlight"
|
| 76 |
+
name = "Highlights"
|
| 77 |
+
showcontent = true
|
| 78 |
+
|
| 79 |
+
[[tool.towncrier.type]]
|
| 80 |
+
directory = "new_function"
|
| 81 |
+
name = "New functions"
|
| 82 |
+
showcontent = true
|
| 83 |
+
|
| 84 |
+
[[tool.towncrier.type]]
|
| 85 |
+
directory = "python_removal"
|
| 86 |
+
name = "NumPy 2.0 Python API removals"
|
| 87 |
+
showcontent = true
|
| 88 |
+
|
| 89 |
+
[[tool.towncrier.type]]
|
| 90 |
+
directory = "deprecation"
|
| 91 |
+
name = "Deprecations"
|
| 92 |
+
showcontent = true
|
| 93 |
+
|
| 94 |
+
[[tool.towncrier.type]]
|
| 95 |
+
directory = "future"
|
| 96 |
+
name = "Future Changes"
|
| 97 |
+
showcontent = true
|
| 98 |
+
|
| 99 |
+
[[tool.towncrier.type]]
|
| 100 |
+
directory = "expired"
|
| 101 |
+
name = "Expired deprecations"
|
| 102 |
+
showcontent = true
|
| 103 |
+
|
| 104 |
+
[[tool.towncrier.type]]
|
| 105 |
+
directory = "compatibility"
|
| 106 |
+
name = "Compatibility notes"
|
| 107 |
+
showcontent = true
|
| 108 |
+
|
| 109 |
+
[[tool.towncrier.type]]
|
| 110 |
+
directory = "c_api"
|
| 111 |
+
name = "C API changes"
|
| 112 |
+
showcontent = true
|
| 113 |
+
|
| 114 |
+
[[tool.towncrier.type]]
|
| 115 |
+
directory = "c_api_removal"
|
| 116 |
+
name = "NumPy 2.0 C API removals"
|
| 117 |
+
showcontent = true
|
| 118 |
+
|
| 119 |
+
[[tool.towncrier.type]]
|
| 120 |
+
directory = "new_feature"
|
| 121 |
+
name = "New Features"
|
| 122 |
+
showcontent = true
|
| 123 |
+
|
| 124 |
+
[[tool.towncrier.type]]
|
| 125 |
+
directory = "improvement"
|
| 126 |
+
name = "Improvements"
|
| 127 |
+
showcontent = true
|
| 128 |
+
|
| 129 |
+
[[tool.towncrier.type]]
|
| 130 |
+
directory = "performance"
|
| 131 |
+
name = "Performance improvements and changes"
|
| 132 |
+
showcontent = true
|
| 133 |
+
|
| 134 |
+
[[tool.towncrier.type]]
|
| 135 |
+
directory = "change"
|
| 136 |
+
name = "Changes"
|
| 137 |
+
showcontent = true
|
| 138 |
+
|
| 139 |
+
|
| 140 |
+
[tool.cibuildwheel]
|
| 141 |
+
# Note: the below skip command doesn't do much currently, the platforms to
|
| 142 |
+
# build wheels for in CI are controlled in `.github/workflows/wheels.yml` and
|
| 143 |
+
# `tools/ci/cirrus_wheels.yml`.
|
| 144 |
+
build-frontend = "build"
|
| 145 |
+
skip = "*_i686 *_ppc64le *_s390x *_universal2"
|
| 146 |
+
before-build = "bash {project}/tools/wheels/cibw_before_build.sh {project}"
|
| 147 |
+
# The build will use openblas64 everywhere, except on arm64 macOS >=14.0 (uses Accelerate)
|
| 148 |
+
config-settings = "setup-args=-Duse-ilp64=true setup-args=-Dallow-noblas=false build-dir=build"
|
| 149 |
+
before-test = "pip install -r {project}/requirements/test_requirements.txt"
|
| 150 |
+
test-command = "bash {project}/tools/wheels/cibw_test_command.sh {project}"
|
| 151 |
+
enable = ["cpython-freethreading", "pypy", "cpython-prerelease"]
|
| 152 |
+
|
| 153 |
+
[tool.cibuildwheel.linux]
|
| 154 |
+
manylinux-x86_64-image = "manylinux_2_28"
|
| 155 |
+
manylinux-aarch64-image = "manylinux_2_28"
|
| 156 |
+
musllinux-x86_64-image = "musllinux_1_2"
|
| 157 |
+
musllinux-aarch64-image = "musllinux_1_2"
|
| 158 |
+
|
| 159 |
+
[tool.cibuildwheel.pyodide]
|
| 160 |
+
config-settings = "build-dir=build setup-args=--cross-file=$PWD/tools/ci/emscripten/emscripten.meson.cross setup-args=-Dblas=none setup-args=-Dlapack=none"
|
| 161 |
+
|
| 162 |
+
[tool.cibuildwheel.linux.environment]
|
| 163 |
+
# RUNNER_OS is a GitHub Actions specific env var; define it here so it works on Cirrus CI too
|
| 164 |
+
RUNNER_OS="Linux"
|
| 165 |
+
# /project will be the $PWD equivalent inside the docker used to build the wheel
|
| 166 |
+
PKG_CONFIG_PATH="/project/.openblas"
|
| 167 |
+
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/project/.openblas/lib"
|
| 168 |
+
|
| 169 |
+
[tool.cibuildwheel.macos]
|
| 170 |
+
# universal2 wheels are not supported (see gh-21233), use `delocate-fuse` if you need them
|
| 171 |
+
# note that universal2 wheels are not built, they're listed in the tool.cibuildwheel.skip
|
| 172 |
+
# section
|
| 173 |
+
# Not clear why the DYLD_LIBRARY_PATH is not passed through from the environment
|
| 174 |
+
repair-wheel-command = [
|
| 175 |
+
"export DYLD_LIBRARY_PATH=$PWD/.openblas/lib",
|
| 176 |
+
"echo DYLD_LIBRARY_PATH $DYLD_LIBRARY_PATH",
|
| 177 |
+
"delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}",
|
| 178 |
+
]
|
| 179 |
+
|
| 180 |
+
[tool.cibuildwheel.windows]
|
| 181 |
+
# This does not work, use CIBW_ENVIRONMENT_WINDOWS
|
| 182 |
+
environment = {PKG_CONFIG_PATH="./.openblas"}
|
| 183 |
+
config-settings = "setup-args=--vsenv setup-args=-Dallow-noblas=false build-dir=build"
|
| 184 |
+
repair-wheel-command = "bash -el ./tools/wheels/repair_windows.sh {wheel} {dest_dir}"
|
| 185 |
+
|
| 186 |
+
[[tool.cibuildwheel.overrides]]
|
| 187 |
+
select = "*-win32"
|
| 188 |
+
config-settings = "setup-args=--vsenv setup-args=-Dallow-noblas=true build-dir=build"
|
| 189 |
+
repair-wheel-command = ""
|
| 190 |
+
|
| 191 |
+
[[tool.cibuildwheel.overrides]]
|
| 192 |
+
select = "*pyodide*"
|
| 193 |
+
before-test = "pip install -r {project}/requirements/emscripten_test_requirements.txt"
|
| 194 |
+
# Pyodide ensures that the wheels are already repaired by auditwheel-emscripten
|
| 195 |
+
repair-wheel-command = ""
|
| 196 |
+
test-command = "python -m pytest --pyargs numpy -m 'not slow'"
|
| 197 |
+
|
| 198 |
+
[tool.meson-python]
|
| 199 |
+
meson = 'vendored-meson/meson/meson.py'
|
| 200 |
+
|
| 201 |
+
[tool.meson-python.args]
|
| 202 |
+
install = ['--tags=runtime,python-runtime,tests,devel']
|
| 203 |
+
|
| 204 |
+
[tool.spin]
|
| 205 |
+
package = 'numpy'
|
| 206 |
+
|
| 207 |
+
[tool.spin.meson]
|
| 208 |
+
cli = 'vendored-meson/meson/meson.py'
|
| 209 |
+
|
| 210 |
+
[tool.spin.commands]
|
| 211 |
+
"Build" = [
|
| 212 |
+
".spin/cmds.py:build",
|
| 213 |
+
".spin/cmds.py:test",
|
| 214 |
+
".spin/cmds.py:mypy",
|
| 215 |
+
".spin/cmds.py:config_openblas",
|
| 216 |
+
".spin/cmds.py:lint",
|
| 217 |
+
]
|
| 218 |
+
"Environments" = [
|
| 219 |
+
"spin.cmds.meson.run",
|
| 220 |
+
".spin/cmds.py:ipython",
|
| 221 |
+
".spin/cmds.py:python",
|
| 222 |
+
"spin.cmds.meson.gdb",
|
| 223 |
+
"spin.cmds.meson.lldb"
|
| 224 |
+
]
|
| 225 |
+
"Documentation" = [
|
| 226 |
+
".spin/cmds.py:docs",
|
| 227 |
+
".spin/cmds.py:changelog",
|
| 228 |
+
".spin/cmds.py:notes",
|
| 229 |
+
".spin/cmds.py:check_docs",
|
| 230 |
+
".spin/cmds.py:check_tutorials",
|
| 231 |
+
]
|
| 232 |
+
"Metrics" = [".spin/cmds.py:bench"]
|
long.yaml
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|