Skip to content

Commit 354e007

Browse files
committed
Drop support for Python 3.8
1 parent d7807e1 commit 354e007

File tree

4 files changed

+6
-17
lines changed

4 files changed

+6
-17
lines changed

.github/workflows/array-api-tests.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
runs-on: ubuntu-latest
3838
strategy:
3939
matrix:
40-
python-version: ['3.8', '3.9', '3.10', '3.11']
40+
python-version: ['3.9', '3.10', '3.11']
4141

4242
steps:
4343
- name: Checkout array-api-compat
@@ -55,16 +55,15 @@ jobs:
5555
with:
5656
python-version: ${{ matrix.python-version }}
5757
- name: Install dependencies
58-
# NumPy 1.21 doesn't support Python 3.11. NumPy 2.0 doesn't support
59-
# Python 3.8. There doesn't seem to be a way to put this in the numpy
60-
# 1.21 config file.
61-
if: "! ((matrix.python-version == '3.11' && inputs.package-name == 'numpy' && contains(inputs.package-version, '1.21')) || (matrix.python-version == '3.8' && inputs.package-name == 'numpy' && contains(inputs.xfails-file-extra, 'dev')))"
58+
# NumPy 1.21 doesn't support Python 3.11. There doesn't seem to be a way
59+
# to put this in the numpy 1.21 config file.
60+
if: "! ((matrix.python-version == '3.11' && inputs.package-name == 'numpy' && contains(inputs.package-version, '1.21'))"
6261
run: |
6362
python -m pip install --upgrade pip
6463
python -m pip install '${{ inputs.package-name }} ${{ inputs.package-version }}' ${{ inputs.extra-requires }}
6564
python -m pip install -r ${GITHUB_WORKSPACE}/array-api-tests/requirements.txt
6665
- name: Run the array API testsuite (${{ inputs.package-name }})
67-
if: "! ((matrix.python-version == '3.11' && inputs.package-name == 'numpy' && contains(inputs.package-version, '1.21')) || (matrix.python-version == '3.8' && inputs.package-name == 'numpy' && contains(inputs.xfails-file-extra, 'dev')))"
66+
if: "! ((matrix.python-version == '3.11' && inputs.package-name == 'numpy' && contains(inputs.package-version, '1.21'))"
6867
env:
6968
ARRAY_API_TESTS_MODULE: array_api_compat.${{ inputs.module-name || inputs.package-name }}
7069
# This enables the NEP 50 type promotion behavior (without it a lot of

.github/workflows/tests.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@ jobs:
55
runs-on: ubuntu-latest
66
strategy:
77
matrix:
8-
python-version: ['3.8', '3.9', '3.10', '3.11']
8+
python-version: ['3.9', '3.10', '3.11']
99
numpy-version: ['1.21', '1.26', 'dev']
1010
exclude:
1111
- python-version: '3.11'
1212
numpy-version: '1.21'
13-
- python-version: '3.8'
14-
numpy-version: 'dev'
1513
fail-fast: true
1614
steps:
1715
- uses: actions/checkout@v4

setup.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,12 @@
1515
long_description_content_type="text/markdown",
1616
url="https://data-apis.org/array-api-compat/",
1717
license="MIT",
18-
python_requires=">=3.8",
1918
extras_require={
2019
"numpy": "numpy",
2120
"cupy": "cupy",
2221
},
2322
classifiers=[
2423
"Programming Language :: Python :: 3",
25-
"Programming Language :: Python :: 3.8",
2624
"Programming Language :: Python :: 3.9",
2725
"Programming Language :: Python :: 3.10",
2826
"Programming Language :: Python :: 3.11",

tests/_helpers.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
from importlib import import_module
22

3-
import sys
4-
53
import pytest
64

7-
85
wrapped_libraries = ["numpy", "cupy", "torch", "dask.array"]
96
all_libraries = wrapped_libraries + ["jax.numpy"]
107

118
def import_(library, wrapper=False):
12-
if 'jax' in library and sys.version_info < (3, 9):
13-
pytest.skip('JAX array API support does not support Python 3.8')
14-
159
if library == 'cupy':
1610
pytest.importorskip(library)
1711
if wrapper:

0 commit comments

Comments
 (0)