Skip to content

Commit a1a51c8

Browse files
authored
Merge pull request #25 from apdavison/update-reqs
Update Python, NumPy and SciPy versions used in CI testing
2 parents 61d5f98 + 72a4433 commit a1a51c8

8 files changed

Lines changed: 56 additions & 286 deletions
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
numpy==1.23.5
2-
scipy==1.9.3
1+
numpy==2.0.1
2+
scipy==1.14.0
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
numpy==2.0.1
2-
scipy==1.14.0
1+
numpy==2.4.1
2+
scipy==1.17.0
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
numpy==1.20.3
2-
scipy==1.7.3
1+
numpy==1.23.5
2+
scipy==1.9.3

.github/workflows/test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@ jobs:
1111
name: Test with Python ${{ matrix.python-version }} and ${{ matrix.req-version }} requirements on ${{ matrix.os }}
1212
runs-on: ${{ matrix.os }}
1313
strategy:
14-
fail-fast: true
14+
fail-fast: false
1515
matrix:
16-
python-version: ["3.8", "3.10", "3.12"]
16+
python-version: ["3.10", "3.12", "3.14"]
1717
req-version: ["oldest", "middle", "newest"]
1818
os: ["ubuntu-24.04"]
1919
exclude:
20-
- python-version: "3.8"
21-
req-version: "newest"
2220
- python-version: "3.10"
23-
req-version: "oldest"
21+
req-version: "newest"
2422
- python-version: "3.12"
2523
req-version: "oldest"
26-
- python-version: "3.12"
24+
- python-version: "3.14"
2725
req-version: "middle"
26+
- python-version: "3.14"
27+
req-version: "oldest"
2828
steps:
2929
- uses: actions/checkout@v4
3030
- name: Set up Python ${{ matrix.python-version }}

lazyarray.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,10 +510,10 @@ def evaluate(self, simplify=False, empty_val=0):
510510
x = x.reshape(self._shape)
511511
elif have_scipy and sparse.issparse(self.base_value): # For sparse matrices
512512
if empty_val != 0:
513-
x = self.base_value.toarray((sparse.csc_matrix))
513+
x = self.base_value.toarray()
514514
x = np.where(x, x, np.nan)
515515
else:
516-
x = self.base_value.toarray((sparse.csc_matrix))
516+
x = self.base_value.toarray()
517517
elif isinstance(self.base_value, Iterator):
518518
x = np.fromiter(self.base_value, dtype=self.dtype or float, count=self.size)
519519
if x.shape != self._shape:

pyproject.toml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[project]
22
name = "lazyarray"
3-
version = "0.6.0"
3+
version = "0.7.0.dev.0"
44
description = "A Python package that provides a lazily-evaluated numerical array class, larray, based on and compatible with NumPy arrays."
55
readme = "README.rst"
6-
requires-python = ">=3.8"
7-
license = {text = "Modified BSD"}
6+
requires-python = ">=3.10"
7+
license = "BSD-3-Clause"
88
authors = [
99
{name = "Andrew P. Davison", email = "andrew.davison@cnrs.fr"}
1010
]
@@ -15,18 +15,17 @@ keywords = ["lazy evaluation, array"]
1515
classifiers = [
1616
"Development Status :: 4 - Beta",
1717
"Intended Audience :: Science/Research",
18-
"License :: OSI Approved :: BSD License",
1918
"Natural Language :: English",
2019
"Operating System :: OS Independent",
2120
"Programming Language :: Python :: 3",
2221
"Topic :: Scientific/Engineering"
2322
]
2423
dependencies = [
25-
"numpy>=1.20.3"
24+
"numpy>=1.23.5"
2625
]
2726

2827
[project.optional-dependencies]
29-
sparse = ["scipy>=1.7.3"]
28+
sparse = ["scipy>=1.9.3"]
3029
dev = ["sphinx", "pytest", "pytest-cov", "flake8", "wheel"]
3130

3231
[project.urls]

test/test_lazy_arrays_from_Sparse_Matrices.py

Lines changed: 0 additions & 211 deletions
This file was deleted.

0 commit comments

Comments
 (0)