Skip to content

Commit ebd8426

Browse files
authored
CI: Remove Python 3.8 and update miniconda (#636)
1 parent 0e1513d commit ebd8426

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ jobs:
66
strategy:
77
matrix:
88
os: [ubuntu-latest]
9-
python: ['3.8', '3.9', '3.10', '3.11']
9+
python: ['3.9', '3.10', '3.11']
1010
numba_boundscheck: [0]
1111
include:
1212
- os: macos-latest
13-
python: '3.10'
13+
python: '3.9'
1414
- os: windows-latest
15-
python: '3.10'
15+
python: '3.9'
1616
- os: ubuntu-latest
17-
python: '3.10'
17+
python: '3.9'
1818
numba_boundscheck: 1
1919
fail-fast: false
2020
runs-on: ${{ matrix.os }}
@@ -73,13 +73,13 @@ jobs:
7373
path: ~/conda_pkgs_dir
7474
key:
7575
docs-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('ci/environment.yml') }}
76-
- uses: conda-incubator/setup-miniconda@v2
76+
- uses: conda-incubator/setup-miniconda@v3
7777
with:
7878
activate-environment: sparse-dev
7979
allow-softlinks: true
8080
environment-file: ci/environment.yml
8181
python-version: '3.10'
82-
miniforge-variant: Mambaforge
82+
miniforge-version: latest
8383
use-only-tar-bz2: true
8484
use-mamba: true
8585
- name: Install package

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ description = "Sparse n-dimensional arrays for the PyData ecosystem"
99
readme = "README.rst"
1010
dependencies = ["numpy>=1.17", "numba>=0.49"]
1111
maintainers = [{ name = "Hameer Abbasi", email = "[email protected]" }]
12-
requires-python = ">=3.8"
12+
requires-python = ">=3.9"
1313
license = { file = "LICENSE" }
1414
keywords = ["sparse", "numpy", "scipy", "dask"]
1515
classifiers = [
@@ -18,7 +18,6 @@ classifiers = [
1818
"License :: OSI Approved :: BSD License",
1919
"Programming Language :: Python",
2020
"Programming Language :: Python :: 3",
21-
"Programming Language :: Python :: 3.8",
2221
"Programming Language :: Python :: 3.9",
2322
"Programming Language :: Python :: 3.10",
2423
"Programming Language :: Python :: 3.11",

sparse/_coo/common.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import warnings
33
from collections.abc import Iterable
44
from functools import reduce
5-
from typing import Any, NamedTuple, Optional, Tuple
5+
from typing import Any, NamedTuple, Optional
66

77
import numba
88

@@ -1366,7 +1366,7 @@ def _sort_coo(
13661366
fill_value: float,
13671367
sort_axis_len: int,
13681368
descending: bool,
1369-
) -> Tuple[np.ndarray, np.ndarray]:
1369+
) -> tuple[np.ndarray, np.ndarray]:
13701370
assert coords.shape[0] == 2
13711371
group_coords = coords[0, :]
13721372
sort_coords = coords[1, :]
@@ -1424,7 +1424,7 @@ def _compute_minmax_args(
14241424
reduce_size: int,
14251425
fill_value: float,
14261426
max_mode_flag: bool,
1427-
) -> Tuple[np.ndarray, np.ndarray]:
1427+
) -> tuple[np.ndarray, np.ndarray]:
14281428
assert coords.shape[0] == 2
14291429
reduce_coords = coords[0, :]
14301430
index_coords = coords[1, :]

0 commit comments

Comments
 (0)