Skip to content

Commit

Permalink
MAINT: Drop Python 3.10 support.
Browse files Browse the repository at this point in the history
Dropping support is in line with SPEC 0, NumPy 2.3 is due sometime
in March 2025.
  • Loading branch information
charris committed Nov 26, 2024
1 parent 4e8f724 commit 688669f
Show file tree
Hide file tree
Showing 13 changed files with 29 additions and 32 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: '3.10'
python-version: '3.11'
- name: Install linter requirements
run:
python -m pip install -r requirements/linter_requirements.txt
Expand All @@ -55,7 +55,7 @@ jobs:
MESON_ARGS: "-Dallow-noblas=true -Dcpu-baseline=none -Dcpu-dispatch=none"
strategy:
matrix:
version: ["3.10", "3.11", "3.12", "3.13", "3.13t"]
version: ["3.11", "3.12", "3.13", "3.13t"]
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
Expand Down Expand Up @@ -129,7 +129,7 @@ jobs:
fetch-tags: true
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: '3.10'
python-version: '3.11'
- name: Install build and test dependencies from PyPI
run: |
pip install -r requirements/build_requirements.txt
Expand Down Expand Up @@ -164,7 +164,7 @@ jobs:
fetch-tags: true
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: '3.10'
python-version: '3.11'
- name: Install build and benchmarking dependencies
run: |
sudo apt-get update
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux_musl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
fi
git submodule update --init
ln -s /usr/local/bin/python3.10 /usr/local/bin/python
ln -s /usr/local/bin/python3.11 /usr/local/bin/python
- name: test-musllinux_x86_64
env:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/linux_simd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
fetch-tags: true
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: '3.10'
python-version: '3.11'
- uses: ./.github/meson_actions
name: Build/Test

Expand All @@ -81,7 +81,7 @@ jobs:
fetch-tags: true
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: '3.10'
python-version: '3.11'

- name: Install GCC/8/9
run: |
Expand Down Expand Up @@ -127,12 +127,12 @@ jobs:
- [
"without avx512",
"-Dallow-noblas=true -Dcpu-dispatch=SSSE3,SSE41,POPCNT,SSE42,AVX,F16C,AVX2,FMA3",
"3.10"
"3.11"
]
- [
"without avx512/avx2/fma3",
"-Dallow-noblas=true -Dcpu-dispatch=SSSE3,SSE41,POPCNT,SSE42,AVX,F16C",
"3.10"
"3.11"
]

env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ jobs:
build_runner:
- [ macos-13, "macos_x86_64" ]
- [ macos-14, "macos_arm64" ]
version: ["3.10", "3.13t"]
version: ["3.11", "3.13t"]

steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
os_python:
- [ubuntu-latest, '3.12']
- [windows-latest, '3.11']
- [macos-latest, '3.10']
- [macos-latest, '3.11']
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
- [macos-14, macosx_arm64, accelerate] # always use accelerate
- [windows-2019, win_amd64, ""]
- [windows-2019, win32, ""]
python: ["cp310", "cp311", "cp312", "pp310", "cp313", "cp313t"]
python: ["cp311", "cp312", "pp310", "cp313", "cp313t"]
exclude:
# Don't build PyPy 32-bit windows
- buildplat: [windows-2019, win32, ""]
Expand Down Expand Up @@ -231,7 +231,7 @@ jobs:
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
# Build sdist on lowest supported Python
python-version: "3.10"
python-version: "3.11"
- name: Build sdist
run: |
python -m pip install -U pip build
Expand Down Expand Up @@ -263,7 +263,7 @@ jobs:
# Note that this step is *after* specific pythons have been used to
# build and test
auto-update-conda: true
python-version: "3.10"
python-version: "3.11"

- name: Upload sdist
if: success()
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:
- name: Setup Python (32-bit)
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: '3.10'
python-version: '3.11'
architecture: 'x86'

- name: Setup MSVC (32-bit)
Expand Down
2 changes: 1 addition & 1 deletion INSTALL.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Prerequisites

Building NumPy requires the following installed software:

1) Python__ 3.10.x or newer.
1) Python__ 3.11.x or newer.

Please note that the Python development headers also need to be installed,
e.g., on Debian/Ubuntu one needs to install both `python3` and
Expand Down
12 changes: 6 additions & 6 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ stages:
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.10'
versionSpec: '3.11'
addToPath: true
architecture: 'x64'
- script: >-
Expand All @@ -57,7 +57,7 @@ stages:
displayName: 'Run Lint Checks'
failOnStderr: true
- job: Linux_Python_310_32bit_full_with_asserts
- job: Linux_Python_311_32bit_full_with_asserts
pool:
vmImage: 'ubuntu-20.04'
steps:
Expand All @@ -78,13 +78,13 @@ stages:
strategy:
maxParallel: 3
matrix:
Python310-64bit-fast:
PYTHON_VERSION: '3.10'
Python311-64bit-fast:
PYTHON_VERSION: '3.11'
PYTHON_ARCH: 'x64'
TEST_MODE: fast
BITS: 64
Python311-64bit-full:
PYTHON_VERSION: '3.11'
Python312-64bit-full:
PYTHON_VERSION: '3.12'
PYTHON_ARCH: 'x64'
TEST_MODE: full
BITS: 64
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ authors = [{name = "Travis E. Oliphant et al."}]
maintainers = [
{name = "NumPy Developers", email="[email protected]"},
]
requires-python = ">=3.10"
requires-python = ">=3.11"
readme = "README.md"
classifiers = [
'Development Status :: 5 - Production/Stable',
Expand All @@ -26,7 +26,6 @@ classifiers = [
'Programming Language :: C',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
Expand Down
6 changes: 3 additions & 3 deletions tools/ci/cirrus_arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ linux_aarch64_test_task:
prepare_env_script: |
apt-get update
apt-get install -y --no-install-recommends software-properties-common gcc g++ gfortran pkg-config ccache
apt-get install -y --no-install-recommends python3.10 python3.10-venv libopenblas-dev libatlas-base-dev liblapack-dev
apt-get install -y --no-install-recommends python3.11 python3.11-venv libopenblas-dev libatlas-base-dev liblapack-dev
# python3.10 -m ensurepip --default-pip --user
ln -s $(which python3.10) python
# python3.11 -m ensurepip --default-pip --user
ln -s $(which python3.11) python
# put ccache and python on PATH
export PATH=/usr/lib/ccache:$PWD:$PATH
Expand Down
6 changes: 2 additions & 4 deletions tools/ci/cirrus_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ linux_aarch64_task:
# build in a matrix because building and testing all four wheels in a
# single task takes longer than 60 mins (the default time limit for a
# cirrus-ci task).
- env:
CIBW_BUILD: cp310-*
- env:
CIBW_BUILD: cp311-*
- env:
Expand Down Expand Up @@ -65,9 +63,9 @@ macosx_arm64_task:

matrix:
- env:
CIBW_BUILD: cp310-* cp311-*
CIBW_BUILD: cp311-* cp312*
- env:
CIBW_BUILD: cp312-* cp313-*
CIBW_BUILD: cp313-*
- env:
CIBW_BUILD: cp313t-*
CIBW_FREE_THREADED_SUPPORT: 1
Expand Down
2 changes: 1 addition & 1 deletion tools/ci/run_32_bit_linux_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ set -xe

git config --global --add safe.directory /numpy
cd /numpy
/opt/python/cp310-cp310/bin/python -mvenv venv
/opt/python/cp311-cp311/bin/python -mvenv venv
source venv/bin/activate
pip install -r requirements/ci32_requirements.txt
python3 -m pip install -r requirements/test_requirements.txt
Expand Down

0 comments on commit 688669f

Please sign in to comment.