Skip to content

Commit 0c6b7eb

Browse files
committed
Merge branch 'real-imag-remove' into strip-npymath
2 parents f9ca060 + 3d29fb1 commit 0c6b7eb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+576
-621
lines changed

.github/workflows/scorecards.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
persist-credentials: false
3131

3232
- name: "Run analysis"
33-
uses: ossf/scorecard-action@80e868c13c90f172d68d1f4501dee99e2479f7af # v2.1.3
33+
uses: ossf/scorecard-action@08b4669551908b1024bb425080c797723083c031 # v2.2.0
3434
with:
3535
results_file: results.sarif
3636
results_format: sarif

.github/workflows/wheels.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ jobs:
140140
NUMPY_STAGING_UPLOAD_TOKEN: ${{ secrets.NUMPY_STAGING_UPLOAD_TOKEN }}
141141
NUMPY_NIGHTLY_UPLOAD_TOKEN: ${{ secrets.NUMPY_NIGHTLY_UPLOAD_TOKEN }}
142142
run: |
143-
conda install -y anaconda-client
143+
#conda install -y anaconda-client
144+
# pin urllib3 until anaconda-client is fixed upstream
145+
conda install -y anaconda-client 'urllib3<2.0.0'
144146
source tools/wheels/upload_wheels.sh
145147
set_upload_vars
146148
# trigger an upload to
@@ -222,7 +224,9 @@ jobs:
222224
# commented out so the sdist doesn't upload to nightly
223225
# NUMPY_NIGHTLY_UPLOAD_TOKEN: ${{ secrets.NUMPY_NIGHTLY_UPLOAD_TOKEN }}
224226
run: |
225-
conda install -y anaconda-client
227+
#conda install -y anaconda-client
228+
# pin urllib3 until anaconda-client is fixed upstream
229+
conda install -y anaconda-client 'urllib3<2.0.0'
226230
source tools/wheels/upload_wheels.sh
227231
set_upload_vars
228232
# trigger an upload to

doc/changelog/1.24.4-changelog.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
Contributors
3+
============
4+
5+
A total of 4 people contributed to this release. People with a "+" by their
6+
names contributed a patch for the first time.
7+
8+
* Bas van Beek
9+
* Charles Harris
10+
* Sebastian Berg
11+
* Hongyang Peng +
12+
13+
Pull requests merged
14+
====================
15+
16+
A total of 6 pull requests were merged for this release.
17+
18+
* `#23720 <https://github.com/numpy/numpy/pull/23720>`__: MAINT, BLD: Pin rtools to version 4.0 for Windows builds.
19+
* `#23739 <https://github.com/numpy/numpy/pull/23739>`__: BUG: fix the method for checking local files for 1.24.x
20+
* `#23760 <https://github.com/numpy/numpy/pull/23760>`__: MAINT: Copy rtools installation from install-rtools.
21+
* `#23761 <https://github.com/numpy/numpy/pull/23761>`__: BUG: Fix masked array ravel order for A (and somewhat K)
22+
* `#23890 <https://github.com/numpy/numpy/pull/23890>`__: TYP,DOC: Annotate and document the ``metadata`` parameter of...
23+
* `#23994 <https://github.com/numpy/numpy/pull/23994>`__: MAINT: Update rtools installation
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Matrix transpose support for ndarrays
2+
-------------------------------------
3+
NumPy now offers support for calculating the matrix transpose of an array. The
4+
matrix transpose is equivalent to swapping the last two axes of an array.
5+
`np.ndarray` and `np.ma.MaskedArray` now exposes a `.mT` attribute.

doc/release/upcoming_changes/23871.change.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This changes the following distinct cases:
1515
to integer first) or ``string_array == "0"`` (if the input is only ever ``0`` or ``1``).
1616
To get the new result on old NumPy versions use ``string_array != ""``.
1717
* ``np.nonzero(string_array)`` previously ignored whitespace so that
18-
a string only containing whitepsace was considered ``False``.
18+
a string only containing whitespace was considered ``False``.
1919
Whitespace is now considered ``True``.
2020

2121
This change does not affect ``np.loadtxt``, ``np.fromstring``, or ``np.genfromtxt``.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
* Being fully context and thread-safe, ``np.errstate`` can only
2-
be entered once now. It is possible to enter it again after
3-
exiting first.
2+
be entered once now.
43
* ``np.setbufsize`` is now tied to ``np.errstate()``: Leaving an
54
``np.errstate`` context will also reset the ``bufsize``.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
* The deprecation of ``set_numeric_ops`` and the C functions
2+
``PyArray_SetNumericOps`` and ``PyArray_GetNumericOps`` has
3+
been expired and the functions removed. (Deprecated NumPy 1.16)
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
* The ``numpy/old_defines.h`` which was part of the API deprecated since NumPy 1.7
2+
has been removed. This removes macros of the form ``PyArray_CONSTANT``.
3+
The script at https://github.com/numpy/numpy/blob/main/tools/replace_old_macros.sed
4+
may be useful to convert them to the ``NPY_CONSTANT`` version.

doc/source/conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,10 @@ def setup(app):
191191
"twitter_url": "https://twitter.com/numpy_team",
192192
"collapse_navigation": True,
193193
"external_links": [
194-
{"name": "Learn", "url": "https://numpy.org/numpy-tutorials/"}
194+
{"name": "Learn", "url": "https://numpy.org/numpy-tutorials/"},
195+
{"name": "NEPs", "url": "https://numpy.org/neps"}
195196
],
197+
"header_links_before_dropdown": 6,
196198
# Add light/dark mode and documentation version switcher:
197199
"navbar_end": ["theme-switcher", "version-switcher", "navbar-icon-links"],
198200
"switcher": {

doc/source/dev/development_environment.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ Testing builds
7575
Before running the tests, first install the test dependencies::
7676

7777
$ python -m pip install -r test_requirements.txt
78+
$ python -m pip install asv # only for running benchmarks
79+
7880

7981
To build the development version of NumPy and run tests, spawn
8082
interactive shells with the Python import paths properly set up etc.,

0 commit comments

Comments
 (0)