11[build-system ]
22build-backend = " mesonpy"
33requires = [
4- " meson-python>=0.15 .0" ,
4+ " meson-python>=0.18 .0" ,
55 " Cython>=3.0.6" , # keep in sync with version check in meson.build
66]
77
88[project ]
99name = " numpy"
1010version = " 2.4.0.dev0"
11- # TODO: add `license-files` once PEP 639 is accepted (see meson-python#88)
12- license = {file = " LICENSE.txt" }
13-
1411description = " Fundamental package for array computing in Python"
1512authors = [{name = " Travis E. Oliphant et al." }]
1613maintainers = [
@@ -22,7 +19,6 @@ classifiers = [
2219 ' Development Status :: 5 - Production/Stable' ,
2320 ' Intended Audience :: Science/Research' ,
2421 ' Intended Audience :: Developers' ,
25- ' License :: OSI Approved :: BSD License' ,
2622 ' Programming Language :: C' ,
2723 ' Programming Language :: Python' ,
2824 ' Programming Language :: Python :: 3' ,
@@ -40,6 +36,52 @@ classifiers = [
4036 ' Operating System :: Unix' ,
4137 ' Operating System :: MacOS' ,
4238]
39+ # License info:
40+ # - The main NumPy project license is BSD-3-Clause.
41+ # - The SPDX license expression below reflects installed numpy packages when
42+ # built from source (e.g., with `python -m build --wheel`), with no vendoring.
43+ # - That SPDX expression is therefore incomplete for:
44+ # (a) sdists - see the comment below `license-files` for other licenses
45+ # included in the sdist
46+ # (b) wheels on PyPI - most wheels include vendored libraries with additional licenses:
47+ # - libopenblas : BSD-3-Clause AND BSD-3-Clause-Attribution (all except arm64 macOS>=14)
48+ # - libgfortran : GPL-3.0-with-GCC-exception (all except arm64 macOS>=14)
49+ # - libquadmath : LGPL-2.1-or-later (all except arm64 macOS>=14 and Windows)
50+ # The licenses for these vendored components are dynamically included
51+ # in the build process for PyPI wheels.
52+ license = ' BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0'
53+ license-files = [
54+ ' LICENSE.txt' , # BSD-3-Clause
55+ ' numpy/_core/include/numpy/libdivide/LICENSE.txt' , # Zlib
56+ ' numpy/_core/src/common/pythoncapi-compat/COPYING' , # 0BSD
57+ ' numpy/_core/src/highway/LICENSE-BSD3' , # BSD-3-Clause
58+ ' numpy/_core/src/multiarray/dragon4_LICENSE.txt' , # MIT
59+ ' numpy/_core/src/npysort/x86-simd-sort/LICENSE.md' , # BSD-3-Clause
60+ ' numpy/_core/src/umath/svml/LICENSE' , # BSD-3-Clause
61+ ' numpy/fft/pocketfft/LICENSE.md' , # BSD-3-Clause
62+ ' numpy/ma/LICENSE' , # BSD-3-Clause
63+ ' numpy/linalg/lapack_lite/LICENSE.txt' , # BSD-3-Clause
64+ ' numpy/random/LICENSE.md' , # BSD-3-Clause
65+ ' numpy/random/src/distributions/LICENSE.md' , # BSD-3-Clause AND MIT
66+ ' numpy/random/src/mt19937/LICENSE.md' , # BSD-3-Clause AND MIT
67+ ' numpy/random/src/pcg64/LICENSE.md' , # MIT
68+ ' numpy/random/src/philox/LICENSE.md' , # BSD-3-Clause
69+ ' numpy/random/src/sfc64/LICENSE.md' , # MIT
70+ ' numpy/random/src/splitmix64/LICENSE.md' , # CC0-1.0
71+ ]
72+ # The license files below apply only to files in the repo and sdist, not to
73+ # installed `numpy` packages or wheels (build/doc tools don't affect the
74+ # license of the installed package). We have to make a choice whether to add
75+ # those to the SPDX expression above since PEP 639 is unclear on the
76+ # differences; we choose to make the SPDX expression reflect *a wheel built
77+ # from the sources*.
78+ # '.spin/LICENSE', # BSD-3-Clause
79+ # 'doc/source/_static/scipy-mathjax/LICENSE', # Apache-2.0
80+ # 'numpy/_build_utils/tempita/LICENSE.txt', # BSD-3-Clause
81+ # 'vendored-meson/meson/COPYING', # Apache-2.0
82+ # Note that the commented out license files are still included in the sdist,
83+ # just not in Core Metadata and in the .dist-info directory.
84+
4385
4486[project .scripts ]
4587f2py = ' numpy.f2py.f2py2e:main'
0 commit comments