Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strip complex compat layer from npymath #2

Open
wants to merge 1,062 commits into
base: real-imag-remove
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1062 commits
Select commit Hold shift + click to select a range
8d0bdd4
CI: Add CI test for ppc64 with power10 as baseline
seiko2plus Sep 26, 2023
b651406
ENH: Implement a compile-time test on PPC64 to determine support for …
seiko2plus Oct 5, 2023
7a84442
ENH, TST: Modify half-precision tests to deal with FP HW exceptions
seiko2plus Oct 25, 2023
771beb0
BUG: Resolve build issue on ppc64 with Power9 or higher as baseline
seiko2plus Oct 25, 2023
add212a
Update .mailmap
pierreloicq Oct 28, 2023
64fa171
EHN: adding support for vector atol and rtol in np.all_isclose and np…
maxwell-aladago Aug 23, 2019
3030159
MAINT: isclose/allclose: simplify support for array-like tolerances
mdhaber Oct 29, 2023
b977663
DOC: "What is NumPy?" section of the documentation
phy6boy Oct 30, 2023
d954eb6
DOC: Include np.long in scalars.rst. Fix warnings.
mtsokol Oct 30, 2023
f45bf07
MAINT: Add missing `noexcept` to shuffle helpers
seberg Oct 30, 2023
967c6ae
Move back to .dia file
mtsokol Oct 30, 2023
71a7e0d
MAINT: Unpin urllib3 for anaconda-client install
charris Oct 30, 2023
ae1cb2d
Merge pull request #25032 from seberg/random-unhappy-cython
charris Oct 30, 2023
402c39e
Merge pull request #25029 from phy6boy/gh25027
mattip Oct 31, 2023
28a696b
MAINT: Adjust typing for long
mtsokol Oct 31, 2023
f59eb32
BLD: make macOS version check for Accelerate NEWLAPACK more robust
rgommers Oct 31, 2023
2f34979
Merge pull request #25040 from rgommers/fix-macos-version-check
charris Oct 31, 2023
79765da
Merge pull request #25019 from pierreloicq/pierreloicq-patch-1
charris Oct 31, 2023
b392838
ENH: DType flag for unique per-array descriptors
ngoldbaum Oct 23, 2023
eab85c7
MAINT: account for dtype replacement in boolean subscripting
ngoldbaum Oct 27, 2023
d22d8ec
MAINT: use explicit input and output dtypes in fasttake
ngoldbaum Oct 27, 2023
a7aa6a3
MAINT: fix error handling for finalize invocation
ngoldbaum Oct 31, 2023
e85a828
Update numpy/_core/src/multiarray/ctors.c
ngoldbaum Oct 31, 2023
b046293
BUG: ensure passing `np.dtype` to itself doesn't crash
ngoldbaum Oct 31, 2023
42c33f3
Merge pull request #24988 from ngoldbaum/unique-array-descr
ngoldbaum Oct 31, 2023
05211ce
MAINT: Created `main` to support imports
ganesh-k13 Oct 28, 2023
62ae1e3
ENH: Added a `notes` command for `spin`
ganesh-k13 Oct 28, 2023
ea84509
MAINT: Use installed NumPy for version
ganesh-k13 Oct 31, 2023
95ca101
Merge pull request #25042 from ngoldbaum/fix-dtype-autophagia-segfault
seberg Nov 1, 2023
66c3afb
BUG,MAINT: Fix use of `int_` in mtrand.pyi (including some fixes)
seberg Nov 1, 2023
f3dd474
MAINT,BUG: Prefer using `long` for `int_` in _generator.pyi and fix s…
seberg Nov 1, 2023
fc98e38
MAINT: Prefer use of `long` over `int_` in typing and reorder slightly
seberg Nov 1, 2023
a903150
Fixup numerictypes.pyi for long change
seberg Nov 1, 2023
e2419c0
Random fixups and test adaptation
seberg Nov 1, 2023
979cd87
Fixup randint/integers. type[bool] and type[int] was correct afte rall
seberg Nov 1, 2023
96e5d1f
one more fixup for windows (tointmax is hardcoded to 64bit)
seberg Nov 1, 2023
20103e7
Merge pull request #25039 from mtsokol/adjust-typing-for-long
ngoldbaum Nov 1, 2023
f1d1491
API: Make intp the default integer in NumPy core
seberg Jul 13, 2023
e3af907
API: Remove `int_` and `uint_` from Cython as they are misleading as …
seberg Jul 13, 2023
fbbecab
MAINT: Keep using `long` in for legacy random number generation
seberg Jul 13, 2023
9b9325b
fixup cython
seberg Jul 13, 2023
044e56e
fixup initial change
seberg Jul 13, 2023
329d6bf
API: Add NPY_DEFAULT_INT which is runtime (unless NumPy >2 is forced)
seberg Jul 13, 2023
4d13583
fixup initial (add/multiply reduction)
seberg Jul 13, 2023
830c912
Fixup NPY_DEFAULT_INT definition (and version exposure)
seberg Jul 13, 2023
da9055e
ENH: Allow int64 explicitly in `ldexp`
seberg Jul 20, 2023
1f942e3
TST: Adapt _ufunc_tests to use intp in ufuncs (default integer)
seberg Jul 20, 2023
e03e93e
API: rewire/rename np.int_ and np.uint scalars and add np.long/np.ulong
seberg Jul 20, 2023
6402c8e
BUG: Fix (probably) legacy binomial and use `np.long` in random
seberg Jul 21, 2023
59654aa
TST: Adapt some tests to ensure long use and test default int a bit
seberg Jul 21, 2023
2a2600f
TST: Fix ufunc type resolution test for long (and a bit more)
seberg Jul 21, 2023
ab03464
TST: Fix legacy random test hashes to toggle on long (not default int)
seberg Jul 21, 2023
fc8ace2
TST: Remove duplicated test that needed adaption for default int change
seberg Jul 21, 2023
a901757
TST: Fix inplace_add ufunc test by using intp/default int
seberg Jul 21, 2023
ab675a3
TST: Adjust random test for long (not default int) return and branching
seberg Jul 21, 2023
9532739
Use intp in np.random.binomial for inputs (core uses int64 always)
seberg Jul 21, 2023
a205087
BUG: Fix previously unused int64/uint64 in umath generation for cross…
seberg Jul 21, 2023
8874e8e
BUG: Another random path that should probably keep using long
seberg Jul 21, 2023
4a9f8a2
TST: One more small test fixup for changed default dtype
seberg Jul 21, 2023
60bb095
BUG,API: like int32, intp must map to long if long and int are same size
seberg Jul 21, 2023
a2ceb3d
MAINT: Fix hypergeometric to use INT64, but raise if values surpass long
seberg Jul 21, 2023
cfe9960
Try with py_ssize_t (I am very unclear why float doesn't fail earlier)
seberg Jul 21, 2023
dd60409
Simply us Python `int()`...
seberg Jul 21, 2023
3e38281
BUG: Ensure `randint` returns a Python integer by default
seberg Aug 9, 2023
8f3fa96
Adjust type aliases after rebase
mtsokol Oct 9, 2023
80308a7
Apply linting
mtsokol Oct 9, 2023
960a4f0
TST: Fix random test for `dtype=int` being special cased in mtrand
seberg Oct 10, 2023
9e69004
DOC: Rephrase now incorrect comment in mtrand.pyx
seberg Oct 17, 2023
25b9d6c
TYP: Fixup typing for long changes
seberg Oct 19, 2023
178966c
TST,BUG: Work around random bug in tests
seberg Oct 26, 2023
83b5125
TST: Fix test due to changes on main
seberg Oct 27, 2023
a00fed5
TST: Fix randint test the right way
seberg Oct 27, 2023
b6df6cd
MAINT: Move Long-bound checks into helper
seberg Oct 27, 2023
2cb3ab6
Update numpy/random/mtrand.pyx
seberg Oct 27, 2023
fe23665
DOC: Add release note and transition guide entry
seberg Oct 30, 2023
6fbcd01
Fix typing and typo based on review
seberg Oct 31, 2023
b3bf8c3
TYP: Try fixing/working around windows ctypeslib mypy failures
seberg Oct 31, 2023
ba58f8b
Update doc/source/numpy_2_0_migration_guide.rst
seberg Nov 1, 2023
867d66e
TST: Ensure test is not run on 32bit platforms
seberg Nov 1, 2023
72e44be
MAINT: Make bitfield integers unsigned
seberg Nov 1, 2023
86f230f
DOC: correct Logo SVG files rendered in dark by Figma (#24975)
iaminebriki Nov 1, 2023
01481e8
Merge pull request #25037 from charris/unpin-urllib3
seberg Nov 1, 2023
147eaa5
DOC: update ndarray.item docstring (#25006)
liang3zy22 Nov 1, 2023
41b0090
Merge pull request #25050 from seberg/small-fixups
charris Nov 2, 2023
7a4f6b0
Merge pull request #25051 from seberg/unsigned-bitfield
charris Nov 2, 2023
96fbb30
MAINT: Use `pyproject.toml` version for `spin notes`
ganesh-k13 Nov 2, 2023
e8edc2b
CI: add a split Netlib BLAS job, no pkg-config, with OpenSUSE container
rgommers Oct 31, 2023
4cfeedb
DOC: Small fixes for NEP 52
mtsokol Nov 2, 2023
439762c
Merge pull request #24224 from seberg/intp-default-int
ngoldbaum Nov 2, 2023
3753282
Merge pull request #25030 from mtsokol/numpy-long-doc-fix
ngoldbaum Nov 2, 2023
13e55ba
Merge pull request #25056 from mtsokol/nep-52-small-changes
ngoldbaum Nov 2, 2023
a7f7138
DOC: standardize capitalization of headings (#25016)
mdhaber Nov 2, 2023
3526e19
Merge pull request #24981 from mdhaber/gh15692
ngoldbaum Nov 2, 2023
2218936
MAINT: Add `npy_2_compat.h` which is designed two work also if vendored
seberg Nov 2, 2023
34521b4
CI: add blas, cblas and lapack to FreeBSD CI job
rgommers Nov 2, 2023
24fe80d
BLD: include Meson submodule update for Netlib BLAS/LAPACK dependencies
rgommers Nov 1, 2023
83c780d
ENH: Add find/rfind ufuncs for unicode and byte dtypes
lysnikolaou Nov 2, 2023
671fa53
Use NPY_DEFAULT_INT rather than NPY_LONG
lysnikolaou Nov 2, 2023
ac807c9
Merge pull request #25055 from rgommers/fix-netlib-blas
mattip Nov 2, 2023
bbf83bc
API: Enforce ABI version and print info when compiled against 1.x
seberg Oct 18, 2023
7e13d0d
MAINT: fix np.long typing nitpick
mtsokol Nov 2, 2023
22ab9aa
Merge pull request #24868 from lysnikolaou/string-ufuncs-find-rfind
seberg Nov 2, 2023
d03fe5a
Merge pull request #25059 from mtsokol/long-typing-nitpick
seberg Nov 3, 2023
c350500
Merge pull request #25057 from seberg/compat-headers
seberg Nov 3, 2023
f794aa1
ENH: Change add/isalpha ufuncs to use buffer class & general clean-up
lysnikolaou Nov 3, 2023
1059da9
BLD: change default of the `allow-noblas` option to true.
rgommers Nov 3, 2023
0453b92
BLD: Skip MSVC compatibility when building against mingw-w64 Python
lazka Oct 20, 2023
9123d43
BLD: Fix mingw detection when building with Clang
lazka Oct 20, 2023
5dfe4cb
Merge pull request #25063 from rgommers/allow-noblas-again
charris Nov 3, 2023
ade16e8
DOC: add missing word to internals.rst (#25067)
mykykh Nov 4, 2023
657c3b8
TST: skip flaky test in test_histogram
mattip Nov 5, 2023
b54e6f9
Merge pull request #25068 from mattip/skip-test
seberg Nov 5, 2023
b7045c9
MAINT: Use `spin` .run
ganesh-k13 Nov 5, 2023
29cbb1f
Merge pull request #24968 from lazka/mingw-python-build-fixes
mattip Nov 5, 2023
29673db
Use size_t in memcpy & memcmp // rename length to num_codepoints
lysnikolaou Nov 6, 2023
43aaf20
BUG: alpha doesn't use REAL(10)
matoro Nov 6, 2023
9768cc3
DOC: Clarify a point in basic indexing user guide (#24996)
djramones Nov 6, 2023
ca75955
MAINT: Bump actions/dependency-review-action from 3.1.0 to 3.1.1
dependabot[bot] Nov 6, 2023
aea479b
Merge pull request #25082 from numpy/dependabot/github_actions/action…
charris Nov 6, 2023
5e595fc
DOC: fix reference in user/basics.rec.html#record-arrays (#24984)
shubhalgupta Nov 7, 2023
14f2257
Merge pull request #24806 from seiko2plus/issue_24789
charris Nov 7, 2023
991a648
BUG, BLD: Fixed VSX4 feature check
helloworld922 Nov 7, 2023
7ff7ec7
ENH: optimisation of array_equal (#24663)
Carreau Nov 7, 2023
c91f775
Merge pull request #25062 from lysnikolaou/string-ufuncs-use-buffer
ngoldbaum Nov 7, 2023
0834600
BUG: Make n a long int for np.random.multinomial
thalassemia Nov 8, 2023
a555e7d
Merge pull request #25017 from ganesh-k13/bld_24080_notes
stefanv Nov 8, 2023
09db9c7
ENH: Add startswith & endswith ufuncs for unicode and bytes dtypes
lysnikolaou Nov 8, 2023
69b9afa
Merge pull request #25089 from helloworld922/main
seiko2plus Nov 8, 2023
43afba5
MAINT: Bump actions/dependency-review-action from 3.1.1 to 3.1.2
dependabot[bot] Nov 8, 2023
d22a591
Styling: add newline before else
lysnikolaou Nov 8, 2023
5c93037
Add comment to adjust_offsets
lysnikolaou Nov 8, 2023
dbdb8d5
BLD: Fix features.h detection for Meson builds
mbargull Nov 8, 2023
ee75c87
Merge pull request #24947 from lysnikolaou/string-ufuncs-startswith-e…
ngoldbaum Nov 8, 2023
ba49b18
Merge pull request #25091 from numpy/dependabot/github_actions/action…
charris Nov 9, 2023
1564ce4
Merge branch 'main' into string-ufuncs-isdigit-etc
lysnikolaou Nov 9, 2023
196a01c
Fixes to use of buffer after merge
lysnikolaou Nov 9, 2023
8ac1346
Minor improvements to docstrings
lysnikolaou Nov 9, 2023
fcbf56d
Merge pull request #25090 from thalassemia/multinomial_long
seberg Nov 9, 2023
1d9a6f4
TST: add a test
mattip Nov 9, 2023
38fe01b
BUG: Avoid intp conversion regression in Cython 3
seberg Nov 9, 2023
e26e75e
TST: Check that Cython intp conversion uses normal integer rules
seberg Nov 9, 2023
cab680c
BLD: blocklist complex trig functions on musl
mattip Nov 9, 2023
5a077d8
DOC: Provide migration notes for scalar inspection functions
mtsokol Nov 6, 2023
c77ab47
unskip musl complex trig tests
mattip Nov 9, 2023
9ea36bf
frexp is still not right on musl
mattip Nov 9, 2023
391554a
Merge pull request #25081 from mtsokol/scalar-migration-guides
ngoldbaum Nov 9, 2023
88db6a0
DOC: Fix license identifier for OpenBLAS
stefan6419846 Nov 10, 2023
086a23b
DOC: Fix license identifier for OpenBLAS
stefan6419846 Nov 10, 2023
d50840b
DOC: Fix license identifier for OpenBLAS
stefan6419846 Nov 10, 2023
ceaeee0
MAINT: Print towncrier output file location
ganesh-k13 Nov 10, 2023
19e26ec
Change isspace/isdigit/isalpha to be locale-independent
lysnikolaou Nov 10, 2023
38bb5bc
Use NumPyOS_ascii_* utilities instead of python macros
lysnikolaou Nov 10, 2023
eafca03
Merge pull request #25094 from seberg/avoid-Py_ssize_t
charris Nov 10, 2023
79ccbd1
Merge pull request #25102 from ganesh-k13/maint_25017_follow
charris Nov 10, 2023
9ca54ea
Remove '8-bit string' references
lysnikolaou Nov 10, 2023
9af7ed2
DEP: Deprecate `__array_prepare__`
seberg Nov 10, 2023
9211885
DOC: Add release note for `__array_prepare__` deprecation
seberg Nov 10, 2023
893db31
Merge pull request #24951 from lysnikolaou/string-ufuncs-isdigit-etc
ngoldbaum Nov 10, 2023
9212ec1
MAINT: ensure NEP 50 promotion is not broken in isclose and allclose
mhvk Oct 30, 2023
8568549
DOC: standardize capitalization of NEP headings (#25060)
mdhaber Nov 11, 2023
9340fca
Merge pull request #25099 from stefan6419846/openblas-license
mattip Nov 11, 2023
a68ada7
BLD,BUG: quadmath required where available [f2py]
HaoZeke Nov 5, 2023
ff8c34f
DOC: Add a pointer to the SciPy fortran doc
HaoZeke Nov 5, 2023
929f239
DOC: Adapt comment on supported toolchains
HaoZeke Nov 5, 2023
a794b59
MAINT: Kill 1.16 cliargs [f2py] [skip ci]
HaoZeke Nov 12, 2023
5945fba
MAINT: [f2py] CLI signals meson flags [skip ci]
HaoZeke Nov 12, 2023
25527f9
MAINT: Remove absoft flag [skip ci]
HaoZeke Nov 12, 2023
9947aca
DOC: Document the new CLI options [f2py]
HaoZeke Nov 12, 2023
3fd12f3
DOC: Add a note about only: and skip:
HaoZeke Nov 12, 2023
d5c25ad
DOC: angle: correct documentation of convention when magnitude of arg…
mdhaber Nov 12, 2023
e4eceb5
MAINT: Update main after 1.26.2 release.
charris Nov 13, 2023
b3ebf84
Merge pull request #25127 from mdhaber/gh21593
mattip Nov 13, 2023
fc8292d
Merge pull request #24878 from mdhaber/gh14343
mattip Nov 13, 2023
58cbbe0
Merge pull request #25073 from HaoZeke/winF2PYquadmath
mattip Nov 13, 2023
3b98c61
Merge pull request #25078 from matoro/main
mattip Nov 13, 2023
676534c
Merge pull request #25092 from mbargull/fix-meson-HAVE_FEATURES_H
seberg Nov 13, 2023
a72d735
API: Remove rather than just deprecate `__array_prepare__`
seberg Nov 13, 2023
fa21c58
Fix -fsanitize=alignment issue in numpy/_core/src/multiarray/arraytyp…
hawkinsp Nov 13, 2023
15d0669
API: Remove The MapIter API from public
seberg Jul 27, 2023
d36e8a7
DOC: Remove dead comments [f2py]
HaoZeke Nov 12, 2023
999d0e1
MAINT: Remove now unnecessary MapIter code that preserved ABI
seberg Jul 27, 2023
8ed4ec6
DOC: Add release note for removal of `MapIter` related public API
seberg Jul 27, 2023
64768df
DOC: Tweak mapiter removal note and fix PR number
seberg Nov 13, 2023
6b980b0
DOC: Update `__array_wrap__` doc based on Martens suggestion
seberg Nov 13, 2023
5b1317c
Merge pull request #25124 from HaoZeke/f2pyCLIcruft
mattip Nov 13, 2023
74e03d3
Merge pull request #25105 from seberg/depr-array-prepare
mattip Nov 13, 2023
37b77f4
MAINT: Bump actions/dependency-review-action from 3.1.2 to 3.1.3
dependabot[bot] Nov 13, 2023
59d94b1
Merge pull request #25131 from charris/post-1.26.2-release-update
rgommers Nov 13, 2023
a901911
BLD: limit scipy-openblas32 wheel to 0.3.23.293.2 (#25085)
mattip Nov 13, 2023
3c853e1
TYP: add None to `__getitem__` in `numpy.array_api` (#25022)
Illviljan Nov 13, 2023
585e8fb
Merge pull request #25139 from numpy/dependabot/github_actions/action…
charris Nov 13, 2023
8446a47
BUG: Fix FP overflow error in division when the divisor is scalar
seiko2plus Nov 13, 2023
f41a399
DOC: clarify boolean index error message
mdhaber Nov 14, 2023
919fd3a
TST: Build cython checks testing module only once
seberg Nov 14, 2023
3fc43d3
TST: Explicitly pass NumPy path to cython during tests
seberg Nov 14, 2023
c7f8c14
ENH: Add str_len & count ufuncs for unicode and bytes dtypes
lysnikolaou Nov 10, 2023
d7b305f
DOC: Fix typo in NumPy 2.0 migration guide
emilyhunt Nov 14, 2023
2a98b4d
Merge pull request #25144 from emilyhunt/DOC-Fix-typo-in-NumPy-2.0-mi…
seberg Nov 14, 2023
562d55f
BUG: fix issues with `newaxis` and `linalg.solve` in `numpy.array_api`
rgommers Nov 14, 2023
34ab283
Merge pull request #25140 from mdhaber/gh24624
seberg Nov 14, 2023
0f61000
Merge pull request #25146 from rgommers/array-api-fixes
seberg Nov 14, 2023
b3d71f7
Merge pull request #25141 from seberg/cytest
mattip Nov 15, 2023
47c8aa2
Merge branch 'main' into string-ufuncs-strlen-count
lysnikolaou Nov 15, 2023
e256dcc
Address feedback // Improve docstring and add comment to string_count
lysnikolaou Nov 15, 2023
f7ec2fc
BLD, CI: revert pinning scipy-openblas
mattip Nov 15, 2023
85d1fe3
Merge pull request #25138 from seberg/mapiter-removal
mattip Nov 15, 2023
e801e7a
Merge pull request #25104 from lysnikolaou/string-ufuncs-strlen-count
ngoldbaum Nov 15, 2023
7477deb
MAINT: Cleanup mapiter struct a bit
seberg Nov 15, 2023
51ee17b
Merge pull request #25151 from mattip/openblas-prefix
seberg Nov 15, 2023
3ed0e5a
ENH: Disable SIMD single-precision division optimization on armv7
seiko2plus Nov 15, 2023
8aeb08a
API: Remove PyArray_REFCNT and NPY_REFCOUNT
seberg Nov 15, 2023
0419d0a
Merge pull request #25129 from seiko2plus/issue_25097
seberg Nov 15, 2023
71f7dcf
Merge pull request #25136 from hawkinsp/align
seberg Nov 15, 2023
31b33a4
API: Make `encoding=None` the default in loadtxt
seberg Nov 15, 2023
1d0b04f
DOC: Fixup docs for new `encoding=None` default
seberg Nov 16, 2023
798a3d1
DOC: Remove `u` string prefixes from docs
seberg Nov 16, 2023
bdb0c13
ENH: Add the Array Iterator API to Cython (#24691)
zoj613 Nov 16, 2023
63175cc
BUG: Fix moving compiled executable to root with f2py -c on Windows
jmrohwer Nov 16, 2023
83112cd
Merge pull request #25156 from seberg/refcount-cleanup
ngoldbaum Nov 16, 2023
9707ca3
DOC: mention submodule init in source install instructions
ngoldbaum Nov 16, 2023
706e9aa
Merge pull request #25165 from ngoldbaum/submodule-install
charris Nov 16, 2023
32fad57
Merge pull request #25158 from seberg/loadtxt-encoding
charris Nov 16, 2023
8f3dfa5
BUG: Fix ma.convolve if propagate_mask=False (#24869)
larrybradley Nov 17, 2023
4dc749e
Merge pull request #25154 from seberg/mapiter-cleanup
mattip Nov 17, 2023
6b5fb5e
Merge pull request #24949 from seberg/import-error
mattip Nov 17, 2023
a091a25
Merge pull request #25160 from jmrohwer/f2pycompile
HaoZeke Nov 17, 2023
605e345
Merge pull request #24939 from melissawm/legacy-directive
HaoZeke Nov 17, 2023
4ba7282
DOC: replace integer overflow example
mdhaber Nov 18, 2023
0cc05f6
TST: Add one for gh-22819
HaoZeke Nov 18, 2023
9140edd
BUG: Correctly disallow shadowed modulenames
HaoZeke Nov 19, 2023
3961474
MAINT: Strengthen the validation of pyf files
HaoZeke Nov 19, 2023
0f6e357
TST: Add tests for CLI .pyf file work
HaoZeke Nov 19, 2023
fbf0ea0
MAINT: Fix implementation for gh22819 [f2py]
HaoZeke Nov 19, 2023
04a280e
DOC: Add an entry to the changelog [f2py]
HaoZeke Nov 19, 2023
1c4767f
DOC: Rework documentation on -m [f2py]
HaoZeke Nov 19, 2023
50b0e81
MAINT: Handle case where -m is None
HaoZeke Nov 19, 2023
18c6157
Merge pull request #25181 from HaoZeke/newGH22819
mattip Nov 19, 2023
d0f00cb
MAINT: Fix sneaky typo [f2py]
HaoZeke Nov 19, 2023
a298e08
MAINT: Don't escape newlines from f2py [f2py]
HaoZeke Nov 19, 2023
33778a7
MAINT: Create a useblocks function [f2py]
HaoZeke Nov 19, 2023
3e442fc
BUG: Add use-block handling for common blocks
HaoZeke Nov 19, 2023
ce940a0
TST: Add a test for gh-19161 [f2py]
HaoZeke Nov 19, 2023
77ddda8
TST: Ensure f2py defaults are tested
HaoZeke Nov 19, 2023
6c45668
Merge pull request #25185 from HaoZeke/fixNonemodule
mattip Nov 19, 2023
b9599af
DOC: Add a note to the release [f2py] common-kind
HaoZeke Nov 19, 2023
907ccc3
Merge pull request #25186 from HaoZeke/gh-19161
mattip Nov 19, 2023
d915524
MAINT: Replace deprecated ctypes.ARRAY(item_type, size) with item_typ…
hroncok Nov 20, 2023
8406827
Merge pull request #25176 from mdhaber/gh21326
seberg Nov 20, 2023
b850c3b
Merge pull request #25198 from hroncok/ctypesarray
seberg Nov 20, 2023
bafe0fe
Merge branch 'main' into strip-npymath
lysnikolaou Nov 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
32 changes: 15 additions & 17 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,8 @@ version: 2.1
_defaults: &defaults
docker:
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.1/circleci-images/
# circleci/python3.8 images come with old versions of Doxygen(1.6.x),
# therefore a new base image chose instead to guarantee to
# have a newer version >= 1.8.10 to avoid warnings
# that related to the default behaviors or non-exist config options
- image: cimg/python:3.9
# documented at https://circleci.com/developer/images/image/cimg/python
- image: cimg/python:3.11.4
working_directory: ~/repo


Expand All @@ -24,7 +20,7 @@ jobs:
- checkout

- run:
name: Check-skip
name: check skip
command: |
export git_log=$(git log --max-count=1 --pretty=format:"%B" | tr "\n" " ")
echo "Got commit message:"
Expand All @@ -44,41 +40,43 @@ jobs:
- run:
name: update submodules
command: |
git submodule init
git submodule update
git submodule update --init

- run:
name: create virtual environment, install dependencies
name: install system dependencies
command: |
sudo apt-get update
#sudo apt-get install -y python3.9 python3.9-dev python3-venv graphviz texlive-fonts-recommended texlive-latex-recommended \
sudo apt-get install -y graphviz texlive-fonts-recommended texlive-latex-recommended \
texlive-latex-extra latexmk texlive-xetex texlive-lang-chinese doxygen
python3.9 -m venv venv
. venv/bin/activate

- run:
name: build numpy
name: build NumPy
command: |
python3.11 -m venv venv
. venv/bin/activate
pip install --progress-bar=off -r test_requirements.txt
pip install --progress-bar=off -r doc_requirements.txt
# get newer, pre-release versions of critical packages
pip install --progress-bar=off --pre --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple -r doc_requirements.txt
# then install numpy HEAD, which will override the version installed above
pip install . --config-settings=setup-args="-Dallow-noblas=true"

- run:
name: create release notes
command: |
. venv/bin/activate
VERSION=$(python -c "import setup; print(setup.VERSION)")
VERSION=$(pip show numpy | grep Version: | cut -d ' ' -f 2 | cut -c 1-5)
towncrier build --version $VERSION --yes
./tools/ci/test_all_newsfragments_used.py

- run:
name: run doctests on documentation
command: |
. venv/bin/activate
(cd doc ; git submodule update --init)
# Note: keep these two checks separate, because they seem to
# influence each other through changing global state (e.g., via
# `np.polynomial.set_default_printstyle`)
python tools/refguide_check.py --rst
python tools/refguide_check.py --doctests

- run:
name: build devdocs w/ref warnings
Expand Down
5 changes: 4 additions & 1 deletion .cirrus.star
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,7 @@ def main(ctx):
if wheel:
return fs.read("tools/ci/cirrus_wheels.yml")

return fs.read("tools/ci/cirrus_macosx_arm64.yml")
if int(pr_number) < 0:
return []

return fs.read("tools/ci/cirrus_arm.yml")
2 changes: 1 addition & 1 deletion .devcontainer/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

curl micro.mamba.pm/install.sh | bash
"${SHELL}" <(curl -Ls micro.mamba.pm/install.sh) < /dev/null

conda init --all
micromamba shell init -s bash
Expand Down
21 changes: 8 additions & 13 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,22 @@
# Mark some files as vendored
numpy/linalg/lapack_lite/f2c.c linguist-vendored
numpy/linalg/lapack_lite/f2c.h linguist-vendored
tools/npy_tempita/* linguist-vendored
numpy/core/include/numpy/libdivide/* linguist-vendored
numpy/core/src/umath/svml/* linguist-vendored
numpy/core/src/common/dlpack/dlpack.h linguist-vendored
numpy/_core/include/numpy/libdivide/* linguist-vendored
numpy/_core/src/umath/svml/* linguist-vendored
numpy/_core/src/common/dlpack/dlpack.h linguist-vendored

# Mark some files as generated
numpy/linalg/lapack_lite/f2c_*.c linguist-generated
numpy/linalg/lapack_lite/lapack_lite_names.h linguist-generated
numpy/_version.py linguist-generated

# versioneer config
numpy/_version.py export-subst
# version generated from pyproject.toml during build
numpy/version.py linguist-generated

# Configuration files
*.ini text
*.cfg text
./MANIFEST.in text
./numpy/core/npymath.ini.in text
./numpy/core/mlib.ini.in text
./site.cfg.example text
./numpy/_core/npymath.ini.in text
./numpy/_core/mlib.ini.in text

# Python sources
*.py text diff=python
Expand Down Expand Up @@ -107,8 +103,7 @@ numpy/_version.py export-subst
./doc/neps/index.rst.tmpl text
./benchmarks/asv_compare.conf.json.tpl text
./tools/swig/test/*.i text
./tools/gitpod/gitpod.Dockerfile text
./doc/source/dev/gitwash/git_links.inc text
./doc/source/reference/simd/*.inc text
./numpy/core/src/_simd/*.inc text diff=c
./numpy/_core/src/_simd/*.inc text diff=c

27 changes: 0 additions & 27 deletions .github/actions/action.yml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/meson_actions/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: MesonBuildTest
description: "checkout repo, build, and test numpy"
runs:
using: composite
steps:
- name: Build
shell: 'script -q -e -c "bash --noprofile --norc -eo pipefail {0}"'
env:
TERM: xterm-256color
PKG_CONFIG_PATH: ./.openblas
run: |
echo "::group::Installing Build Dependencies"
pip install -r build_requirements.txt
echo "::endgroup::"
echo "::group::Building NumPy"
spin build --clean -- ${MESON_ARGS[@]}
echo "::endgroup::"

- name: Meson Log
shell: bash
if: always()
run: |
echo "::group::Meson Log"
cat build/meson-logs/meson-log.txt
echo "::endgroup::"

- name: Test
shell: 'script -q -e -c "bash --noprofile --norc -eo pipefail {0}"'
env:
TERM: xterm-256color
run: |
echo "::group::Installing Test Dependencies"
pip install pytest pytest-xdist hypothesis typing_extensions setuptools
echo "::endgroup::"
echo "::group::Test NumPy"
spin test
echo "::endgroup::"
Loading