Skip to content

Commit baa638a

Browse files
authored
Merge pull request numpy#28739 from DimitriPapadopoulos/deprecate_3.10
MNT: get rid of references to Python 3.10
2 parents 19a5c6d + c6ef8f5 commit baa638a

File tree

6 files changed

+8
-20
lines changed

6 files changed

+8
-20
lines changed

doc/HOWTO_RELEASE.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ What is released
129129
================
130130

131131
* **Wheels**
132-
We currently support Python 3.8-3.10 on Windows, OSX, and Linux.
132+
We currently support Python 3.10-3.13 on Windows, OSX, and Linux.
133133

134134
* Windows: 32-bit and 64-bit wheels built using Github actions;
135135
* OSX: x64_86 and arm64 OSX wheels built using Github actions;

doc/source/dev/development_advanced_debugging.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ manager on Linux systems, but are also available on other platforms, possibly in
4949
a less convenient format. If you cannot easily install a debug build of Python
5050
from a system package manager, you can build one yourself using `pyenv
5151
<https://github.com/pyenv/pyenv>`_. For example, to install and globally
52-
activate a debug build of Python 3.10.8, one would do::
52+
activate a debug build of Python 3.13.3, one would do::
5353

54-
pyenv install -g 3.10.8
55-
pyenv global 3.10.8
54+
pyenv install -g 3.13.3
55+
pyenv global 3.13.3
5656

5757
Note that ``pyenv install`` builds Python from source, so you must ensure that
5858
Python's dependencies are installed before building, see the pyenv documentation

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ dependencies:
2424
- pytest-xdist
2525
- hypothesis
2626
# For type annotations
27-
- typing_extensions>=4.2.0 # needed for python < 3.10
27+
- typing_extensions>=4.5.0
2828
- mypy=1.15.0
2929
- orjson # makes mypy faster
3030
# For building docs

numpy/lib/tests/test_shape_base.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -800,8 +800,5 @@ def test_basic(self):
800800
# Utility
801801
def compare_results(res, desired):
802802
"""Compare lists of arrays."""
803-
if len(res) != len(desired):
804-
raise ValueError("Iterables have different lengths")
805-
# See also PEP 618 for Python 3.10
806-
for x, y in zip(res, desired):
803+
for x, y in zip(res, desired, strict=False):
807804
assert_array_equal(x, y)

numpy/tests/test_public_api.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -448,14 +448,7 @@ def test_array_api_entry_point():
448448
numpy_in_sitepackages = sysconfig.get_path('platlib') in np.__file__
449449

450450
eps = importlib.metadata.entry_points()
451-
try:
452-
xp_eps = eps.select(group="array_api")
453-
except AttributeError:
454-
# The select interface for entry_points was introduced in py3.10,
455-
# deprecating its dict interface. We fallback to dict keys for finding
456-
# Array API entry points so that running this test in <=3.9 will
457-
# still work - see https://github.com/numpy/numpy/pull/19800.
458-
xp_eps = eps.get("array_api", [])
451+
xp_eps = eps.select(group="array_api")
459452
if len(xp_eps) == 0:
460453
if numpy_in_sitepackages:
461454
msg = "No entry points for 'array_api' found"

requirements/test_requirements.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,10 @@ meson
1010
ninja; sys_platform != "emscripten"
1111
pytest-xdist
1212
pytest-timeout
13-
# for numpy.random.test.test_extending
14-
cffi; python_version < '3.10'
1513
# For testing types. Notes on the restrictions:
1614
# - Mypy relies on C API features not present in PyPy
1715
# NOTE: Keep mypy in sync with environment.yml
1816
mypy==1.15.0; platform_python_implementation != "PyPy"
19-
typing_extensions>=4.2.0
17+
typing_extensions>=4.5.0
2018
# for optional f2py encoding detection
2119
charset-normalizer

0 commit comments

Comments
 (0)